True.. :D
.. and a great thanks to everyone who helped me with this problem. :)
Type: Posts; User: JamMan
True.. :D
.. and a great thanks to everyone who helped me with this problem. :)
Cheers whoever you are..
You know there are some very good programers, that never register and stay as 'unregistered', why dont they register??
Thanks anyway..
JamMan.. :)
By the curly bracket I mean:
if //length of a string is equal to or more than 20, need to know the code to put here??
{
//then do this
}
Cheers Gotvcheese, thats what I thought it was. But does this only works on strings??
Can anyone help me with the following:
"And also I how I program some code that operates when the maximum...
Cheers V :)
But could someone please explain what each part of the command does??
I understand that the '20' is the maxium number of characers.
But is the 'string' the variable type to be...
How do I store an input as 20 characters long, with spaces included.
For example when storing an address '31 High Street',
only stores the '31'??
Can someone please help me??
Why when I print to my printer does it only print-out capital letters, numbers and # ??
:confused:
Heres the code...
print << "HELLO hello 12389 # {}[];'.!£$^&*()\f"; //only prints out the...
Thats helped, :)
but I'm getting a compiler error. :(
Here's my code:
ifstream input("file.txt");
ofstream output("temp");
string s;
int i = 0;
Thanks that has helped but how do I check if a string exists or not?
Erase all the text on a certain line?
and then
Write to this line?
ofstream mnfile(c:\\temporary.txt, ios::ate);
mnfile.getline(input, 255, '\n');
mnfile<<(manumb);
The below code is from my program. The variable 'input' is a line from a text file.
I'm trying to check if the line exists or not I am currently using NULL but it doesn't seem to work??
Am I...
Cheers Kermi
But I've read through the tutorials about file io and search the net but cann't find any info on how to goto to specific line in a txt file and then edit it??
:(
:confused:
How do I read information from a certain line from a txt file in as a char, and then edit it.
This my code, but it doesn't work? Can someone please help as File IO is one of my weaker areas of...
.. print via the printer device driver in Console App?
And can someone demonstrate..
Thanks
Cheers Brown Drake think I got it now.
Dont understand, I just don't understand what it means!..
Sorry http://www.rsownersclub.co.uk/ubb/confused.gif
Hi, dont fully understand that, but nearly..
How would I write a program that put certain lines of a text file onto a certain x,y on the screen.
if(lines++%20==19)
If post up some code (ideally the whole program) that you use to print the text file I maybe be able to help you.
I'd recomend learning C then C++! :D
As C++ is more advanced, and it would be logical to start on the founder.
Just my 10p's worth. :D
Hi I have a problem wih the following programs that prits to LTP1(parallel port). It only prints letters in Caps, Numbers and #, why is this? and how can I print all Characters?
Also is there any...
Now I'm trying to get the program to display the lines of the text file on different xy positions.
if (i = (choice) * 10)
{
gotoxy(15,3);
cout << input << endl;
}
Cheers people!! I'm almost there to understanding this..
I'm unsure about the two above lins of code. What is the nmber 255 representing??
Thanks JamMan..
Sorry.. You lost me, Open it at the Command Prompt?? :confused:
Cheers but the program Fordy gave me doesn't seem to work, I put a getch(); at the end but the screen just flashes up and then disappears??
Could someone be so kind as to explain what every line...