Search:

Type: Posts; User: Xarr

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,014

    Thx that helped :D

    Thx that helped :D
  2. Replies
    2
    Views
    1,014

    can't read whole line from file

    I'm using Bloodshed's Dev-C++ 4.9.8.0




    from custom.h header:

    #include <windows.h>
    #include <iostream>
    #include <fstream>
  3. Replies
    3
    Views
    2,170

    It's very odd... My console (cmd - WinXP Pro)...

    It's very odd... My console (cmd - WinXP Pro) wont change color :S

    Is it something about the settings of the console (or the set mode)? or the properties of the program ?
  4. Replies
    3
    Views
    2,170

    color wont change in console

    I'm using Bloodshed's Dev-C++



    HANDLE hInput, hOutput;

    void FillScreenGreen()
    {
    COORD FillScreenPos;
    for(int i=0; i<25; i++)
  5. Replies
    3
    Views
    2,956

    I'm making a simple console program where you kan...

    I'm making a simple console program where you kan move a symbol (the ASCII smiley guy - int 2 converted)around a black screen using the keyboard... I'll attach the .cpp file and the .h file
  6. Replies
    3
    Views
    2,956

    Compile error - Reference to `WinMain@16'

    [Linker error] undefined reference to `WinMain@16'

    what is that??? and how can I fix it ?

    I'm using Bloodshed Dev-C++ compiler, and I've included:

    <windows.h>
    <iostream>
    <string>
  7. Replies
    3
    Views
    4,113

    hmm... Didn't think what I wrote was windows...

    hmm... Didn't think what I wrote was windows writing, but I'll move my question to that forum then
  8. Replies
    3
    Views
    4,113

    compile: undefined reference to WinMain@16

    [Linker error] undefined reference to `WinMain@16'

    what is that??? and how can I fix it ?

    I'm using Bloodshed Dev-C++ compiler, and I've included:

    <windows.h>
    <iostream>
    <string>
  9. Replies
    17
    Views
    2,684

    doh... it returns void? :o that would help, thx

    doh... it returns void? :o
    that would help, thx
  10. Replies
    17
    Views
    2,684

    The compiler says the opposite...

    The compiler says the opposite...
  11. Replies
    17
    Views
    2,684

    I use Bloodshed Dev-C++ thx for the help,...

    I use Bloodshed Dev-C++

    thx for the help, but...

    in line 25 below:



    23 ifstream winfilein;
    24
  12. Replies
    17
    Views
    2,684

    how else would you check if the file is already...

    how else would you check if the file is already there? It's a statistics file where I want to store int's... So if it's the first time running the program then it should create a statistics file, but...
  13. Replies
    17
    Views
    2,684

    odd I/O compile error

    I get this odd compile error:

    21 C:\programs\testspil\testspil.cpp `noreplace' is not a member of type `


    line 21: ofstream a_file("wins.txt", ios::noreplace);

    help appreciated
  14. Replies
    10
    Views
    1,371

    but it isn't the rand() function i'm talking...

    but it isn't the rand() function i'm talking about it's the one prelude wrote. The 5th reply here: http://cboard.cprogramming.com/showthread.php?t=53242

    there (edit: she) defines the...
  15. Replies
    10
    Views
    1,371

    Oh yeah almost forgot How would I put the...

    Oh yeah almost forgot

    How would I put the random number into a variable instead of outputting it?

    The class std isn't defined in the code...
  16. Replies
    10
    Views
    1,371

    random number per milisecond

    I've looked at this post
    http://cboard.cprogramming.com/showthread.php?t=53242

    and I checked preludes random number generator, but can't you make it shift to a new number every half or whole...
  17. Thread: cin.getline, help

    by Xarr
    Replies
    5
    Views
    996

    int string[1000]; that's the name of the...

    int string[1000];


    that's the name of the var, it hasn't been used before in the script (first question).
  18. Thread: cin.getline, help

    by Xarr
    Replies
    5
    Views
    996

    cin.getline, help

    I've made this code for a simple test quiz program, it's inside an if statement:




    cout<<"What is Bush's firstname?\n\n";
    cout<<"Answer: ";

    ...
  19. Replies
    4
    Views
    1,858

    omg duh, but thx.

    omg duh, but thx.
  20. Replies
    4
    Views
    1,858

    float gives weird output

    I've just begun programming C, but I'm familiar with the syntax and such.

    I've made a list where fahrenheit is compared to celsius, and it works fine when I use decimal integers. But when I use...
Results 1 to 20 of 20