Search:

Type: Posts; User: quiet_forever

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Thanks

    Thanks tabstop, that did the trick. I was trying to do things the hard way and it turned out so simple! :)
  2. clarification

    I'm not sure you understood what I was saying, let me give an example.

    You have some input like this:

    1 2 3 4 5 6 -1 7 8 9 10

    When you reach (-1) you should print out the numbers...
  3. Ignoring negative numbers and moving on

    I am trying to read from a file of integers, when the program encouters -1 then it is to skip over it and continue reading more integers that follow it. I was thinking about using fin.ignore, but...
  4. Replies
    2
    Views
    1,536

    I get that, but where would I put it?

    I get that, but where would I put it?
  5. Replies
    2
    Views
    1,536

    counting true's and false's from bools

    I have written a program that reads in data from a file about people like so :

    first name, last name, age, is hispanic, if hispanic what type of hispanic, race, disability

    I have a bool that...
  6. nevermind I got it thx

    nevermind I got it thx
  7. declaring and using functions in a class

    The point of my program is to read in a file that lists people like this:

    first name, last name, age, if hispanic? , if hispanic - hispanic type, race, disability

    So if a person is hisapnic,...
  8. Replies
    7
    Views
    2,874

    Thanks

    I'm not at home right now to try it but it definitly looks like it would work. This was exactly what I was trying to do and now that I look at it looks so simple : )
    Thanks matsp!
  9. Replies
    7
    Views
    2,874

    reply

    Yes the matrices are all the same size, 4 by 4.

    What I'm trying to do is instead of listing all the possibilites of combinations such as, AA,AB,AC,AD,BB,BC,BD,CC,CD, I want to be able to use the...
  10. Replies
    7
    Views
    2,874

    adding matrices, help with switches

    I'm writing a program in which I read in four matrices (A, B, C, D) and four commands and operate those commands. One of the commands is to add two matrices. The command reads in like this :
    a A B...
  11. Replies
    2
    Views
    1,717

    Mutiple switches

    I am trying to work out a switch for a program for ordering pizzas. The user should first have a choice of of they would like to start an order or print grand totals. If they choose to print grand...
  12. Replies
    3
    Views
    1,607

    something like this: int SumofAll (int...

    something like this:




    int SumofAll (int Array[], int size)
    {
    int total = 0;
    for (int i = 0; i < size; i++)
    total+= Array [i];
  13. Replies
    3
    Views
    1,607

    (newb) Summing half of an array

    I understand how to sum all the numbers in an integer array but how can I sum up just half of the numbers in the array like just the top half or just the bottom half? Any suggestions would help,...
  14. Replies
    1
    Views
    1,427

    file to array

    I am new to programing and was wondering how to read in a file of integers and then put those integers into an array?
  15. Replies
    3
    Views
    1,083

    Since it will always round up could I use the...

    Since it will always round up could I use the ceil function in the cmath library?
  16. Replies
    3
    Views
    1,083

    determining floats or ints

    I am a new programmer and I am trying to write a funtion which does an equation then determines if it is a float, or decimal number. If it is then it needs to be rounded up to the next whole number....
  17. Replies
    6
    Views
    2,173

    You know I am a beginner and I'm sorry I'm not as...

    You know I am a beginner and I'm sorry I'm not as superior as some people here think they are but even if I wern't there is no reason to go insulting peoples work, whether it's wrong or not. If you...
  18. Replies
    6
    Views
    2,173

    I know that, but how do I do that in my program...

    I know that, but how do I do that in my program and get it to work? I tried to in my program above but that doesn't work.
  19. Replies
    6
    Views
    2,173

    I am suppose to add each number in the array...

    I am suppose to add each number in the array together one by one. If the two numbers add up to greater then ten I know I have to minus ten for that particular index place but how do I add one on to...
  20. Replies
    6
    Views
    2,173

    Addition array

    In this program that I have written so far I am attempting to add two very large integers together using arrays:



    #include <iostream>
    using namespace std;

    const int Size = 20;
    int main...
  21. I know but thats how he wanted us to do it

    I know but thats how he wanted us to do it
  22. Converting character array to integer array

    It seems like my old thread had died because the people helping me are now offline and no one else is repsponding so I am just gonna start this new post.

    This is an assigment I recieved for one...
  23. Thread: Help!

    by quiet_forever
    Replies
    14
    Views
    1,423

    okay I got the error to stop. This is what I have...

    okay I got the error to stop. This is what I have now:




    #include <iostream>
    using namespace std;


    const int Size = 20;
  24. Thread: Help!

    by quiet_forever
    Replies
    14
    Views
    1,423

    I tried to do what I had before for converting...

    I tried to do what I had before for converting the charcters thsi si what I put:




    #include <iostream>
    using namespace std;


    const int Size = 20;
  25. Thread: Help!

    by quiet_forever
    Replies
    14
    Views
    1,423

    How?

    How?
Results 1 to 25 of 32
Page 1 of 2 1 2