Search:

Type: Posts; User: Sedvan

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,244

    Heres why

    So that I can display based on the 8 different choices.


    #include <iostream>
    #include <iomanip>
    #include <string>
    #include <fstream>

    using namespace std;
  2. Replies
    6
    Views
    1,244

    so declare A?

    with int or float?
  3. Replies
    6
    Views
    1,244

    Problems with declaration

    I've written a program that sorts a list of 188 movies based on, title, year, media type and length. I am having problems with the creation of a menu though. It seems I cannot create a
    working...
  4. Replies
    2
    Views
    1,589

    Sorting problems.

    This code is meant to sort a list of movies from a file based on title, year, media and length. The format for the movie file is:


    You've Got Mail,1998,109,DVD
    Birthday Girl,2002,129,VHS
    Get...
  5. Replies
    48
    Views
    4,318

    well

    Good point..i removed one. Didn't really seem to be the root of the problem though.
  6. Replies
    48
    Views
    4,318

    Now I'm just wondering

    What exactly is making this program run without outputting if the answer is correct or incorrect after every input.
  7. Replies
    48
    Views
    4,318

    Okay I gave it a shot.

    int main()
    {

    srand( (unsigned int)time(NULL) );
    int num;

    for (int i = 0; i < 1000; i++)
    {
    num = rand();
    if (i % 10 == 0)
  8. Replies
    48
    Views
    4,318

    Being confused and not listening are too very...

    Being confused and not listening are too very different things. You're wiki is helpful. But I can't just read some instructions and be expected to grasp the concept of how to neatly organize...
  9. Replies
    48
    Views
    4,318

    k..

    Well thanks anyway. I just wish you'd realize that I don't have the knowledge you do so I can't know what you mean by, "That's poorly indented". I can only take stabs in the dark and read the link...
  10. Replies
    48
    Views
    4,318

    hows this?

    I think this is neater than before.

    #include <iostream>
    #include <ctime>
    #include <cstdlib>
    using namespace std;
    int main()
    {
    srand((unsigned)time(0));
    int answer,i;
  11. Replies
    48
    Views
    4,318

    you want me to

    You want me to indent with 4 or 8?
  12. Replies
    48
    Views
    4,318

    only spaces this time.

    Okay so now I did spaces. Whatya think?

    #include <iostream>
    #include <ctime>
    #include <cstdlib>
    using namespace std;
    int main()
    {
    srand((unsigned)time(0));
    int answer,i;
  13. Replies
    48
    Views
    4,318

    if I'm tabbing then-

    does that mean I only hit it once, because everything just lines up and the eye won't see the difference in the statements...?
  14. Replies
    48
    Views
    4,318

    alright

    Seems a little irrelevant to me but then again i'm used to looking at my own code and I see differently than you might.



    #include <iostream>
    #include <ctime>
    #include <cstdlib>

    using...
  15. Replies
    48
    Views
    4,318

    Alright

    Well You guys are telling me to get rid of all my spaces/tabs, and I really don't understand how thats going to solve my problem. It's probably more of a style thing so that it's easier for you to...
  16. Replies
    48
    Views
    4,318

    :P I don't

    I'm pretty ignorant.
  17. Replies
    48
    Views
    4,318

    I'm not even to the % wrong part..

    I'm more concerned with repetition of the code and it outputting whether or not it's right. I am able to make it repeat, but it won't output the outcome anymore.
    {
    for (int j = 0; j < 10;...
  18. Replies
    48
    Views
    4,318

    Is this better?

    #include <iostream>
    #include <ctime>
    #include <cstdlib>

    using namespace std;

    int main()
    {
    srand((unsigned)time(0));
    int answer,i;
  19. Replies
    48
    Views
    4,318

    Progress but it still stinks.

    Okay so I've been working on it, and I removed void like you wanted me to..hasn't really changed the program much..I really need a pointer on how to fix my loop..it works fine until i try to make it...
  20. Replies
    48
    Views
    4,318

    Okay So I've been tweaking it and

    It atleast runs the questions 10 times. But it doesn't grade them after each time. hrm..any ideas?

    #include <iostream>
    #include <ctime>
    #include <conio.h>
    #include <cstdlib>
    #include...
  21. Replies
    48
    Views
    4,318

    Could I use a while loop?

    If the while loop repeats code until a condition is met then You can cause that loop that causes the answer to be correct or incorrect to repeat itself?
  22. Replies
    48
    Views
    4,318

    How could I repeat this loop 10 times?

    if i have this, could i put the for loop inside another loop and so that the student can take a little pop quiz and see the percent wrong?


    #include <iostream>
    #include <ctime>
    #include...
  23. Replies
    48
    Views
    4,318

    Thanks

    Wow...that clears things up a bit...It seems like I was putting to many if and else statements in there..it works now :P
  24. Replies
    48
    Views
    4,318

    Problems with an If loop..

    Alright, Now the purpose of the program is to generate two random numbers both from the pool of 1-50 and have them come in the form of the question asking the user to input the sum. They get two...
Results 1 to 24 of 26
Page 1 of 2 1 2