473,543 Members | 2,003 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
17
1,963
thread by: AAA | last post Feb 17 '06 by: Kenny McCormack
Hi guys how to disable the function of "ctrl alt delete"
3
2,758
thread by: klucar | last post Feb 17 '06 by: klucar
I'll start off differently by showing what I know how to do: valarray<float> va(100, 0.0f); float* fp; fp = &va; some_c_function( fp, va.size() ); What I want to do though is quite the opposite: float* fp;
2
7,639
thread by: grubbymaster | last post Feb 17 '06 by: Lars Tetzlaff
Hello The problem i have is this : i want to use the following structure in a DLL that i created: typedef struct _NDIS_802_11_SSID { ULONG SsidLength; UCHAR Ssid ; } NDIS_802_11_SSID, *PNDIS_802_11_SSID;
2
1,274
thread by: px122000 | last post Feb 17 '06 by: Lars Tetzlaff
Perhaps I am misusing template but I want to write a template that creates a class and in the class are three functions, <foo>_set, <foo>_clr, <foo>_tst. So if I invoke the template with a name like 'mask', three methods would be created called mask_set, mask_clr, and mask_tst. In the old CPP world, you could use ## (or was it just #?). I...
14
373
thread by: Jens Theisen | last post Feb 17 '06 by: Jens Theisen
Hello, I want to apologise in advance for this being off topic. It's not neither A C nor a C++ question, but to profiling in general, though I my chances are best to find the answer in the C/C++ community. I have a C++ program to profile and went about it by producing large history files of calling dependencies with associated times. It...
13
2,254
thread by: Jens Theisen | last post Feb 17 '06 by: Jens Theisen
Hello, I want to apologise in advance for this being off topic. It's not neither A C nor a C++ question, but to profiling in general, though I my chances are best to find the answer in the C/C++ community. I have a C++ program to profile and went about it by producing large history files of calling dependencies with associated times. It...
2
1,119
thread by: David Lindauer | last post Feb 17 '06 by: Rolf Magnus
If I do this: struct xyz { xyz(); int a,b; } var1; it compiles.
2
1,668
thread by: Kyle | last post Feb 17 '06 by: Maxim Yegorushkin
I used following template function: template<class Elem, int Size> int tabSize( Elem (&tab) ) { return Size; } tu deduce size and type of an array passed as parameter, but someone proposed making the argument const (perhaps just out const correctnes), and it become:
7
16,568
thread by: sarada7 | last post Feb 17 '06 by: carlmuller
Hi, Is there a way to encode/decode HTML using C++?? Thanks, Sarada.
2
1,634
thread by: WittyGuy | last post Feb 17 '06 by: Richard Herring
Is there any difference between the following two snippets of code? snippet1: int main() { int* p = new int(5); // With argument for initialising p to the value 5 .... .... ....
1
2,419
thread by: amitwagh | last post Feb 17 '06 by: Banfa
class BaseEx { public : virtual void Display() { cout<<"BaseEx:: Display()"<<endl; } }; class DervEx : publjc BaseEx
2
2,463
thread by: Roka | last post Feb 17 '06 by: Ian Collins
Hi, all. I'm in Fedora Core 4 .I noticed that a lot of types are defined in stddef.h of Stantard C. I usually include files from /usr/include , but my stddef.h looks like in /usr/lib/gcc/i386-redhat-linux/4.0.0/include/stddef.h. Should I include the file from that path?? I noticed people never include from that path.(Also in many linux...
1
1,262
thread by: cirederf | last post Feb 17 '06 by: Keith Thompson
Hello, I am trying to run a code which compiles fine, but when I try to run it I am facing a series of problems which are quite difficult to understand. I am kind of new with C, the task is then a little challenging. First, the routine where it crashes starts like this void read_instructions(E,argc,argv)
30
2,039
thread by: Eric Lilja | last post Feb 17 '06 by: Ian Collins
Hello, I have a function that has a static array with two elements in it. When the function is called the first time, it should access element 0, the second time it should access element 1, the third time element 0, the fourth element 1 etc. I can do it by having a static variable holding the index and and if/else-statement but is there a...
1
3,460
thread by: Varun Kacholia | last post Feb 17 '06 by: Kai-Uwe Bux
Hi, I have a question regarding SGI STL sort implementation: In case of equal elements, will they be output in the same order each time I sort? (I understand that it is not a stable sort, and by "same order" I mean "same order *each time I sort*"). Or is there a random number used in the splitter for qsort? Thanks
12
2,432
thread by: madhura | last post Feb 17 '06 by: Neil
Hello, I have a basic question about compilers. What are the different types of compilers, are they written by different companies, why there are different names of compilers, what is the purpose, I want to know about them. Are interpreters of C available, and if yes, how can I get them. Madhura
20
2,076
thread by: ma0001yu | last post Feb 17 '06 by: Chris Torek
Hi, all. I feel confuse about below struct definition: typedef struct TAG { comments.... }; What my confusion is: is typedef extra??why we not just use
1
1,221
thread by: CBFalconer | last post Feb 17 '06 by: Eric Sosman
The current issue of Time has an article on China and Google, and mentions the conflict with their "Don't be evil" motto. This might be an excellent time for letters to the editor pointing out that the Google usenet interface is both evil and destructive, besides making their technology a laughing stock. If a few such letters are published...
4
1,796
thread by: physicsboy | last post Feb 17 '06 by: physicsboy
Does anyone know what programming language was Novell written in?
1
1,583
thread by: Allerdyce.John | last post Feb 17 '06 by: Alf P. Steinbach
I have my source string like this: As i step thru the debugger, I can't understand why namePosStart is 2 namePosEnd is 15 I expect: namePosStart is 9 namePosStart is 11
1
2,776
thread by: c language | last post Feb 17 '06 by: Jack Klein
Hello Everybody, I am looking for a C code that I can use it to get Alpha of a Chi-Square value. Actually I want to give the Chi Squre value and Degree of Freedom (df) and get the alpha value from the program. Thanks, Mohsen
11
39,608
thread by: Roka100 | last post Feb 17 '06 by: Keith Thompson
Hi, I am using size_t and ssize_t . But I am confused about them. <ssize_t> typedef int __ssize_t; typedef __ssize_t ssize_t; <size_t > typedef unsigned int size_t;
6
3,204
thread by: Soumyadip Rakshit | last post Feb 17 '06 by: Barry Schwarz
I have a 2D Array of Integers A. I would like to copy it to another array B taking each row at a time. They are both initialized as pointers to pointers. I would like to use something like the following but it doesn't seem to work for (i=0; i < 3; i++) { while(*A++ = *B++) ; }
36
3,438
thread by: felixnielsen | last post Feb 17 '06 by: Daniel T.
What i really wanna do, is defining my own types, it doesnt really matter why. Anyway, i have run into some problems 1) typedef unsigned short U16; U16 test = 0xffffffff; // There should be a limit on this, max value you should be able to asign should be 0xffff // std::cout << test; // result = 0xffff //
11
2,091
thread by: felixnielsen | last post Feb 17 '06 by: felixnielsen
What i have is not even a real problem, but i hope someone can help anyway, but first a piece of code_ @code start const unsigned short Size = 2; // 2^N std::bitset<Size*Size*Size> YZ; std::bitset<Size*Size*Size> XZ; std::bitset<Size*Size*Size> XY; std::bitset<Size*Size*Size> V; union {

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.