Forum: C Sep 27th, 2004 |
| Replies: 4 Views: 2,786 a net friend suggested me to try to make the assemble file and reading it,so I try to do it,then I konw clearly what the promgram does.
I try to introduce it, I hope everyone to understand what I... |
Forum: C++ Sep 22nd, 2004 |
| Replies: 5 Views: 6,419 look this web site,it is a good tutoria for study C++.
http://www.cplusplus.com/doc/tutorial/
or you can reading "Essential C++" . |
Forum: C Sep 20th, 2004 |
| Replies: 14 Views: 10,914 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".... |
Forum: C Sep 19th, 2004 |
| Replies: 4 Views: 2,786 I don't how to description this puzzle, just like this:
int *fun_num()
{
int b = 123;
return &b;
}
char *fun_char() |
Forum: C++ Sep 17th, 2004 |
| Replies: 4 Views: 1,703 by the way,you must include <conio.h> in your source files. |
Forum: C++ Sep 17th, 2004 |
| Replies: 4 Views: 1,703 in Turbo C/C++, you can use the gotoxy(x, y) function to move the cur on the screen. |
Forum: C Sep 17th, 2004 |
| Replies: 3 Views: 3,356 you can try it by yourself. :) |
Forum: C++ Sep 12th, 2004 |
| Replies: 8 Views: 3,027 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. |
Forum: C Sep 9th, 2004 |
| Replies: 3 Views: 2,474 or try this:
printf("stime %ld \n",tmp.tms_stime);
printf("utime %ld \n",tmp.tms_utime); |
Forum: C Sep 9th, 2004 |
| Replies: 3 Views: 2,474 try this:
printf("stime %s \n",tmp.tms_stime);
printf("utime %s \n",tmp.tms_utime); |
Forum: C++ Sep 7th, 2004 |
| Replies: 5 Views: 2,573 |
Forum: C++ Sep 7th, 2004 |
| Replies: 5 Views: 2,573 the book "Effective C++" have a item introduce cosnt,but a question i dont understand clearly.
class GamePlayer {
private:
static const int NUM_TURNS = 5; // constant eclaration
int... |
Forum: C++ Sep 6th, 2004 |
| Replies: 14 Views: 5,314 int main()
{
double charge; // charge minnimum rate of 2 dollars for 3 hours
int hours;
//----------------------------
// Add a input statement
cin >> hours; |
Forum: C++ Sep 5th, 2004 |
| Replies: 6 Views: 8,661 I think you can use Access database to store the passwords and use ADO controler to operation the database. |
Forum: C Sep 5th, 2004 |
| Replies: 6 Views: 2,681 |
Forum: C++ Sep 5th, 2004 |
| Replies: 8 Views: 3,789 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... |
Forum: C++ Sep 5th, 2004 |
| Replies: 4 Views: 2,585 yes, a perfectly C program must have a main() function. |
Forum: C++ Sep 5th, 2004 |
| Replies: 6 Views: 3,882 Thank you very much, it is a good site for me to learn C++. |
Forum: C Sep 5th, 2004 |
| Replies: 6 Views: 2,193 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... |
Forum: C++ Sep 4th, 2004 |
| Replies: 3 Views: 1,875 past the soreces on here. |
Forum: C Sep 4th, 2004 |
| Replies: 9 Views: 8,138 r = no % 100;
==================
no = 120;
120 % 100 = 20;
130 % 100 = 30;
100 % 100 = 0;
I dont konw how to describle it in Eglish. |
Forum: C Sep 4th, 2004 |
| Replies: 12 Views: 3,291 string is a class:
////////////////////////////////////////////////
// file name: string
#ifndef __STRING__
#define __STRING__
#include <std/bastring.h>
extern "C++" {
typedef basic_string... |
Forum: C++ Sep 4th, 2004 |
| Replies: 3 Views: 2,034 I prefer the "Effective C++",It is a good book for improve your C++ programming. |
Forum: C Aug 27th, 2004 |
| Replies: 34 Views: 8,025 try this:
//---------------------------------
// try_i.cpp
#include <iostream.h>
void main()
{
int i = 1;
int last_value; |