is this a legal statement if I include fstream.h:
fopen(C:\Windows\EXITTO~1.PIF) /*this exits windows and opens in dos mode*/
If not, how would I do this. I am a beginner when it comes to opening and closing files.
is this a legal statement if I include fstream.h:
fopen(C:\Windows\EXITTO~1.PIF) /*this exits windows and opens in dos mode*/
If not, how would I do this. I am a beginner when it comes to opening and closing files.
that would just open the file for io, if it was executable it would not execute within your program... also, you'd ahve to enclose that in quotes, as well as give fopen correct arguments for access rights etc...
hasafraggin shizigishin oppashigger...
actually
do this
(with fstream)
Code:fopen("c:\\wherever\\filename.txt"); // because of the \ command the processor will think u are typing // a new line if it is \n or something else so \\ is the operator for '\' // hope ya get it
HACKERS MANIFESTO (NOTE MOST WAS CUT OFF) (PEOPLE SAID IT WAS TOO LONG)
This is our world now... the world of the electron and the switch, the beauty of the baud.
· We make use of a service already existing withoutpaying for what could be dirt-cheap if it wasn't run by profiteering gluttons, and you call us criminals.
· We explore... and you call us criminals.
· We seek after knowledge... and you call us criminals.
· We exist without skin color, without nationality, without religious bias... and you call us criminals.
· You build atomic bombs, you wage wars, you murder, cheat, and lie to us and try to make us believe it's for our own good, yet we're the criminals.
Yes, I am a criminal. My crime is that of curiosity. My crime is that of judging people by what they say and think, not what they look like. My crime is that of outsmarting you, something that you will never forgive me for.
I am a hacker, and this is my manifesto. You may stop this individual,but you can't stop us all... after all, we're all alike.
+++The Mentor+++
oh yeah, the escape sequences... you could also substitute for a forward slash [i know *nix supports it, and your compiler just might... myne [djgpp] does...]
hasafraggin shizigishin oppashigger...
Am i the only one that cant load the "New Thread" page? What the hell is going on?
Anyways I have a problem that I hope someone will read on this page:
Ok, I am trying to import a class (from rect.h) into rect.cpp. I only have a little because I dont know what I am doing:
#include "rect.h"
#include <iostream.h>
Rectangle::Rectangle()
{
length = width = 0;
}
Rectangle::Rectangle(int l, int w)
{
length = l;
width = w;
}
//......
void Rectangle::SetLength(int l)
{
//....
}
here is the .h file, tell me if there are any probs with it, i dont think there are:
class Rectangle {
public:
//constructors
Rectangle();
Rectangle(int l, int w);
//member functions
void SetLength(int l);
void SetWidth(int w);
void GetArea();
void GetPerimeter();
void PrintRectangle();
private:
int length;
int width;
};
AND IF SOMEONE WOULD PLEASE POST THIS MESSAGE IN A NEW THREAD THAT WOULD BE GREAT, my browsers are refusing to load the new post page.
someone look ^^^here^^^ please