Search found 142 matches

by lnr
Tue Oct 07, 2008 5:02 pm
Forum: C
Topic: Files and Folder
Replies: 1
Views: 4453

Re: Files and Folder

To emotional blind

To delete a file

Code: Select all

remove("filename.txt");
To rename a file

Code: Select all

rename("oldname.txt","newname.txt");
To create a file

Code: Select all

FILE *fp=fopen("filename.txt","r");
To copy a file
http://www.google.com/search?hl=en&q=ho ... tnG=Search

Thanks all.
by lnr
Tue Oct 07, 2008 4:37 pm
Forum: Volume 113 (11300-11399)
Topic: 11398 - The Base-1 Number System
Replies: 23
Views: 9676

Re: 11398 - The Base-1 Number System

To murad357

For these input:

Code: Select all

0 00 #
0 #
00 #
00 0 #
Output:

Code: Select all

0
0
0
0
by lnr
Tue Oct 07, 2008 4:29 pm
Forum: Volume 113 (11300-11399)
Topic: 11398 - The Base-1 Number System
Replies: 23
Views: 9676

Re: 11398 - The Base-1 Number System

To x140l31

Try this
Input:

Code: Select all

000 00 0 00 000 #
~
Output:

Code: Select all

0
by lnr
Tue Oct 07, 2008 4:08 pm
Forum: Volume 113 (11300-11399)
Topic: 11313 - Gourmet Games
Replies: 5
Views: 4269

Re: 11313 - GOURMET GAMES

To nahid
Check this.

Input:

Code: Select all

1
8 2
Output:

Code: Select all

7
by lnr
Tue Oct 07, 2008 3:41 pm
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32537

Re: 10034 - Freckles

Accepted.
I got the bug.
by lnr
Tue Oct 07, 2008 4:43 am
Forum: Volume 100 (10000-10099)
Topic: 10034 - Freckles
Replies: 101
Views: 32537

Re: 10034 - Freckles

To Rocky
yeah...
you are right.
you should calculate all the distance from one node to another node & build the the connection.
after that you need to optimize it as the problem say.
Would you please tell me more about optimization.
I tried using prims algorithm.
by lnr
Mon Oct 06, 2008 7:18 pm
Forum: Off topic (General chit-chat)
Topic: What game do you like best?
Replies: 17
Views: 62022

Re: What game do you like best?

Fifa.
by lnr
Mon Oct 06, 2008 6:50 pm
Forum: C++
Topic: Run Time Error
Replies: 1
Views: 3377

Re: Run Time Error

Divide by zero may be one of them.
And array index out of range.
by lnr
Mon Oct 06, 2008 6:46 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 184426

Re: 100_Help

There is related volume for this.
by lnr
Mon Oct 06, 2008 6:44 pm
Forum: Volume 7 (700-799)
Topic: 750 - 8 Queens Chess Problem
Replies: 78
Views: 26638

Re: help!p:-750

There is related volume for this.
by lnr
Mon Oct 06, 2008 6:43 pm
Forum: Volume 103 (10300-10399)
Topic: 10349 - Antenna Placement
Replies: 16
Views: 7556

Re: help!p:-10349

There is related volume for this.
by lnr
Mon Oct 06, 2008 6:34 pm
Forum: Volume 7 (700-799)
Topic: 755 - 487--3279
Replies: 115
Views: 28744

Re: why cpp with class usually be judged Compile Error ?

Reason of compile error:

code.cpp: In member function 'bool TelNumber::operator<(TelNumber&)':
code.cpp:20: error: '_stricmp' was not declared in this scope
by lnr
Mon Oct 06, 2008 6:18 pm
Forum: Volume 100 (10000-10099)
Topic: 10070 - Leap Year or Not Leap Year and ...
Replies: 233
Views: 53982

Re: runtime error

Runtime error occurs when your code fails to run for an input in running time.
It may happen when
1.the array size is small
2.index out of range for an array
3.divide by zero
and others .....

Go to advanced search