- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 5
- Posts with Upvotes
- 5
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Re: [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 … | |
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, … | |
if u pass a std::vector by value to a function, does all of it's content get copyed? thx | |
Re: 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 … | |
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 … | |
| |
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 | |
Re: [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 … | |
Re: [url]http://en.wikipedia.org/wiki/Dynamic-link_library[/url] just read this. It's quite well explained | |
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 … | |
Re: 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 … | |
Re: [url]http://www.scribd.com/doc/3048219/expert-c-programming?from_related_doc=1[/url] read from page 230 | |
Re: 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: … | |
Re: [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 … | |
Re: 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 … | |
Re: 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 … | |
Re: 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] … | |
Re: [CODE] std::fstream BoardFile; BoardFile.open(arrayFileName->c_str()); [/CODE] | |
Re: [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 | |
Re: 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 | |
Re: [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 … | |
Re: [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; … | |
Re: [QUOTE=shrughes;716624]Bullshit.[/QUOTE] Then what are they written in ? MonkeyLanguage? | |
Re: 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 … | |
Re: 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 … | |
Re: [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 … | |
Re: [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 … | |
Re: [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 … | |
Re: 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 … | |
Re: 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. |