Search:

Type: Posts; User: Apocalyptic_end

Page 1 of 2 1 2

Search: Search took 0.03 seconds.

  1. Replies
    9
    Views
    1,702

    I don't want to Open a file, I want to write it,...

    I don't want to Open a file, I want to write it, the Input variable will be the name of it.
  2. Replies
    9
    Views
    1,702

    Ok... so where do I put that code in my program...

    Ok... so where do I put that code in my program and what code do I merge?
  3. Replies
    37
    Views
    3,840

    Ok, for the "For" loop you asked why it isn't 2...

    Ok, for the "For" loop you asked why it isn't 2 leveled, I presume by level you 2 you mean 6 spaces after the "F" in for, since each level is 3 spaces. I did this aswell for the "If" statement.
  4. Replies
    9
    Views
    1,702

    Ok. So where would I go to try to learn this. ...

    Ok. So where would I go to try to learn this. I've googled it and I couldn't find it.
  5. Replies
    37
    Views
    3,840

    Oh. I knew I forgot something. I just did, I...

    Oh. I knew I forgot something. I just did, I guess I made a mistake.

    Here's the improved version:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
  6. Replies
    9
    Views
    1,702

    What I know.

    Here's my 2 codes for asking a users name and writing a file:

    User Name input:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
  7. Replies
    37
    Views
    3,840

    Yeah. Well, I didn't read rule one, so I didn't...

    Yeah. Well, I didn't read rule one, so I didn't realise the whole thing about blocks. Here's my new code:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;...
  8. Replies
    37
    Views
    3,840

    Oh well I'm using Dev-C++ and it says it says...

    Oh well I'm using Dev-C++ and it says it says 13:3 and I know the (Well I thought) the 3 meant 3 spaces. So I guess I was wrong. Thanks for the help.
  9. Replies
    9
    Views
    1,702

    Saving Variable File Name

    Hello all!

    I want to ask the user a question and when the user answers it makes a file with the name of the answer I.E:

    "What is your name?"
    User inputs "Fred"
    Then a text file with the...
  10. Replies
    37
    Views
    3,840

    New indenting levels

    Here is my code, each level consists of 3 spaces:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
    void myflush(std::istream& in)
    {
  11. Replies
    37
    Views
    3,840

    No I get it, I made a mistake by thinking that...

    No I get it, I made a mistake by thinking that each level was 4 spaces, not 3, Let me try it again. I also presume by you putting a "!" after the level 0 indentation, I should make it a level 1...
  12. Replies
    37
    Views
    3,840

    How about now?

    What about now?


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
    void myflush(std::istream& in)
    {
  13. Replies
    37
    Views
    3,840

    Yeah ok, but where are my levels inconsistent?

    Yeah ok, but where are my levels inconsistent?
  14. Replies
    37
    Views
    3,840

    I guess I don't get much of it

    I don't really get it at all, what are indentation levels?
  15. Replies
    37
    Views
    3,840

    Indenting...

    Yeah... I did read it... I'm just a little bit confused
  16. Replies
    37
    Views
    3,840

    Hooray! I figured it out! I opened the Dev file...

    Hooray! I figured it out! I opened the Dev file instead of the CPP File.
  17. Replies
    37
    Views
    3,840

    How's this indenting?

    Is this better indenting?


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
    void myflush(std::istream& in)
    {
  18. Replies
    37
    Views
    3,840

    Ok. I see we are talking about talking to...

    Ok. I see we are talking about talking to different things, I think. I want the 7 numbers to show up in the Example.txt file and not just in the program when I run it.

    When I run the program I...
  19. Replies
    37
    Views
    3,840

    Yes. I'm sure. I've Compiled it multiple times....

    Yes. I'm sure. I've Compiled it multiple times. Ran it many times with the same affect.
  20. Replies
    37
    Views
    3,840

    Still only one number

    In Example.txt it only repeats the last of my 7 Random_integer numbers. I want all of them to be shown.
  21. Replies
    37
    Views
    3,840

    Fixed my indentation

    Well... I've fixed my indentation and Moved some of my Text Writing code:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
    void myflush(std::istream& in)
    {
  22. Replies
    37
    Views
    3,840

    Saving number Output

    Hello. Let's start with my code:


    #include <stdio.h>
    #include <fstream>
    #include <iostream>

    using namespace std;
    void myflush(std::istream& in)
    {
  23. Replies
    2
    Views
    1,195

    Ok. Thanks for your help.

    Ok. Thanks for your help.
  24. Replies
    2
    Views
    1,195

    Random Output Numbers

    Here is my code:


    #include <cstdlib>
    #include <ctime>
    #include <iostream>
    #include <stdio.h>

    using namespace std;
    void myflush(std::istream& in)
  25. Replies
    16
    Views
    1,791

    Ok.

    Ok. Thanks alot.
Results 1 to 25 of 32
Page 1 of 2 1 2