Search:

Type: Posts; User: Unreg1stered

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,077

    darn... I forgot to logon...

    darn... I forgot to logon...
  2. Replies
    5
    Views
    1,077

    Re: Writing to a binary file

    Can you post the whole program again? It might be easier to find the problems.
  3. Thread: New User

    by Unreg1stered
    Replies
    2
    Views
    791

    Welcome to the board... :cool:

    Welcome to the board... :cool:
  4. Replies
    51
    Views
    4,820

    Poll: The original version is for UNIX, but there's a...

    The original version is for UNIX, but there's a ported version for Windows as well.
  5. Replies
    13
    Views
    1,042

    The reason it doesn't work when you use...

    The reason it doesn't work when you use system("clear"); because "clear" is used in the unix shell to clear the screen. In Dos environment we use: cls.

    However, how come this bored said I can't...
  6. Replies
    13
    Views
    1,271

    How about include and use...

    How about include <stdlib.h> and use system("Pause"); instead of using getch()? (assuming that your code is to run under Dos/Windows)
  7. Replies
    12
    Views
    1,055

    Guess what? I still can find some typos. :D Ex:...

    Guess what? I still can find some typos. :D Ex: someone instead someoen, doesn't instead of dousnt... the list keeps going on. (j/k)
  8. Replies
    5
    Views
    1,345

    while (!cin >> number1) { } Shouldn't it...

    while (!cin >> number1) {

    }


    Shouldn't it be



    while (!number1) {
  9. Thread: std

    by Unreg1stered
    Replies
    15
    Views
    1,429

    (old version of iostream and it's...

    <iostream.h> (old version of iostream and it's recornized by old compiler)

    <iostream> (new version and it's unrecornized by old compiler)
  10. Replies
    44
    Views
    14,528

    It works for you because you include the conio.o...

    It works for you because you include the conio.o that DEV people port it to use with Dev C++.
  11. Replies
    5
    Views
    2,481

    Yes, it's a double-linked list.

    Yes, it's a double-linked list.
  12. Replies
    44
    Views
    14,528

    http://www.bloodshed.net/dev/faq.html#conio

    http://www.bloodshed.net/dev/faq.html#conio
  13. Replies
    51
    Views
    4,820

    Poll: Dev C++, and G++ (Cygwin).

    Dev C++, and G++ (Cygwin).
  14. Replies
    44
    Views
    14,528

    clrscr(); // works with the screen actually, I...

    clrscr(); // works with the screen actually, I think

    system ("cls"); // this just send a command to the dos shell to clear the screen
  15. Replies
    44
    Views
    14,528

    clrscr(); - // use conio.h system ("cls"); //...

    clrscr(); - // use conio.h

    system ("cls"); // use stdlib.h
  16. Replies
    17
    Views
    2,160

    if (charactertype == 1) { gold=75; ...

    if (charactertype == 1)
    {
    gold=75;
    health=100;
    magic=60;
    ...;
    }


    You nee to add { and } and each item should be ended with ; instead of ,
  17. Replies
    4
    Views
    944

    ....... if(!data) { cerr

    .......
    if(!data)
    {

    cerr << "File cannot be opened!" << endl;
    system("PAUSE");
    return 0; // you need to exit the program or you'll get the...
  18. Replies
    5
    Views
    1,782

    It's in stdlib.h .

    It's in stdlib.h .
  19. Replies
    16
    Views
    1,608

    Just an arays can be initialized, so alos can...

    Just an arays can be initialized, so alos can strings. The string can be intialized as the following exmaple:


    char str[ ] = {'s', 't', 'r', 'i', 'n', 'g', '\0'}; // notice that this string is...
  20. Replies
    16
    Views
    1,608

    http://msdn.microsoft.com/library/default.asp?url=...

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclang98/html/_clang_l.2d.value_and_r.2d.value_expressions.asp


    I'm not sure why either, I only remember that's how the c-string...
  21. Replies
    16
    Views
    1,608

    I didn't mention that in your 2nd example, you...

    I didn't mention that in your 2nd example, you need to initialize your string this way

    char nz[6]="hello"; or char nz[]="hello";

    You can't just use nz[] = "hello";



    Nope, that's...
  22. Replies
    4
    Views
    1,169

    Thank you. I think I found it, but it doesn't...

    Thank you. I think I found it, but it doesn't work when I try it. Do I do something wrong here?



    #include <stdlib.h>

    int main()
    {
    system ("c:\windows\notepad.exe");
    return 0;
  23. Replies
    16
    Views
    1,608

    In the first program, nz is a string initialized...

    In the first program, nz is a string initialized as pointer. It's legal to assign "hello" (nameless) string to nz. Therefore your first program works perfectly.

    However, in the second program, nz...
  24. Replies
    4
    Views
    1,169

    How to call another program?

    Can anyone tell me the code to call another program? Here's an example:

    ---
    Enter selection: 1, 2, 3: 3 (when I enter 3)
    the program will execute: notepad.exe ...etc.

    Thanks.
  25. Replies
    4
    Views
    882

    Let me try to answer, and if someone find this is...

    Let me try to answer, and if someone find this is wrong, please correct me.

    In the first example, nx is a c string. Therefore when you cout nx, you'll see the string "hello". However, in the...
Results 1 to 25 of 25