AO: We are back from the dead... again! After an 18 day outage, we are finally alive and well. Who knew how complicated updating software/databases from 2008 would be. I still have alot of tweaks to make, but my main goal was getting everything patched and updated to 2026.
Vbulletin 6 has changed alot since 2008 so we will have a ton of new features to dig into.
Yes but what if there is a 65 degree incline jump on the offroad part of the track. Due to the ferarri's extremely low ride height it wouldn't be able to climb the jump. LOL
int main()
{
int l,choice, invalid;
do{
cout<<" Choose either to add(1), subtract(2), multiply(3), divide(4) or quit(5): ";
cin>>choice;
if(choice==1)add();
if(choice==2)
sub();
if(choice==3)mult();
if(choice==4)div();
if(choice==5)cout<<"Wrong answer buddy! muhhahaha!! You can not leave the caluclator of DDOOOOOOOMM!!"<<endl<<endl;
else{ cout<<"INVALID ANSWER BUDDY >=)"<< endl;
}
return 0;
}
void add()
{
cout<<"aww common, are you really that stupid to not knwo hwo to add?? I'm not wasting my time writing code for addition..."<<endl;
}
void sub()
{
int n1,n2;
cout<< "fine... enter two numbers to be subtracted: ";
cin>> n1 >> n2;
cout<<n1<<" minus "<<n2<<" equals... "<<n1-n2<<"."<<endl;
}
double mult()
{
int n1,n2;
cout<<" Didn't you learn your multiplication table when u were in 3rd grade?!"<<endl<< Enter two numbers you wish to be multiplied: ";
cin>>n1>>n2;
cout<<n1<<" times "<<n2<<" equals... "<<n1*n2<<"."<<endl;
}
double div()
{
int n1, n2;
cout<< Plz enter two numbers you wish to be divided: ";
cin>> n1>>n2;
cout<<n1<<" divided by "<<n2<<" equals..." <<n1/n2<<"."<< endl;
}
//edit: hrm.. aparently the forums don't like C++... some of the stuff got messed up.. oh well
You got like over a dozen things in there that will keep it from compiling... And even after you clean up your syntax errors, your program won't do anything.
It should look more like this (I didn't check it for errors, but should be pretty close):
I've been following this - it's pretty interesting, but I'm not sure If I learned anything. Miscue, what was the first textbook you used when learning to program. (i.e. beginning literature/manuals)
The gelatin on the stainless like the diamond on the vinyl.
The Complete HyperCard 2.2 Handbook... followed by "Oh Pascal." Don't get these books though... pretty much dead languages.
You can never have too many programming books... I have multiple books on the same language - simply because one book just doesn't cover or concentrate on everything.
If you're interested in getting a C++ book, the "C++ How To Program" book from Deitel & Deitel is good. "Programming and Problem Solving with C++" by Dale-Weems-Headington is an ideal book for beginners. It seems that just about every book from O'Reilly is really good (my favorite line of books)... they do the VariousTopic-in-a-Nutshell books. "Black Books" are typically good, I particularly like the VB Black Book.
After you become pretty familiar with C++ and programming in general, "Data Structures & Algorithm Analysis in C++" by Weiss is good. If not this one, you should get something on data structures and stuff dealing with basic algorithm analysis type stuff... Big-O, Big-Theta... etc.
The Revolutionary Guide to Assembly Language is one of the best I've found for x86 assembly... if you get into that.
Some good non-programming books (but a little on the intermediate/advanced side):
"Computer Organization" by Hamacher-Vranesic-Zaky
"Computer Organization & Design" by Patterson-Hennessey
Yeah, the stuff I've put on here so far is kinda dry. Eventually I'll put up a link for a free C++ compiler and show you guys how to get started with it if you're curious. It's not exactly exciting either... but more immediately useful maybe.
Or maybe some day I'll do an intro to PHP... which is kinda spiffy. Dynamic web page stuff... this message board was written in PHP actually... JavaScript is also a possibility.
hey Miscue, thanx for changing some of the stuff but whats with changing my intergers? Now it looks like something one of the smart kids in my CS class wrote :-b .
Ahhhhh binary.... thats what hte first computers were... lots of switches... then came the vaccum tube.. AH! we can do more complex switching without having to flip 1000 switches! I can add millions of numbers together in five minutes (boy it gets hot in here)... then came the transistor. Ahah! we can flip the switches electronically insted or manually! I can add millions of numbers in fractions of a second. Then came the microchip.. AHAH! We can put hundreds of theres transistors in the sice of your thumbnail! We can do Millions and millions of calculations a second!
Next, I see 3D microchips. insted of being flat, they will be cube-shaped and have 6 internal sides of etched boards, tied toegether by hundreds of littel copper fibers running across the gaps. WEEEEEEEEEEEE.
OK that was my failed attepmt at computer history.
That's not the whole program though, just the installer. It grabs files off the net - this will be a sizeable download. Dial-up peoples: it's gonna take a LONG time.
After running setup, just leave the defaults and keep going to next until it gives you the "Select packages to install" screen. This is what you will need - don't miss anything: (click the thing that says skip until you get a check box, then check it)
Devel->gcc. (After you click this checkbox, also click the binutils checkbox that also becomes available)
Doc->man
Editors->nano
Utils->clear
gcc is the GNU Compiler Collection (no longer GNU C Compiler) that you can use to compile C, C++, Fortran, and some other stuff.
man is the program you use to display manual for commands and stuff.
nano is a text editor we can use for writing the programs. I personally kinda like EMacs, but it's not available for this unix emulator... among other things it seems. Oh well, it's still useful for learning purposes.
clear is a utility that clears the screen.
I'll briefly go over UNIX basics later... and then on to some actual C++ stuff.
Originally posted by LaW miscue- you have too much time on your hands...
Some people go out drinking... gambling... partying... I'd rather write code or something. Thus is my vice.
I don't spend more than 15-20 minutes on these posts, and it's usually when I need a break from what I'm doing - or I'm stuck at work and have absolutely nothing to do.
why do you use BSD Miscue? Are you on a server or something? Becase I really don't see what the point of any computer running BSD unless it's a server..
Comment