15,300 Posted Topics
Re: [QUOTE=ganga.0006;1517098]\b = it's purpose is backspace \r = purpose is carriage return i want the purpose of for(;;) please clear my doubt thank you[/QUOTE] for(;;) is an infinite loop and used where the number of iterations is unknown. | |
Re: If you are using MS-Windows then use[URL="http://msdn.microsoft.com/en-us/library/ms682073%28VS.85%29.aspx"] win32 api console functions[/URL]. | |
Re: >>Reason: this forum owns! no.. no it doesn't Huh? | |
Re: line 71 must be `int main()` | |
Re: [URL="http://lmgtfy.com/?q=c+calculator"]OMG that is soooooo difficult to find[/URL] | |
Re: You mean after 15 days you still have not figured out how to write this program? The easiest way to display all the data for an (nearly) unlimited number of modules is to use a grid control which is something like a spreadsheet. [URL="http://www.codeproject.com/KB/grid/csharpgridcontrol.aspx"]Here [/URL]is a free one that's written … | |
Re: >>The output will be in milliseconds. But don't be supprised when the result is 0, which means the code runs so fast that it isn't measurable. In that case you may have to run the code several (hundreds or thousands) times between timings, probably in a loop. | |
Re: batch files are generally pretty simple-minded things, not at all as powerful as *nix shell scripts. For more complicated tasks you would be better off writing a program in some other language, such as C or C++. | |
Re: Maybe we should thank the spammers for that :) Let's all email the government lots of spam. | |
Re: Open the original file for reading. Open the new file for writing. Then in a loop read a block of data from the input file and write it back out to the output file. Since we don't know whether the original file was write in text or binary mode its … | |
Re: create a bool flag before the loop starts and set it to false. when a swap is made change the flag to true. on next loop iteration if the flag is still false then no swaps were performed during the previous loop iteration. and please next time use code tags. | |
Re: >I did not bought this. I just downloaded it from one torrent site, like Interesting, you steal (pirate) software then complain because it does't work right. I think you are just SOL (Shit Out Of Luck). That's what you get for installing illegal copies of software. Maybe you need to … | |
Re: You are missing some brackets. statements that are two or more lines require brackets, like this: if (Exempt == 'Y' ) { cout << "Gross wages = " << (hoursWorked*hourlyRate) << endl; cout << "NO TAXES DEDUCTED"; { else if (Exempt == 'N') { cout << "Gross wages = " … | |
Re: I would use getline() without the deliminator to that it will read the entire line up to the CR/LF into a string, then parse the string for commas. [edit] Yup, same as what WolfPack posted [/edit] | |
Re: Instead of someone posting an example you should post what you have tried. | |
Re: Try calling ShowWindow twice, according to [URL="http://msdn.microsoft.com/en-us/library/ms633548(VS.85).aspx"]MSDN [/URL]the second parameter to ShowWindow() might get ignored the first time it is called. I don't know if it will work, but its worth a try. [code] HWND hWnd = FindWindow(NULL, sName); if(hWnd) { ShowWindow(hWnd, SW_HIDE); ShowWindow(hWnd, SW_HIDE); } [/code] | |
Re: You have to add a line just before the end of main() to stop the program from closing. Most people call getch() or c++ cin.get(), which is just waiting for keyboard entry. | |
![]() | Re: what errors are you getting? In matrix_add() function you are trying to use an uninitialized pointer m.mat. It has to be allocated memory before setting the array elements in those loops. Move the two lines m.rows = and m.cols = up above the two loops then allocate memory for m.mat. |
Re: This is how I code a join in Sybase SQL, I assume MySql is nearly the same. Note that if you use the * in the select clause the fields from table2 can not duplicate the names in summercamp. If there is such a duplicate then one or both name … | |
Re: just count the lines as they are read and stop when it has read the line you need. Toss all lines but the last one away. | |
Re: I guess you don't know how big a 6,000 page book is! I have a copy of "SQL, The Complete Reference", by James Groff & Paul N Weinberg, which has 998 pages and is 2 1/2 inches thick. Your book would be about 15 inches thick! I have never seen … | |
Re: That works only for arrays that are declared in the same function -- it does not work with pointers or arrays passed to other functions (which are also pointers). A better way is not to use arrays at all but to use c++ std::vector class, which is a like a … | |
I'm using wamp on MS-Windows 7, and inside www folder I created cgi-bin folder and put some files in it. When I go to Chrome I enter localhost/cgi-bin and it responds >The requested URL /cgi-bin/ was not found on this server. There are other folders in www and it can … | |
Re: variable named monkey has not been declared or is not in current scope. | |
Re: Nice advertisement for a program Don probably doesn't want. Next time try posting something useful. @Don: MS Sql Server accepts several different data formats, [here ](http://www.sql-server-helper.com/tips/date-formats.aspx)is a list of them. | |
Re: If you have the programming guide then what's the problem? | |
Re: I don't think any of them fit me. Would like to think #11 does, but it doesn't. I voted before taking the test -- can I change my vote now :'( | |
Re: [quote]The main difference between a macro and a procedure is that in the macro the passage of parameters is possible and in the procedure it is not[/quote] That isn't true of any major computer language that I know of. Procedures in every language can accept parameters. In assembly language you … | |
Re: [URL="http://msdn2.microsoft.com/en-us/library/ms682073.aspx"]Here [/URL]are the win32 api console functions. include windows.h and you will probably have to have the Windows Platform SDK, free for download from Microsoft.com First call GetConsoleWindow() to get the handle to the console window, they you can call [URL="http://msdn2.microsoft.com/en-us/library/ms633534.aspx"]MoveWindow[/URL]() to move it to wherever you want. I have … | |
Re: >>Some gd example are. That is a perfect example why we should NOT use leet or chatroom speak. Does gd mean "god dam" or good? | |
Re: >>since I've missed the past 2 classes Don't do that! you will fall behind real fast by missing classes. >>while(choice=100||200||300||400||500){ >> cin>>choice; I don't think you want to make that a while statement. Move the menu lines 23-39 into another function -- maybe named [b]menu()[/b] -- so that main() will … | |
Re: I have two cars, one white and one wine. My grandaughter's car is canaru=y yellow. >can't wait to be 16. It's not all it's cracked up to be. One day you will blink your eyes and you will be 70. | |
Re: _alloca_probe is probably being called from one of the library functions you call. That happens a lot. | |
Re: Is your computer running a good antivirus program? | |
Re: I got the same question in a PM, which I promptly just deleted. | |
Re: [QUOTE=chineerat;1085285]this should be funny [URL="http://www.facebook.com/photo.php?pid=10219262&id=878590034"]http://www.facebook.com/photo.php?pid=10219262&id=878590034[/URL][/QUOTE] What is so funny about that?? | |
Re: Must be a problem the way you created the project because I added all three files to a project in Code::Blocks and it compiled without error. Also worked with VC++ 2008 Express. | |
Re: [URL="http://msdn.microsoft.com/en-us/library/aa376868(VS.85).aspx"]ExitWindowsEx()[/URL] | |
Re: isn't it obvious what your program is missing? There error message said it all -- the { and } do not match. I can't tell you which one is missing because you didn't post all the code. | |
Re: not likely to be your compiler but the program you wrote. | |
Re: Other than for the pure challenge of doing it, I see no reason to write a web site in c++ since there are other markup languages more suited for the task. I don't write web sites but my guess is that not a single one of them were written in … | |
Re: maybe[URL="http://www.devhood.com/tutorials/tutorial_details.aspx?tutorial_id=400"] this[/URL] short tutorial will help you. Follow the link near the bottom of the page for other tutorials. | |
Re: In another 20 years or so you won't be able to read English newspapers and magazines any more -- young people are growing up learning to text and use shortened forms of English words. "LOL" is just one of hundreds of such shortened words and phrases. >And I ain't an … | |
![]() | Re: Dev-C++ is free. You get what you pay for. VC++ 2008 Express, also free, has a lot of options, including setting font and font colors. If you BUY the full version you can change the colors of all text and windows.But you will pay $400+ USD for that feature. Is … |
Re: What language did you write the program in? You need to post the code you have written -- what you posted is ok, but doesn't help anyone to determine the cause of the problem. | |
Re: Just use any text editor, If you are on MS-Windows then Notepad++ is a good one to use because it has color highlighting. | |
Re: I doubt school network administrators are stupid enough to leave their networks wide open for students to screw up. If you get access denied it's because network admins aren't dumb enough to let you do what you are attempting to do. | |
| |
Re: >Have you ever smoked? Yes >Have you ever been baptized? Yes Have you ever attended a wedding of a close relative? | |
Re: >This is the implementation in Java... Hope this will help. It won't because your program doesn't meed the requirements of the problem. The program can only contain one loop. |
The End.