Posts
 
Reputation
Joined
Last Seen
Ranked #451
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
5
Posts with Upvotes
5
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
4 Commented Posts
~30.3K People Reached
Favorite Tags
Member Avatar for justinlake888

[QUOTE=justinlake888;697414]hello... I am trying to convert 2 digit numbers to words: example 11= eleven. I saw some other entries on this but they dont include case or switch [/QUOTE] well, here it is, if my number spelling is not quite correct...srry a switch is still used, but it's much smaller …

Member Avatar for hermel
0
2K
Member Avatar for kux

ok, I've checked the forum and I don't think this topic was touched. What I would need is an open-source or at least free static analysis tool for C++ code. Does anybody have any suggestions? I mean, searching the web C++ lacks A LOT at this chapter, compared to Java, …

Member Avatar for IssamLahlali
0
253
Member Avatar for kux

if u pass a std::vector by value to a function, does all of it's content get copyed? thx

Member Avatar for kunal kislay
0
2K
Member Avatar for something else

i don't know what "convolute a gaussian" actually is... probably because I skiped my math class :) ... but, in cases like this you should do a study over the algorithm ivolved ( you could even post some links here so we can see it too ) and then try …

Member Avatar for msiddi13
0
393
Member Avatar for kux

take a look at this code: [CODE] template <class T> class C { public: class A { protected: int x; }; class B: public A { protected: void write() { cout << x << endl; } }; }; [/CODE] when I try to compile with g++ i get: test.cpp: In …

Member Avatar for kux
0
142
Member Avatar for VMG
Member Avatar for kux

ok, so visual C++ is not C99 compliant, but I was wondering how can I access fixed bit length integer types as the one defined in stdint.h (intN_t). thx in advance

Member Avatar for ArkM
0
115
Member Avatar for inktri

[QUOTE=ArkM;734101]Obviously the possible solution depends on the general architecture of your application (and run-time environment). In standard C++ an object life time defined with regard to the only execution thread and it's not a real time.[/QUOTE] Hmm, i find this question very interesting, and as ArkM said, it's very run-time …

Member Avatar for kux
0
425
Member Avatar for nnhamane

[url]http://en.wikipedia.org/wiki/Dynamic-link_library[/url] just read this. It's quite well explained

Member Avatar for kux
0
110
Member Avatar for kux

I have a document/view aplication that opens a bitmap I use the following OnDraw override to draw the bitmap on a window and OnOpenDocument to opening the image from file The bitmap handle ( HBITMAP bmaphandle ) is taken from the Document object that does LoadImage in it's OnOpenDocument method …

Member Avatar for kux
0
167
Member Avatar for flexy82rpq

ok, u solved your problem, but still there are some problems you should notice: 1. never put function definitions inside a header file, just the declarations. If you want to include that header in more compile units you will end up with a linker error because the compiler will generate …

Member Avatar for kux
0
118
Member Avatar for drdolittle

[url]http://www.scribd.com/doc/3048219/expert-c-programming?from_related_doc=1[/url] read from page 230

Member Avatar for grumpier
0
121
Member Avatar for cooljeff1379

Well, C++ is just a language, with quite a small standard library, but with A LOT of provided compilers, frameworks and third party libraries. From my point of view ( and many others, I think ) g++ is the best compiler for C++. Visual C++ is quite a generic name: …

Member Avatar for kux
0
366
Member Avatar for empathy

[CODE] char *stringarray[] = { "mama", "tata", "bunica", "mama", "tata", "georgel" }; map< char*, int > mycountingmap; for ( size_t i = 0; i < sizeof( stringarray ) / sizeof( char* ); ++i ) ++mycountingmap[ stringarray[i] ] ; //print result for ( size_t i = 0; i < sizeof( stringarray …

Member Avatar for kux
0
220
Member Avatar for jbrock31

you did not allocate memory for the int* Tests variable. the thing is I have a testScores = new int[numTests]; but you don't use that nowhere Now, the thing is like this Reading your program what you actually try to do is iterate through each student and give to him …

Member Avatar for jbrock31
0
139
Member Avatar for rmlopes

hmm, the thread name is kind of missguiding this should better be "error linking to loki" as you can see all your .o files compile fine, but the linking is the problem did you build the Loki library? I know Loki is mostly a template library that need not be …

Member Avatar for rmlopes
0
216
Member Avatar for busnerrors

your vector has no reserved sizes, so all insertions [CODE] //option 1 vector < vector<int> > grades; for(int i = 0; i < 30; i++) { vector<int> tempVec; for(int j = 0; j < 20; j++) { int temp; myGrades>>temp; tempVec.push_back( temp ); } grades.push_back( tempVec ); } [/CODE] [CODE] …

Member Avatar for busnerrors
0
125
Member Avatar for dmanw100

[CODE] std::fstream BoardFile; BoardFile.open(arrayFileName->c_str()); [/CODE]

Member Avatar for kux
0
144
Member Avatar for nareshvlsi

[QUOTE=nareshvlsi;718802]hi all, plesae any one can send me c++ code for radix-2 Fast Fourier Transform.. my email: << email id snipped >>[/QUOTE] :) [url]www.google.com[/url] enjoy

Member Avatar for Salem
-2
167
Member Avatar for Kanvas

to solve the compilation error u have to forward the declaration of class device. That means simply add a [CODE]class device;[/CODE] before you declare BST good luck

Member Avatar for sidatra79
0
181
Member Avatar for JustinJose12002

[QUOTE=JustinJose12002;717658]How can i grep a file using c++..? I have a file. File having a keyword. i want to get the count of that. i am tring to do int count ; count = system("grep -c keyword file1.txt"); cout << count ; /// this is giving me system command return …

Member Avatar for Ancient Dragon
0
6K
Member Avatar for Kanvas

[QUOTE=Kanvas;717503]how do you make a node of pointer of a device? (device is just a class that i made up, i need to use pointers in LL so i can "share" one object with multiple LLs) [code] struct node { device * devicePtr; node * left, * right, * next; …

Member Avatar for kux
0
234
Member Avatar for panpanf

[QUOTE=shrughes;716624]Bullshit.[/QUOTE] Then what are they written in ? MonkeyLanguage?

Member Avatar for dmanw100
0
233
Member Avatar for Liszt

Anyway, this is OS dependent, but I really can't find any other way except the looping. Another way would be to check all the interrupts at kernel level and see what system calls refer to your folder and would modify it's content, but I don't think this is legal or …

Member Avatar for Liszt
0
81
Member Avatar for novice420

hmmm, ok, sorry, but your ideea with the file being the chatroom or whatever just isn't good !! First of all, you have to synchronize all acces to that file. When one user is writing the file all others must wait. When one user wants to print the "chatroom" he …

Member Avatar for Salem
0
198
Member Avatar for cplusplusgeek

[QUOTE=cplusplusgeek;714749]Could there be any better ways to determine whether a number is prime or not particularly with respect to code execution. [/QUOTE] well, you will defenetly won't find any divisors greater then n/2 !! so, instead of iterating to n-1 you could just iterate to n/2. Another thing would be …

Member Avatar for sidatra79
0
180
Member Avatar for alin_yuhee

[QUOTE=alin_yuhee;713066]i want to make a simple game with c++ but i really do not know how to do it:-/ ....can somebody help me to do that because i really want to know how to make a game by using c++...:?:[/QUOTE] aaaaa, what game? [CODE] #include <iostream> //for opengl and directx …

Member Avatar for William Hemsworth
0
111
Member Avatar for madf26

[QUOTE=madf26;713052]Sorry outright if I have posted in the wrong forum. My laptop has turned against me in the last few weeks. Ex of errors I get on a daily basis: 1. Windows internet expolorer out of memory at line 2 (sometimes 26) 2) microsoft visual ctt runtime library, runtime error …

Member Avatar for grumpier
0
229
Member Avatar for manzoor

of course the pointers in the structs point to the same thing. That is because you do a shallow copy. If you want the two char pointers inside the structs point to diffrent strings you need to do a deep copy ( copy the content pointed by the pointer in …

Member Avatar for e_agam
0
75
Member Avatar for c++ prog

ok, what u posted is just the connection part. What do you mean they don't interract? I mean, u know u have to send messages from server to client and from client to server via send, recv || write, read.

Member Avatar for c++ prog
0
125