i heard one of the method is using % and / as predicate when compare the elements, but i dont really understand why use % and /, may anyone explan for me, thx very much!
Type: Posts; User: gamett711221
i heard one of the method is using % and / as predicate when compare the elements, but i dont really understand why use % and /, may anyone explan for me, thx very much!
after all i redefined fstream outfile,infile; in all the loop its finally work, but still dont know where should i really declare them, but
thx for remind
[/LEFT]
if(choose=='S'||choose=='D'||choose=='T')
{
outfile.open(filename,ios::out|ios::app);
outfile.close();
infile.open(filename,ios::in);
if(!infile)...
u mean like this?
system ("del abc.txt");
system ("ren def.txt abc.txt");
however i am trying to find other way out
but thank you all
i dont find there is rename for cstdio @@
thats say there are two files
file abc.txt
file def.txt
and i wann delete the contents in abc.txt and copy the contents in def.txt to abc.txt then delete the def.txt file
any...
How come the information is not passing to txt file
void hotel::submenu()
{
information n;
char choose;
ic
thank you for helping
i am trying
- bill' : local function definitions are illegal
- unexpected end of file found
#include<iostream>
#include<conio.h>
#include<cctype>
#include<string>
#include<stdlib.h>
#include<fstream>
#include<iomanip>
#include<time.h>
#include<string>
#include<stdio.h>
but why not use s != 0 instead using s != '\0'
int mystery2(const char *s)
{
int x;
for (x = 0; *s!='\0'; s++)
++x;
return x;
}
plz tell how to write the program for filling a polygon in electronic fashion and u may fill it with pixel and first generate a polygon as shown below then fill the polygon, all slope lines are 45...