• Coding
  • ILIA_93's Helping Center

:D Thank you very much rahmu, I don't want to be so annoying, but this is exactly what I'm looking for, I don't want to complete a working assignment, but learning about c++ language. So if anyone has some free time, next time I post a bump on my road, explain the real cause. I know that this is too much, but I donno, a simple idea every week, will surely make a difference by summer, and especially I'm looking to get a computer science master after I'm done with this.
But pointing out the mistake is more than enough, and thank you all for your help, and the biggest thank go to rahmu :) .

But it worked with only int H1, i forgot to put the "&" before the variable in scanf, but will use what you gave from now on, thanks again.
AymanFarhat wroteThat's a bit off topic but I am really tempted to give a small advice about this issue. Do what you really love and what you are really passionate about. Life is too short for living someone else's life. If you want to succeed in your life follow what you think is the right thing for you. Thanks.
:) , well it's nice to see some people still believe that life is all about happiness and success, some people were born with a good life, and others were not, so both sides should live with it. ( Don't ask me why, or tell me this is wrong :S )
@rahmu,

of all the explanations i have read on this subject, yours was the most clear and straightforward! +++++++++++++!!!
Thanks bash. It's not 100% accurate though. Try to keep in mind when is the variable expanded. Is it at compile time or at run time?
rahmu wroteThanks bash. It's not 100% accurate though. Try to keep in mind when is the variable expanded. Is it at compile time or at run time?
In every programming language, developers are told to initialize and declare and void but always forget to clarify as to why so. It isn't until you start managing the memory that you get the epiphany on the subject. The handling of the memory is what made programming languages such as java and interpreted scripts become more favored. C/c++ are of the most granular languages. But to sucked with such, you really need to know what you are doing.
The title rather sounds like you are running a helping center to help people , should be renamed to like "Help me center" or something :p
Nader.Sleiman wroteThe title rather sounds like you are running a helping center to help people , should be renamed to like "Help me center" or something :p
+1
LoL, thanks for the advice Nader. I'm helping people by letting them help me :p.
It's the moderators call anyways.

Back to topic, before I go any further in this, I'm using Visual Studio 2010 now, others are using borland ( something like that ), and the teacher told us to get ubuntus ( lamest operating system ever ). Should I proceed with VS10, or it's too much for my level?
ILIA_93 wrotethe teacher told us to get ubuntus ( lamest operating system ever ). ?
1- Your teacher is awesome for requesting this.
2- Change major.
ILIA_93 wroteLoL, thanks for the advice Nader. I'm helping people by letting them help me :p.
It's the moderators call anyways.

Back to topic, before I go any further in this, I'm using Visual Studio 2010 now, others are using borland ( something like that ), and the teacher told us to get ubuntus ( lamest operating system ever ). Should I proceed with VS10, or it's too much for my level?
Don't get a Ubuntu, stick to Windows.

Keep Visual Studio 2010, it's by far the best IDE you can ever work with. Get used to it, you'll fall in love with it just like the rest of us.
@ILIA_93:
First of all, I'm not going to change the title of the thread. It's a bit misleading but it's cute. Your post, your title.

Second of all. Give Ubuntu a try. Trust me. You are very lucky to have a teacher who's going to help you learn how to use it. Learning to use a linux OS and be comfortable with a command line is such an enlighting experience that it will make you a better programmer even if you end up never using it again.

Also, if it doesn't work out, and you can always go back to using Visual Studio. But keep this in mind: At one point or another in his career, every developer thinks "I want to try Linux/Ubuntu". Every programmer here on the forum did. Now you have a teacher to help you. Take advantage of it!

Also your teacher is a very wise man asking you to install it. I wish more teachers would do this (Not enough teachers in my school did anyway ... ). What uni do you go to?
get used to Ubuntu (or any other Linux) and compiling with gcc and using a command-line debugger such as gdb and a bit of Emacs. Just from a personal experience even if VS is awesome, simple to debug, one click to compile, .... , but there will be the time where you must use to other stuff. When I was at uni in Leb well for the simplicity we tended to use VS, Borland, ... and other IDE's because of their simplicity and no one obliged me to use linux; out of curiosity i wen beyond our usual simple linux command course but i didn't get lots of practice with all the command-line development things. When i moved to to my new University well all the PCs have Linux installed, no windows, all the C/C++ development was made using emacs, and compiled with gcc, ..... . And I had to be the fool for the first couple of hours as i finish my assignments but don't know how to write the makefile in order to compile or like i had this bug and had no idea how to debugg it, and i had to spend like a week reading tutorials and documentation and testing just to catch up.
So get used to it, even if you prefer the VS , it might be helpful someday and it might distinguish you from others (in your future job perhaps) .
Agreed with GN90.

If you're moving to Ubuntu, ask your teacher to help you with either emacs (strongly recommended) or Vim (a little more difficult in the beginning, but equally powerful).

You will soon realize how powerful these tools are.
Well you guys are the masters, I'll surely move to Ubuntu as soon as possible. But had anyone experienced problems in compatibility when using Ubuntu, like some windows frimware drivers and alikes wont work with Ubuntu, and what about overclocking?

I'm in LU-Hadath btw rahmu.
I've never had any compatibility problem with Ubuntu (tried it on multiple machines), but hey you could always dual-boot. That means having both Windows and Ubuntu on your computer at the same time. Each time you start your computer (you 'boot') you will get a menu asking you to chose what OS to boot on.

Like this you could boot on Ubuntu everytime you want to work on programming and Windows when working normally.

Another great solution is using Virtualbox. This way you can run Ubuntu as a simple application inside of Windows.

My own personal opinion
Get rid of Windows. At least for a while. Spend 2-3 months running Ubuntu alone. After that you will decide if Ubuntu is good for you or you should go back to Windows.
I'll try to use Ubuntu as much as I can, but I don't think I can run my games from it :S . You know what, I have no idea about Ubuntu's features, I'll try to get it before Friday, and then I'll decide.

P.S: He told us to boot Ubuntu from the flash memory drive ( He included a software that make the USB flash bootable, is it safe/good? :S Since you didn't mention it :( .
BTW, virtualbox is my favorite way to go.
Bootable USB are usually safe (if your teacher wanted to give you malicious software he could, but I highly doubt he'll do that). There's a high chance that what he gave you is called a "Live USB", which means that if you boot on the USB, you can try linux without even installing it on your computer. In other words, next time you boot without USB (directly on your hard drive), you will get into Windows like nothing happened.

Two disadvantages of "Live" sessions:

1- You cannot (easily) save files or save your settings (like your wallpaper or your username). It's all "live" and will exist only until next time you reboot.

2- It is VERY much slower than actually installing. Ubuntu is very fast natively, but you won't get that speed running it on live USB.

A "live" distribution of Ubuntu will allow you to launch the "Installer". It's a program that allows you ... to install Linux on your computer. (remember you don't have to get rid of Windows, you can separate your hard drive into 2 OS).

In short: There are plenty of ways to try/install Ubuntu. Since you're a gamer (your games probably won't run on Linux) and you want to keep Windows, I still recommend trying VirtualBox. It's so easy. Talk to your professor about it, he'll guide you if necessary.

PS: I never congratulated you on choosing engineering as a major. It's going to be tough 4-5 years now, but once you graduate you'll be very happy to have this diploma :)
http://www.ubuntu.com/download/ubuntu/windows-installer
It says that it runs Ubuntu alongside Windows, It don't mention if it's at the same time, or separately. But will go with it since it's official; I'll download it next month, since my quota is depleted this month, so I'll stick to VS2010 these couple of days.
rahmu wroteI never congratulated you on choosing engineering as a major. It's going to be tough 4-5 years now, but once you graduate you'll be very happy to have this diploma :)
The first thing I'll say to my son is:" STAY AWAY FROM THE ENGINEERING FACULTY ". Well, I would love to give hell a look to see which place is more painful. And this is after 1 month in this ..... "thing". :S

Thanks btw for your support, really means a lot. Thanks :) .
And ∞ thanks for helping me with this.