Search:

Type: Posts; User: Wiz_Nil

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    1,170

    coverting text t binary files

    I was wondering how do you go about converting a text file to a binary file? :)
  2. Replies
    12
    Views
    2,481

    What Biosx said is very true. It is defined so...

    What Biosx said is very true. It is defined so that I only have to change it once if I decided to change the size. However if I didn't do it the way it did it than when it comes to changing the size...
  3. Replies
    12
    Views
    2,481

    Funny looking characters

    This program runs fine but I am getting funny looking characters.
    It's just really one, it's at the botton of the screen. You should see it once u run for yourself.
    I don't know how it gets there...
  4. Replies
    4
    Views
    862

    Reading from file

    Can someone pleaseeee tel me how do I read names(5) from a file and store it into an array...

    I've tried everything I know but I just can't do it...

    It's only a couple line of codes but I can't...
  5. Thread: Syntax Error

    by Wiz_Nil
    Replies
    3
    Views
    983

    Syntax Error

    location = num_list.line_search(char want);


    This line is giving me a syntax error. Can someone tell me why?

    Please helppppppppppp :)

    Many thanks in advance.
  6. Thread: file i/o

    by Wiz_Nil
    Replies
    5
    Views
    1,085

    file i/o

    Hi everyone :)
    Hopefully u can help me with this problem. pleaseee help :)


    How do you make my code read one line after another. Right now my code is only reading the first line, I want it to...
  7. Replies
    1
    Views
    1,197

    I'm only starting out with C++, I'm still...

    I'm only starting out with C++, I'm still learning the basics as I'm a newbie.


    Is there a simpler way of doing it. It's too advanced what u've got up there.

    Greatly appreciated :) :) :) :)
  8. Replies
    1
    Views
    1,197

    Reading from a file

    Hi! how you all going? I'm hoping you will help me with this little problem :)

    I was wondering how do I make my program stop reading the file and storing it into the array once it encounters a...
  9. Replies
    8
    Views
    2,314

    I think it is as a text file. I'm pretty sure it...

    I think it is as a text file. I'm pretty sure it is.

    And the file that it is reading from has the extension .dat but is save as a text file in notepad.

    Is this OK?
  10. Replies
    8
    Views
    2,314

    I'm putting aside the problem above and working...

    I'm putting aside the problem above and working on a similar problem that is related to the above problem slightly.


    #include <iostream.h>
    #include <fstream.h>
    #include <conio.h>
    #include...
  11. Replies
    8
    Views
    2,314

    Still funny characters

    Yeh u were right about one of the variable being 3, c was suppose to be 3.

    I've changed it but I am still getting funny symbols.
    Any ideal why is happening???

    Pleaseeee :)
  12. Replies
    8
    Views
    2,314

    Characters. Funny looking ones

    Hi everyone! I hope that u will be able to help me with this small problem. :)

    I got this program that reads characters from a txt file and stores them in a array.
    I then want to display the...
  13. Thread: Random numbers

    by Wiz_Nil
    Replies
    13
    Views
    1,262

    what if i want random numbers from a set of,...

    what if i want random numbers from a set of, 3,5,7,9,11

    I thought about 2*(3+rand()%8) but that's wrong
    than i thought.....
    2*(3+rand()%8)-1 but that's wrong too


    pleaseee help :( :( :(
  14. Thread: Random numbers

    by Wiz_Nil
    Replies
    13
    Views
    1,262

    Huhhhhhhhh :) I see now Many thanks :) :) :)...

    Huhhhhhhhh :) I see now

    Many thanks :) :) :) :) :) :) :)

    I am just not thinking right LOL
  15. Thread: Random numbers

    by Wiz_Nil
    Replies
    13
    Views
    1,262

    Could you please explain this to me. From what...

    Could you please explain this to me.

    From what I understand, the above code is saying that the range is from 0 to 4, but than multiply by 2.

    Are you sure it is multiply, shouldn't it be plus?
    ...
  16. Thread: Random numbers

    by Wiz_Nil
    Replies
    13
    Views
    1,262

    How would I get a random number from the...

    How would I get a random number from the following set of numbers... 2, 4, 6, 8, 10.

    I thought of do... (2 + rand() % 8);
    but that doesn't work.

    Many thanks in advance
  17. Thread: Random numbers

    by Wiz_Nil
    Replies
    13
    Views
    1,262

    Random numbers

    I got this program which I have pasted below is not behavouring as I would expect it to.

    It works fine but the thing is that it is not displaying the random numbers in the range i want it to,...
  18. I am doing the same excercise... except i use...

    I am doing the same excercise...

    except i use for loops for my customer

    I tested your program and it runs fine. I don't know why u can't get it run. Make sure everything is right, header syntax...
  19. Replies
    3
    Views
    10,709

    Ok are these the same as local variables or are...

    Ok are these the same as local variables or are these only encountered with functions and classes...

    I'm getting the feeling they are encountered when functions are called only... I don't know......
  20. Replies
    3
    Views
    10,709

    Call-by-value Vs. Call-by-reference

    Just something I'm sure everybody knows except for me :) :(

    What is the difference between thses two (call-by-value & call-by-reference) and which one is better, which one should I use.

    I...
  21. Replies
    3
    Views
    1,644

    Many thanks :)

    Thanks Govtcheez!!! :)

    I hate it when I can't figure out simple problems.


    and thanks to everyone else too :)



    I just wanna take this opportunity to say thanks to everybody who help out....
  22. Replies
    3
    Views
    1,644

    can't work out float???

    Hi everyone!


    /* A program that calculates and print the parking charges for each of 3 customers who parked their car in the garage yesterday
    */



    #include <iostream.h>
    #include...
  23. Thread: Brute Force

    by Wiz_Nil
    Replies
    13
    Views
    5,277

    A little Thanks

    Thanks for that Shiro.

    Your right about not getting duplicates if I set A=B or B=A.
    It took me awhile to work the logic out on that one, why is it that I don't get any duplicates if I initialize...
  24. Thread: Brute Force

    by Wiz_Nil
    Replies
    13
    Views
    5,277

    Replying to SHIRO

    This message is intended for SHIRO who has replied to my call for help.

    First let me say thanks for having an input and trying to help out, Thank-You! :)

    The only thing wrong with your...
  25. Thread: Brute Force

    by Wiz_Nil
    Replies
    13
    Views
    5,277

    Causes Unwanted Repetition :(

    I can see where you are getting the idea from but just so that I can try to explain things easier... we will say the range is 1-3 only, for simplicity sake.

    OK, u have the following loops above......
Results 1 to 25 of 27
Page 1 of 2 1 2