- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
20 Posted Topics
Re: I think you can use Access database to store the passwords and use ADO controler to operation the database. | |
Re: try this: //--------------------------------- // try_i.cpp #include <iostream.h> void main() { int i = 1; int last_value; last_value = i++; cout << "i++ = " << i << endl; last_value = ++i; cout << "++i = " << i << endl; cout << "Again:" << endl; cout << "i++ = " … | |
Re: the first, you mustn't have any return statement in your main() function as if you use void main() declare. If you use int main() function, you must return a int value, otherwise your complier will prompt a warning. | |
Re: I like Tubor C/C++ very much. The Path can modity in TC++,the step is: 1st: run tc-->select "Option"menu-->select "Directories..." 2nd: modity the path in the pop window. finally, press the "Ok". 3rd: select "Option" menu-->select "Save...". ok!finished. by the way,you must sure the "Inlucde" and "Lib" path was existed,if not,you … | |
Re: THe C++ Standard suggest we ought to using cin to get char or strings. you can use vector to store the strings. vector is a object but like a array. | |
![]() | Re: r = no % 100; ================== no = 120; 120 % 100 = 20; 130 % 100 = 30; 100 % 100 = 0; I dont konw how to describle it in Eglish. |
I don't how to description this puzzle, just like this: [code] int *fun_num() { int b = 123; return &b; } char *fun_char() { char *b = "123"; return b; } int main(int argc, char *argv[]) { int *pfun; char *pchar; pfun = fun_num(); pchar = fun_char(); cout << *pfun … | |
Re: look this web site,it is a good tutoria for study C++. [url]http://www.cplusplus.com/doc/tutorial/[/url] or you can reading "Essential C++" . | |
Re: in Turbo C/C++, you can use the gotoxy(x, y) function to move the cur on the screen. | |
Re: try this: printf("stime %s \n",tmp.tms_stime); printf("utime %s \n",tmp.tms_utime); | |
Re: int main() { double charge; // charge minnimum rate of 2 dollars for 3 hours int hours; //---------------------------- // Add a input statement cin >> hours; //---------------------------- if (hours<=3) { charge=2; } | |
Re: yes, a perfectly C program must have a main() function. | |
the book "Effective C++" have a item introduce cosnt,but a question i dont understand clearly. [code] class GamePlayer { private: static const int NUM_TURNS = 5; // constant eclaration int scores[NUM_TURNS]; // use of constant ... }; const int GamePlayer::NUM_TURNS; // mandatory definition; // goes in class impl.file [/code] why … | |
Re: [QUOTE=hostmoon]What kind of detail are you looking for? A quick google search turned up several tutorials.. not exactly an "e-book", but effective all the same... example: [url]http://www.cplusplus.com/doc/tutorial/[/url][/QUOTE] Thank you very much, it is a good site for me to learn C++. | |
Re: main() function is have tow paras like this : argv[], argc int main(argv[],argc). you can confirm if user input "<" character in DOS prompt.while argv[] was contain a "<" char , you can create a file and save input strings in it. | |
Re: string is a class: //////////////////////////////////////////////// // file name: string #ifndef __STRING__ #define __STRING__ #include <std/bastring.h> extern "C++" { typedef basic_string <char> string; // typedef basic_string <wchar_t> wstring; } // extern "C++" #endif ///////////////////////////////////////////// // file name: bastring.h template <class charT, class traits = string_char_traits<charT>, class Allocator = alloc > class … | |
Re: [QUOTE=Sphyenx]im nto a programmer, and i wanna start im gonna pick the book up tommorow, i need a good book, i mean a good book that wil build the back bone to my future!/ lol. i mean a simple book for non programmers[/QUOTE] I prefer the "Effective C++",It is a … |
The End.