|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
escape characters
Hi, I was wondering if there is a newpage escape character in c++ like the newline escape character("\n"). I am using gcc under linux. Any help would be appreciated
|
|
#2
|
|||
|
|||
|
\f is new page
![]()
__________________
-- Manuel Hirsch - Linux, FreeBSD, programming, administration articles, tutorials and more. |
|
#3
|
|||
|
|||
|
Thanks for the info but it still doesn't work. This is how I am using it:
outFile << "someString\f someOther string"; is there a special header file I have to include or something? |
|
#4
|
|||
|
|||
|
no. nothing to be included. But your OS and the output device need to support it
![]() maybe the newpage escape character is not what you wanted... what effect do you want? the newpage character is for printers i think, i donīt think terminals or files support it (since they have no pages...) |
|
#5
|
|||
|
|||
|
Basically I have made a employee punch Card program. You specify punch in times and punch out times from a file along with the employee id and the program keeps track of all regular time hours and over time hours per day. At the end of each week the program computes payments. Now I want the information of each employee on a new page. I used the \f on a file and all I get is a little box [] at the position that I typed it. I tried printing it out but it doesn't print on a seperate page. There must be something in the language the forces a new page. Thanks for the help
|
|
#6
|
|||
|
|||
|
the little box is the \f ("form-feed"). your program that displays the file is not compatible
it tries to display ascii 0x0cwhich os does your program run on? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > escape characters |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|