15,300 Posted Topics
Re: I usually visit relatives. Went to Branson Missouri one year and enjoyed all the country & western music. | |
Re: [QUOTE=meiyantao;381180] As you know,it's impossible to study C++ well without English. Thanks ^_^[/QUOTE] Probably because English has become the universal language of business. Anyone who needs to conduct business in todays global world needs to know English. And the English you posted looks great to me. :) | |
Re: >>Can Dani or her team member answer my question so we can close this? HappyGeek already did in his post immediately following yours. >>And what I see after few posts? Some of the members starting flaming war between them ! ! ! I agree, and they are walking on thin … | |
Re: [QUOTE=Serunson;380153]What they going to war with light sabres? now that will be fun! I cut u with light! ~ jumping while using a mystic power. Oh wait it's all done with green screens ~ boo[/QUOTE] Don't laugh too hard -- many objects of science finction have become reality. The communicators … | |
Re: None of those certifications are worth the paper they are written on because people can just read the book and pass the tests with no experience. That makes the certifications worthless. Experience is what really counts. | |
Re: I don't know how to use it but it is definitely not c++ language related (that is, it is not part of the c++ language). It is just a method of communicating with scsi drives, as short of explained [URL="http://support.microsoft.com/kb/251369"]here.[/URL]. | |
Re: char data type is a small int whose value is between -126 and 127. So do do what you want just loop through the array and add 1 to the char value. [code] char str[] = "Hi blah blah"; // add 1 to the first character, syntax is idental to … | |
Re: you will want to create an array, or vector, of strings. [code] vector<string> names; <snip> for(unsigned int i=0 ; i<numOfPlayers ; i++) { string name; cout << "Enter name #" << i << "\n"; getline(name, cin); names.push_back(name); } [/code] >>how could I access each one individually? From the above vector: … | |
Re: Its just another way of initializing variables -- those could have just as easily been coded like this: [code] CDriveControl::CDriveControl() { m_pPort = NULL; m_pSPTIDriver = NULL; m_bInitFlag = NULL; m_onlycomp = NULL; } [/code] | |
Re: line 6 does nothing -- delete it. >>problem is that CButton needs to be a const char No, it needs to be const wchar_t* because you are calling the UNICODE version of ShellExecute. You will have to convert c_str() to wchar_t* which requires another function to make that conversion. | |
Re: Attempting to debug a WinCE program is really a huge bummer! What compiler are you using? Microsoft has made it a lot easier with VC++ 2005 Pro compier. The only way to do it with previous versions is put message boxes all over the place to display values of variables … | |
Re: [QUOTE=Eko;381580].I understood C++ pretty well ,.[/QUOTE] I hope you are smart enough to realize the coding style of the code you posted is just awful. [URL="http://geosoft.no/development/cppstyle.html"] Here[/URL] are some tips, although they should not be read as if they are written in stone. Pay attention to the indention, placement of … | |
Re: [QUOTE=Sturm;377673] Mac: Treats you like a moron. Too many graphical effects. [/quote] That's enough to convince me -- I'm buying a Mac tomorrow! :) [QUOTE=Sturm;377673] Not fully open source.[/quote] I could care less -- I don't want to read or change the source code. [QUOTE=Sturm;377673] Windows: Everyone uses it. Not … | |
is there any difference between [ code=c ] and [ code=cplusplus ] ? I don't see the difference except, of course, the title. If no other difference why do we need both of them ? | |
Re: CCeSocket sucks cannel water! Use normal winsock socket functions, just as you would on in a pc program. | |
Re: what's happening is called stack overflow. Each recursive call required a little more stack space (or a lot more depending on how you wrote the function). Try to figure out how much stack space the function needs, add about 8 bytes for return address then multiply that by 22460. That … | |
Re: [QUOTE=cscgal;381224]The ability to unsubscribe from within the thread page was removed because it requires a large table scan on each thread load to check whether you are subscribed to the thread or not ... and the percentage of users actually unsubscribing via thread pages is minimal compared to the overhead … | |
Re: appears to be buffer overrun -- since you decided to start a whole new thread I can't see what you previously posted, and I'm too lazy to look. you need to post your code in THIS thread and not expect anyone to look in other threads for it. | |
Re: dllexport can only be used in DLL, so I suspect your release version thinks it is compiling for a DLL. Check the properties for debug and release to see if something is defined in debug that is not in release, or vice versa. Sounds like the release version contains an … | |
Re: Anothere difference: defines can be changed but const can not. Anywhere in your program you can redefine X to be anything you want, including a string. You can not do that with a const int. | |
Re: don't attempt to jump ahead of what you know now, which seems to be nothing at all. Start at the beginng and work your way up. Some of the code and algorithms you will encounter may seem to be trivel or not relevent, but it really is. The Hello World … | |
Re: [URL="http://en.wikipedia.org/wiki/Computer_network"]Computer networking[/URL] -- allowing two or more computers to talk to each other via serial ports or ethernet cables. [URL="http://en.wikipedia.org/wiki/Computer_science"]Computer Science[/URL]: the study of computers and how they relate to people. That's a terribly broad description because there are many many specializations you can study. | |
Re: [QUOTE=Aia;376330] Sorry, the proper c tagging is not working at this time. [/QUOTE] would you please explain what you mean by that? you can use [ code=c ] if you want to see line numbers, but I assume you already know that. If something is broken maybe you should start … | |
Re: >>float **a; that is the declaration of a 2-dimensional array of floats. Somewhat similar to this when both dimensions are known: [inlinecode]float a[2][5][/inlinecode] Before allocating memory for the second dimension (5 in the above dimension) you have to allocate memory for the first (2 in the above example) Line 18 … | |
Re: Enter the data as a string or get them from the keyboard one character at a time and check each character. You can use the macro isdigit() for that purpose. | |
Re: first, create an vector of all [URL="http://simple.wikipedia.org/wiki/Preposition"]prepositions[/URL]. (I don't know if that is a complete list, but it is a good start) Then read the file one word at a time and search the vector created above for the word. If the word read from the file is found in … | |
Re: I never tried it but you might search MSDN for LoadIcon() and related functions. LoadIcon() loads the icon from a resource file which is attached to the .exe program by the linker so I think you will need to write an MS-Windows program to accomplish that. But there are other … | |
Re: Oh! I see you are spamming all the programming web sites with this question :@ I've already seen the answer on another site so won't bother with an answer here. | |
Re: >>Please correct my source code. Impossible for us because we don't have the hardware and there is nothing in the code you posted that indicates any obvious coding flaws. You need to learn to use a debugger and step through the code so that you can see what it is … | |
Re: [URL="http://www.google.com/search?hl=en&q=font+editor"]Google is your friend [/URL]-- al you need is a font editor and you can create all the fonts (or even edit existing ones) | |
Re: I have the latest Platform SDK. I created an MFC mdi program using VC++ 6.0 so that it will generate the include files needed in stdafx.h then copied those into the stdafx.h that was generated by the VC++ 2005 Express. It compiles ok but will not link because it can … | |
Re: >>NB: I'm sorry if I haven't followed all the forum's posting rules. It's my first time and I've done it to the best of my understanding You did ok -- at least you tried which is more than many do. :) I'm not able to help you out because I … | |
Re: you need to write a win32 program that hooks into the keyboard. See [URL="http://msdn2.microsoft.com/en-us/library/ms644990.aspx"]SetWindowsHookEx[/URL] function in MSDN | |
Re: And it gets a little more complicated because there are *nix compilers that have been ported to MS-Windows os, and consequently still use *.a library extensions. Dev-C++ is one such compiler. So for libraries the extension depends on the compiler. | |
Re: Sometimes I mark them solved if the OP clearly indicates he has received the help he was looking for. Otherwise I let it go because I don't know if its solved or not. And I don't normally bother to read threads that have not had any posts for over a … | |
Re: The result does not have decimals because 9 and 5 are both integers and 9/5 returns an integer. you are typcasting the result of the division which is 1 to a float. Read Salem's example for the correct way to do what you are attempting, unless you want to get … | |
Re: the parameters to main() can be in one of two forms [code] int main(int argc, char **argv) { } or int main(int argc, char *argv[]) { } [/code] Both the above are identical and access individual arguments the same way. Convert the third argument like this (recall argv[0] is the … | |
Re: Also once in college you might be able to shorten your time there by taking bypass tests to get credit for the material you already know. No point in being bored in class listening to elementry stuff you have already studied. | |
Re: A common problem is to write a class called Animal and use it to derive two more classes called Cat and Dog. class Animal has a pure virtual method called Speak that is implemented in Cat and Dog to either meow or bark. | |
Re: I recall watching an episode of "[URL="http://dsc.discovery.com/fansites/mythbusters/mythbusters.html"]Myth Busters[/URL]" awhile back where they attempted to prove or disprove the myth about cell phones causing gas stations to blow up. They made many attempts and all failed. | |
Re: delete line 13, it has no purpose. change line 25 to use pointer pS | |
Re: Illegal -- probably not. But it depends on the policy of the company (Best Buy in your example). I'm pretty certain they will put a stop to that real quick if and when they find out about it. Its not worth it to lose your job over a few quick … | |
Re: my guess is that the '\n' (<enter> ) needs to be flushed out of the keyboard after entering a number. you can use getchar() to do that. Example: call getchar() after line 20 to remove the '\n' from the keyboard buffer. | |
Re: Wasn't difficult to find -- [URL="http://www.google.com/search?hl=en&q=wxgtk&btnG=Search"]get it here[/URL] | |
Re: me -- I'm just too lazy to answer them. Almost didn't answer this one either for the same reason. :) | |
Re: I can no longer see any of the mod threads in Coffee House. Also lost my mod status :( | |
Re: maybe a dumb question, but why use putback() at all? Why not just use the seek functions to move the file pointer to where-ever you want it? I would suspect putback() just calls seek to move the file pointer back one char in the buffer. |
The End.