Search:

Type: Posts; User: cppdungeon

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,103

    Broken Ctiming?

    time_t feed;
    feed = time (NULL);

    this is the part of my code that hass the error. the compiler (dev bloodshed C++) gives this error message
    "31 no match for call to `(std::string) (NULL)' "...
  2. Replies
    5
    Views
    1,054

    The point is to store a name in a txt file, and...

    The point is to store a name in a txt file, and retrieve it later, even if there are other things in the file
  3. Replies
    5
    Views
    1,054

    Reading from txt

    how can you make a string equal to a stream from a txt file?


    #include <iostream>
    #include <string>
    #include <fstream>
    using namespace std;
    int main(){
    string yay;
    ofstream a ("yay.txt");
  4. Thread: files

    by cppdungeon
    Replies
    1
    Views
    912

    files

    Im pretty shure this is a windows question, so im asking it here. Is there a way to save a fstream file in a different file folder than the program?

    for example say my program creates a file...
  5. Replies
    6
    Views
    1,233

    i got it! thank you for your help. by the way,...

    i got it! thank you for your help. by the way, the point is for a user to be able to save settings even after the program turns off
  6. Replies
    6
    Views
    1,233

    Ok, heres my best shot: #include ...

    Ok, heres my best shot:


    #include <cstring>
    #include <iostream>
    #include <fstream>
    using namespace std;

    int main () {
    ifstream teacher;
  7. Replies
    6
    Views
    1,233

    fstream reading

    Hello, i want to make a program that saves input as a txt, and then can read it back, and save certain portions as strings. i can already do the input, but how do you read the information? what do...
  8. Replies
    5
    Views
    3,540

    Thanks!!! i got it wo work finaly. here is the...

    Thanks!!! i got it wo work finaly. here is the completed code:


    #include <iostream>
    #include <math.h>
    #include <string.h>
    using namespace std;
    int main(){
    int a, b, c, x, y, z;
    int...
  9. Replies
    5
    Views
    3,540

    Greatest Common Factor

    This is my probem: my code should work. in fact, for small numbers it does. (like 2 and 2). but it isnt working, and it gives me one of those "microsoft error" things. please help me.

    ...
  10. Thread: attempt 2

    by cppdungeon
    Replies
    3
    Views
    1,099

    attempt 2

    heres my delimma: i made a program to print a map somewhat like this: [][] (exept 10X10) each square would changes
    [][] depending on what number each "square" eaquals so if...
  11. Replies
    8
    Views
    1,813

    im using it for a chess-like game more like fire...

    im using it for a chess-like game more like fire emblem or advance wars.
  12. Replies
    8
    Views
    1,813

    THANK YOU!!! sorry, internet's been down for a...

    THANK YOU!!! sorry, internet's been down for a while. anyways, specificly, somthing like this:


    if(world[x-1][y]==1){
    a=1;
    }
    then a swich/case statement to decide where it goes like : case 2...
  13. Replies
    8
    Views
    1,813

    anything AI-ish?

    does ANYONE use anything resembling a choice making thingie in any game they've made? im making a chess game, and i posted a tread erlier. this is different. i want to find other methods that...
  14. Replies
    1
    Views
    1,108

    chessly ai-thingies

    heres my problem: its not working, and i dont know how to make ia, so i made...an if thingie that should work. but it doesnt. it theroreticly checks all the spaces in the vicinity of the "peice"...
  15. Replies
    12
    Views
    1,217

    a very easy way to start, is just reading the...

    a very easy way to start, is just reading the tutorials on this site (its allso free!). its all ive read, 'cept for my dads really old C book. and, if it turns out you hate and despise c++ (mebe...
  16. Replies
    3
    Views
    1,212

    oooo....neat.

    oooo....neat.
  17. Replies
    3
    Views
    1,212

    i have no clue what that means, but ill look

    i have no clue what that means, but ill look
  18. Thread: looping

    by cppdungeon
    Replies
    6
    Views
    1,153

    *._. grrr...evil smiley i mean ( ; ; )

    *._. grrr...evil smiley i mean ( ; ; )
  19. Thread: looping

    by cppdungeon
    Replies
    6
    Views
    1,153

    the for(;;) works...

    the for(;;) works...
  20. Thread: my game.

    by cppdungeon
    Replies
    6
    Views
    1,337

    yep try it its kinda fun

    yep
    try it its kinda fun
  21. Thread: my game.

    by cppdungeon
    Replies
    6
    Views
    1,337

    my game.

    my game isnt working...see? this is the code. it prints a board like this:
    10 [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
    9 [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
    8 [ ][ ][ ][ ][ ][ ][ ][ ][ ][ ]
    7 [ ][ ][ ][ ][...
  22. Replies
    3
    Views
    1,212

    color changing in c++

    how do you change the color in c++? :confused:
  23. Replies
    19
    Views
    4,568

    oops. im new at this...

    oops. im new at this...
  24. Replies
    19
    Views
    4,568

    just add a cin.get(); before the }

    just add a cin.get(); before the }
  25. Replies
    19
    Views
    4,568

    um...

    ...try adding another cin.get(); at the ent of the file (before the "}" of course) and it chould work. i think. :D
Results 1 to 25 of 25