Archived

This topic is now archived and is closed to further replies.

2 Questions one on code, and another on Unix

This topic is 5889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

First off, i was wondering if someone out there could give me a good site that helps with Unix. I just got into it, and i want to learn some commands and how to use it. Now the other thing is, i wrote a small program just to practice HTML. And it wont multiply where it is supposed to multiply, i was wondering if you could tell me why, it is in C++ and compiled in DevC++(note: This post was not spell checked) Here is the source code; //Monster Fighter is a basic battle program to //Practice C++ #include int userLvl; int monsterLvl; int f = 0; int main() { //white space, specification term to center text here cout << "Welcome to Monster Fighter V 1.0 created by: Adam Osterkamp.\n"; cout << "Please enter your Power Level 1,000 - 10,000: "; cin >> userLvl; cout << "Please choose a Monster Level between 1-5: "; cin >> monsterLvl; if (monsterLvl < 1 || monsterLvl > 5) { cout << "You cant do that! Restart the Program Fool!"; cin.ignore(256,''\n''); cout<<"press enter to continue..."< userLvl) { cout << "HA! Your weak, get stronger and try again!"; cin.ignore(256,''\n''); cout<<"press enter to continue..."<

Share this post


Link to post
Share on other sites
man pages are your friend. Linux, for example, can be issued the command: man -k opengl sdl and it will list available docs on openGL and SDL functions. Similar functions can be used across all *nix platforms. You should have everything you need right there on your box to become quiet the guru.

Google is your friend too. I really suggest you explorer my previous point before you result to the net. I''m not sure if you are running a true "Unix" in the classic sense or a flavor of. Probably the latter since the former can be expensive.
www.google.com/bsd
www.google.com/linux
Either one of those will return only links related to those OS''s.

YAP-YFIO

-deadlinegrunt

Share this post


Link to post
Share on other sites
Well im not ''running'' the Unix right now, but im going to be and i wanted to learn some stuff first. I LOVE linux, but my linux box is down right now, seeing as i dont have a mother board or CPU, so im on my laptop, stuck with Windows, because im too lazy to change this stuff. But thank you all very much!!

Mess with the best,
Die like the rest!!

Share this post


Link to post
Share on other sites