Search:

Type: Posts; User: Gil22

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,763

    nevermind, I found the answer on one of the...

    nevermind, I found the answer on one of the articles
  2. Replies
    2
    Views
    1,763

    integer to character

    Hi,
    I have a program where I am using an integer array. I had to get some character input from the keyboard and store it in the integer array which worked fine since it stored it as the ascii...
  3. Thread: memory question

    by Gil22
    Replies
    5
    Views
    1,134

    what exactly is a simm tester

    what exactly is a simm tester
  4. Thread: memory question

    by Gil22
    Replies
    5
    Views
    1,134

    memory question

    is it possible to write a program that will take all the unused memory locations on your computer and set them to 0?
  5. Thread: double numbers

    by Gil22
    Replies
    1
    Views
    1,172

    double numbers

    can someone tell me why this doesnt produce the rigth number?



    #include <iostream.h>

    int main()
    {
    double ounces = 0;
    double tons = 0;
  6. Thread: lists

    by Gil22
    Replies
    5
    Views
    909

    never mind.......i'm an idiot and figured it out....

    never mind.......i'm an idiot and figured it out. i had a null as the last place in the linked list and when i was tested it i was only outputting the top->data which was a null and didnt output...
  7. Thread: lists

    by Gil22
    Replies
    5
    Views
    909

    if i make this linked list in a while statement,...

    if i make this linked list in a while statement, can i still access it outside the while statement?
  8. Thread: lists

    by Gil22
    Replies
    5
    Views
    909

    its a run time error.......i'm trying to input an...

    its a run time error.......i'm trying to input an array into a linked list. i dont think it has anything to do with changing it fropm a 2 to a 1 dimensiona array because it works when i just have the...
  9. Thread: lists

    by Gil22
    Replies
    5
    Views
    909

    lists

    can anyone see why this code isnt working?


    while(array[i][j] != '?')//while not end of array
    //invariant: array[i][j] is not a question mark and array[i][j] is part of an array
    {...
  10. Replies
    18
    Views
    5,153

    alright i think i actually need to use complex...

    alright i think i actually need to use complex numbers......is therea way to declare these?
  11. Replies
    18
    Views
    5,153

    so to declare an imaginary number......i could...

    so to declare an imaginary number......i could just do this right?

    double i = sqrt(-1);
  12. Replies
    18
    Views
    5,153

    ok i get what imaginary numbers are now. i have...

    ok i get what imaginary numbers are now. i have to write a program that solves the quadratic formula and i need to include imaginary numbers in the program......what do these numbers have to do with...
  13. Replies
    18
    Views
    5,153

    ok you got me.......i feel like an idiot but what...

    ok you got me.......i feel like an idiot but what exactly is an imaginary number?
  14. Replies
    18
    Views
    5,153

    is there a type of variable you could use to...

    is there a type of variable you could use to represent them? i dont really know a lot about imaginary numbers and i need to use them in a program i have to write
  15. Replies
    18
    Views
    5,153

    imaginary numbers

    what kind of variable would you use to represent these?
  16. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    lol........i've been making some stupid mistakes...

    lol........i've been making some stupid mistakes lately. thats def it, thanks for helping me catch that.
  17. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    x works fine......its the cout

    x works fine......its the cout << y[1] that screws up, it should output a simple character but it outputs a piece of junk instead. when i test the filling of the array inside the loop it works fine...
  18. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    it doesnt work for some reason.....here a small...

    it doesnt work for some reason.....here a small example of my code so you guys can see what i'm trying to do


    while(top2 != NULL)
    {
    int i = 0;
    y[i] = top2->data;
    cout << y[i];...
  19. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    yea thats exactly what i was doing......cant you...

    yea thats exactly what i was doing......cant you do that with an array and it will output what you put in it?
  20. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    ok heres another question then.......i declared...

    ok heres another question then.......i declared it outside of the variable but if i try to output it after the while statement then just junk comes out. its an array by the way, it outputs fine while...
  21. Thread: local variables

    by Gil22
    Replies
    14
    Views
    2,103

    local variables

    if i declare a variable in a while statement, can that variable only be used by the whiel statement? i tried doing that and then when i try to access the variable later in the program it says that...
  22. Thread: question

    by Gil22
    Replies
    7
    Views
    1,531

    i want the user to be able to enter a string but...

    i want the user to be able to enter a string but for the program to access that string one character at a time. the exact same thing as getting characters from a file using in_stream.get(next) except...
  23. Thread: question

    by Gil22
    Replies
    7
    Views
    1,531

    ok that didnt work.......what was that last...

    ok that didnt work.......what was that last ::blab line?
  24. Thread: question

    by Gil22
    Replies
    7
    Views
    1,531

    i dont understand how that would...

    i dont understand how that would work......wouldnt it get an integer instead of a character. i want to be able to have the user enter a sentence and access that sentence one character at a time.
  25. Thread: question

    by Gil22
    Replies
    7
    Views
    1,531

    question

    i know gow to get characters from a file using in_stream.get(next). is there a way to get characters from a user instead of from a file and how would i do this.
Results 1 to 25 of 57
Page 1 of 3 1 2 3