Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 03-19-2004, 11:09 AM   #1
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
where to start?

I'm looking to start learning to program. I have done a bit of php in my past and feel quite ok that if asked to could do most things. I'm looking to move into software programming now though. I had a look at cprogramming.com and their tutorial is ok, but c++ seems quite deep. What would you advise? Would I be best just getting stuck in with C++ and maybe get a book on it or is there anything easier that might be a nice lead in?
MSIuser is offline   Reply With Quote
Old 03-19-2004, 12:28 PM   #2
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Learning C++ is a great idea, a wide range of software is programmed in C++, operating systems, drivers, desktop applications, games...

I suggest you continue learning it, CProgramming.com tutorials are good for starting, if you find yourself comfortable with C++ after reading the tutorials, and need to continue learning, then you may consider buying a book.

Another option is Java, Java is very similar to C++ in concepts, but without some difficult to understand / use things like operator overloading, if you still find C++ difficult to learn after a while, you may give Java a try.

As I said, C++ and Java are very similar, learning one after master the other is just a matter of time.

Good luck.
aym is offline   Reply With Quote
Old 03-19-2004, 12:31 PM   #3
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
Thanks AYM, I just gave it another shot there at the tutorial, got a few console things going. Also found a few helpful things that are similar to the php versions, the if/else statements. One question, is there any way to make the file sizes a little smaller? When I compile a simple program to show a thing at the console it is about 400-500kb?!
MSIuser is offline   Reply With Quote
Old 03-19-2004, 12:38 PM   #4
Professional gadfly
 
doctorgonzo's Avatar
 
Join Date: Jan 2002
Location: Minneapolis, MN
Posts: 6,364
Send a message via MSN to doctorgonzo
Quote:
Originally posted by MSIuser
One question, is there any way to make the file sizes a little smaller? When I compile a simple program to show a thing at the console it is about 400-500kb?!
The size of the final compiled binary depends on a lot of things. Two reasons it is so huge could be because the compiler is set to generate debugging information, or because of the #includes you used.

I have taught myself Visual Basic, C++, and rudimentary Java. They all have their strong and weak points. Overall, though, C++ is a good place to start.
doctorgonzo is offline   Reply With Quote
Old 03-19-2004, 12:43 PM   #5
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
Quote:
Originally posted by MSIuser
Thanks AYM, I just gave it another shot there at the tutorial, got a few console things going. Also found a few helpful things that are similar to the php versions, the if/else statements. One question, is there any way to make the file sizes a little smaller? When I compile a simple program to show a thing at the console it is about 400-500kb?!
What compiler are you using? Most likely it's the debugging info as doctorgonzo said.
aym is offline   Reply With Quote
Old 03-19-2004, 05:38 PM   #6
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
I'm using Dev-C++??
MSIuser is offline   Reply With Quote
Old 03-19-2004, 06:25 PM   #7
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
I had a little nosey with the compiler and i have an option to enable debugging information, so im guessing it isnt on. the only include i have is should it be this big?
MSIuser is offline   Reply With Quote
Old 03-20-2004, 07:49 AM   #8
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
I've installed Dev-C++, create a hello world program, and got a 70KB exe, Why kind of project did you create? Console or what?
Are you linking any special libs?
If you can copy and paste the compile log here, so we can see compiler options.
aym is offline   Reply With Quote
Old 03-20-2004, 04:48 PM   #9
Member (10 bit)
 
Join Date: Nov 2001
Posts: 610
Send a message via Yahoo to MSIuser
It was a console project. Nothing special, only one include . Here's the log:

Compiler: Default compiler
Building Makefile: "D:\My Documents\C++ Programming\lesson 1\Makefile.win"
Executing make...
make.exe -f "D:\My Documents\C++ Programming\lesson 1\Makefile.win" all
g++.exe main.o -o "Project1.exe" -L"C:/Dev-Cpp/lib"

Execution terminated
Compilation successful



Just as a test, I enabled debugging information and it now became 1.21mb. Could it be the include?

Last edited by MSIuser; 03-20-2004 at 04:58 PM.
MSIuser is offline   Reply With Quote
Old 03-22-2004, 08:31 AM   #10
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
couldn't find anything wrong with your log.

What include are you using?

I suggest you uninstall Dev-C++ and install it again, also try to delete old registry entries, and then create a console application, that's all I can think of right now.
aym is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:50 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2