I was wondering how do you go about converting a text file to a binary file? :)
Type: Posts; User: Wiz_Nil
I was wondering how do you go about converting a text file to a binary file? :)
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...
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...
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...
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.
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...
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 :) :) :) :)
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...
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?
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...
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 :)
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...
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 :( :( :(
Huhhhhhhhh :) I see now
Many thanks :) :) :) :) :) :) :)
I am just not thinking right LOL
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?
...
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
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,...
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...
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......
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...
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....
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...
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...
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...
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......