Help.. C++

G33KSQ4D
8 years ago

0

It’s been a while since I coded C++, so I am trying a website, very basic, but I have to start from somewhere. Anyway, here is the site: “http://www.unknowncheats.me/forum/counterstrike-global-offensive/129168-making-hacks-c.html”. I am currently on Challenge 1:2: “Same program as above but if the file already exists it greets the user with first name, last name and prints out how old they are and wishes them happy birthday if it is the user’s birthday.” Before I explain my problem, here is the source file: “http://hastebin.com/usobebicik.tex”. In the code I write “If the file exists, print what is in it”. The thing is the file is empty, and yet it prints out blanks and squares? I can’t tell really. If you could test the code for yourself. I’d like to know why it’s saying an empty file is bigger than 0 bytes. Thanks.

3replies
2voices
176views
G33KSQ4D
8 years ago

0

Forgot to mention, I was not finished if anyone is wondering why it’s not complete..

G33KSQ4D
8 years ago

0

Weird, I just ran the code, made another profile, and it seemed to save it. When I re-ran the script, it noticed everything that was in it. Maybe this was a bug..? Also if you run the above hastebin, there if a problem when it prints out your information. I just fixed it.

f0rk [HackingGuy]
8 years ago

0

From what Im seeing I think you can do this one all on your own ;)
Just stay motivated ! And if trying fails, try harder ;)

You must be logged in to reply to this discussion. Login
1 of 4

This site only uses cookies that are essential for the functionality of this website. Cookies are not used for tracking or marketing purposes.

By using our site, you acknowledge that you have read and understand our Privacy Policy, and Terms of Service.

Dismiss