Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Today [10]

13 Dec 2012   #1731
x BlueRobot

 

I've began to relearn how to write in C++ again, been a very long time since I've had a go at programming, but here's my simple program so far (DOS-based):
Code:
#include <iostream>
using namespace std;

int main() {

	int number_one;
	int number_two;
	int answer;
	
	cout << "Here is simple sum of two numbers\n";
	cout << "Enter a number:";
	cin >> number_one;
	cin.ignore();
	cout << "Enter a second number:";
	cin >> number_two;
	cin.ignore();
	answer = number_one + number_two;
	cout << number_one << "+" << number_two << "=" << answer;
	
	cin.get();

	return 0;

}
My System SpecsSystem Spec
13 Dec 2012   #1732
Baroness von Shush

 

Well done....I think.
My System SpecsSystem Spec
13 Dec 2012   #1733
Carl Lawrence

Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
 
 

So am I.
My System SpecsSystem Spec
.

13 Dec 2012   #1734
x BlueRobot

 

Quote   Quote: Originally Posted by Baroness von Shush View Post
Well done....I think.
It gives the sum of whatever two numbers you enter, it's hardly a program to be honest
My System SpecsSystem Spec
13 Dec 2012   #1735
z3r010

 

Quote   Quote: Originally Posted by x BlueRobot View Post
Quote   Quote: Originally Posted by Baroness von Shush View Post
Well done....I think.
It gives the sum of whatever two numbers you enter, it's hardly a program to be honest
Cant you do something useful and write us an app to make a UEFI bootable usb install stick!!!
My System SpecsSystem Spec
13 Dec 2012   #1736
Carl Lawrence

Dual-boot: Windows 7 HP 32-bit SP1 & Windows XP Pro 32-bit SP2.
 
 

Quote   Quote: Originally Posted by x BlueRobot View Post
Quote   Quote: Originally Posted by Baroness von Shush View Post
Well done....I think.
It gives the sum of whatever two numbers you enter, it's hardly a program to be honest
Thanks, I now understand what this is.
My System SpecsSystem Spec
13 Dec 2012   #1737
Baroness von Shush

 

Quote   Quote: Originally Posted by x BlueRobot View Post
Quote   Quote: Originally Posted by Baroness von Shush View Post
Well done....I think.
It gives the sum of whatever two numbers you enter, it's hardly a program to be honest
Looks good though!
My System SpecsSystem Spec
13 Dec 2012   #1738
cytherian

Windows 7 Home Premium x64
 
 

I wish I had the patience to program again. Getting older, my perspective has changed. I can't stop looking at most programming languages as primitive constructs to craft computer code. At this point, we should be able to articulate pure business logic and requirements in very simple expressions (by voice or finger) that would then be modeled and generated by a computer. We wouldn't have to sweat out all of the idiosyncrasies of syntax and grammar of software infrastructure and rudimentary expressions but instead spend time on the real creativity of programming--coming up with abstract concepts and ideas that would be converted automatically by computer into functional programs.

[/rant]
Sorry... guess it had been a while since I'd gotten this off my chest.
My System SpecsSystem Spec
13 Dec 2012   #1739
tom982

Microsoft Community Contributor Award Recipient

Windows 8.1 Pro x64
 
 

Quote   Quote: Originally Posted by cytherian View Post
I wish I had the patience to program again. Getting older, my perspective has changed. I can't stop looking at most programming languages as primitive constructs to craft computer code. At this point, we should be able to articulate pure business logic and requirements in very simple expressions (by voice or finger) that would then be modeled and generated by a computer. We wouldn't have to sweat out all of the idiosyncrasies of syntax and grammar of software infrastructure and rudimentary expressions but instead spend time on the real creativity of programming--coming up with abstract concepts and ideas that would be converted automatically by computer into functional programs.

[/rant]
Sorry... guess it had been a while since I'd gotten this off my chest.
Love the [/rant] bbcode tag

I keep telling myself that I'm going to learn. I got to an average standard with VB and C#, but I stopped during revision for my A-levels and when I came to pick up where I left off, I had forgotten so much of it, it didn't seem worthwhile. I want to get to a very good standard of C#, then possibly look into starting C++. C++ syntax looks horrific compared to C# though!
My System SpecsSystem Spec
13 Dec 2012   #1740
A Guy

Microsoft Community Contributor Award Recipient

Windows 7 Home Premium x64 SP1
 
 

Quote   Quote: Originally Posted by z3r010 View Post
Angie needs another 4 likes on her facebook page so she can access all the page stats and stuff.

If you can could you please like http://www.facebook.com/HelpMeBake

Ta.
I enabled my dormant account to Like it I do like Help Me Bake

Quote   Quote: Originally Posted by z3r010 View Post
Remember folks there is also the Seven and Eight FB pages if you haven't liked them already.

http://www.facebook.com/sevenforums
http://www.facebook.com/eightforums
Liked both as well as long as I was at it

I don't know C+, but I was a C+ student in High School

A Guy
My System SpecsSystem Spec
Closed Thread

Thread Tools




Similar help and support threads
Thread Forum
Today [15]
Continued from - http://www.sevenforums.com/chillout-room/310225-today-14-2-a-196.html I got called in to work last night ... and will have to do tonight .. then my week starts the following night ... no rest :rolleyes:
Chillout Room
Today [14.2¾]
Today I finally managed to confirm my internship for the end of this year! I'll be spending half a year in Brussels speaking French and doing fancy stuff as a Junior Management Consultant in one of the biggest companies out there! Really stoked about it, especially since I'll be working closely...
Chillout Room
Need a Hug Today?
YouTube - Free Hugs in Sondrio, Italy It was amazing the number of people who walked by without getting a hug. "We all need hugs!"
Chillout Room
Who did you hug today?
list those who you hugged today Poppa Anna Tracy Hope Mimi Mary Kate Tommy
Chillout Room
Today [2]
Continued from - http://www.sevenforums.com/chillout-room/27696-today.html Today, I'm fixing to take a nap. :sleepy:
Chillout Room
Today
Today i worked out at my local ***nasium and later i made a new Sig for myself :)... what did you do today, please share ? Edit - Why is G Y M stared out ?
Chillout Room


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd

All times are GMT -5. The time now is 17:42.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App