You are viewing our Forum Archives. To view or take place in current topics click here.
First build on my own very simple
Posted:

First build on my own very simplePosted:

dj
  • Administrator
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
Motto: space
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
So guys though I'd like to share my first program so far really enjoying comp sci I. Majoring in Computer Engineering but might switch to Comp Sci or networking since coding has captured my attention more so than my other major classes. Well here's my first program I believe it runs successfully and yes call me a n00b all you like. Just wanted to get some thoughts about if switching would be smart idea for me since I'm starting to enjoy more of the software side of my major instead of the hardware.



[ Register or Signin to view external links. ]

The following 4 users thanked dj for this useful post:

Streamah (06-12-2016), Sky (09-08-2015), Skittle (09-08-2015), Fold (09-08-2015)
#2. Posted:
Skittle
  • TTG Commander
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
Status: Offline
Joined: Aug 20, 201410Year Member
Posts: 6,813
Reputation Power: 413
If you enjoy programming, then I would say go for it! You have to make sure you do whatever you enjoy, studying a subject or area you don't personally like will only make it worse later down the line.
#3. Posted:
-Deano
  • PC Master Race
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Nice to see you getting into C++!

You'll love it even more once you get into things like iteration, recursion, arrays, switch() statements, etc.

One of the biggest things for you to change will be from using the "printf()" statement to "cout << **".

cout/cin makes variable handling and outputting sooooooooooo much easier. Printf() takes way too much time.
#4. Posted:
Woodzy-
  • V5 Launch
Status: Offline
Joined: Jul 22, 20159Year Member
Posts: 1,018
Reputation Power: 92
Status: Offline
Joined: Jul 22, 20159Year Member
Posts: 1,018
Reputation Power: 92
best job you could get into to be honest in this day and age, get your head stuck in and learn it my friend in real life is 19 hes had 4 full time with full payed jobs already. I myself have drifted towards the graphics side of things.
#5. Posted:
dj
  • Administrator
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
Motto: space
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
-Deano wrote Nice to see you getting into C++!

You'll love it even more once you get into things like iteration, recursion, arrays, switch() statements, etc.

One of the biggest things for you to change will be from using the "printf()" statement to "cout << **".

cout/cin makes variable handling and outputting sooooooooooo much easier. Printf() takes way too much time.


Yeah kinda pumped to learn more about comp sci very interesting and it may become a hobby of mine since its the only class I enjoy reading up on books.
#6. Posted:
ObscureCoder
  • Resident Elite
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
-Deano wrote Nice to see you getting into C++!

You'll love it even more once you get into things like iteration, recursion, arrays, switch() statements, etc.

One of the biggest things for you to change will be from using the "printf()" statement to "cout << **".

cout/cin makes variable handling and outputting sooooooooooo much easier. Printf() takes way too much time.


Am I missing something? The code in OPs image is C, not C++. Also, printf() is far from difficult and doesn't take time at all. Also, using a namespace is generally discouraged so pls: "std::cout <<". Also, the biggest change for OP, if he is switching from C (which I doubt based on OP image) to C++ would be a proper object model rather than polymorphism and all of the great std libs that C++11 has (C++14 too, soon..).
#7. Posted:
ObscureCoder
  • Resident Elite
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
JProdigy wrote
-Deano wrote Nice to see you getting into C++!

You'll love it even more once you get into things like iteration, recursion, arrays, switch() statements, etc.

One of the biggest things for you to change will be from using the "printf()" statement to "cout << **".

cout/cin makes variable handling and outputting sooooooooooo much easier. Printf() takes way too much time.


Yeah kinda pumped to learn more about comp sci very interesting and it may become a hobby of mine since its the only class I enjoy reading up on books.


Is the place your taking compsci at using C/C++? If not, you would probably enjoy learning programming in a language such as Java or C#. Not necessary, people just consider C/C++ to have a higher learning curve so it's off-putting for most beginners when they start actually utilizing more language features/constructs.
#8. Posted:
dj
  • Administrator
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
Motto: space
Status: Offline
Joined: Aug 06, 201113Year Member
Posts: 3,081
Reputation Power: 23701
Motto: space
Yes using C/C++. I plan on taking another course that will teach me C sharp and java overtime prob electives. Only reason I had the chance to start C and C++ is due to my major otherwise only can take the other two as I stated above.
#9. Posted:
ObscureCoder
  • Resident Elite
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
Status: Offline
Joined: Jun 29, 201311Year Member
Posts: 211
Reputation Power: 13
JProdigy wrote Yes using C/C++. I plan on taking another course that will teach me C sharp and java overtime prob electives. Only reason I had the chance to start C and C++ is due to my major otherwise only can take the other two as I stated above.


Well, once you've learned the language constructs of C++ (and want to be a programmer, if you want to), I recommend immersing yourself fully into OOP and learning how to implement SOLID principles. Most useful thing you can learn since it's a skill you can transfer to any language that supports the object model. It's also probably the most used paradigm.
#10. Posted:
-Deano
  • Rated Awesome
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
Status: Offline
Joined: Aug 19, 201014Year Member
Posts: 5,243
Reputation Power: 532
ObscureCoder wrote
-Deano wrote Nice to see you getting into C++!

You'll love it even more once you get into things like iteration, recursion, arrays, switch() statements, etc.

One of the biggest things for you to change will be from using the "printf()" statement to "cout << **".

cout/cin makes variable handling and outputting sooooooooooo much easier. Printf() takes way too much time.


Am I missing something? The code in OPs image is C, not C++. Also, printf() is far from difficult and doesn't take time at all. Also, using a namespace is generally discouraged so pls: "std::cout <<". Also, the biggest change for OP, if he is switching from C (which I doubt based on OP image) to C++ would be a proper object model rather than polymorphism and all of the great std libs that C++11 has (C++14 too, soon..).


Well I had assumed he would be moving towards C++, I know that his code is just C on its own... He mentioned he was studying com.sci which generally (based on courses in the universities I had looked into) goes into C++ rather than C#/Java orientated.
I didn't think to need to mention namespaces considering OP barely knows what he is doing. Pointing out things like that and going into more detail to op is pointless when he doesn't know the fundamentals.
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.