Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Where to Go from Youtube Tutorial Series of C++
New Posts  All Forums:Forum Nav:

Where to Go from Youtube Tutorial Series of C++ - Page 2

post #11 of 15
I disagree that coding is the same among all languages. Languages were designed with certain philosophies and paradigms in mind, and also were designed for specific tasks. This can go more in depth, but just to prove your point incorrect look at C++ and Haskell. Imperative language versus a functional one. The latter requires a completely different way of thinking in order to solve the same problem.

Also, I agree that having a mentor can help a lot. I'm free if you want to send me a PM or just talk on Skype or something. Whenever I'm home, I'm usually on the computer anyways so I can answer any questions you have. I'm still waiting on giving you an exercise to do smile.gif
post #12 of 15
Thread Starter 
Quote:
Originally Posted by haxifix View Post

I have watched that entire series on YouTube. I've even registered on his forums and helped in their programming section as well smile.gif However, my point still stands. You say that the extent of your knowledge is input and output to the screen but up until that video he has covered if statements, for loops, while loops, pretty much all the control structures if I remember correctly and as I stated before the video is talking about friend classes which require a basic understanding of classes to begin with. So, either you haven't learned anything from the videos, in which case I would recommend going back and re watching them all and trying to deeper understand them, or you didn't understand what I meant by extent of knowledge?

EDIT: I don't want you to take that the wrong way. I want to help, its just in order to come up with an exercise for you to do I need to know what you have learned and are comfortable with and input and output to the console is pretty much the absolute basics of C++.

I know the way you mean it coding will be hard to learn by myself. I know loops (while and for) ,classes, and all the things before that video I sent you. I learned the other stuff and understand it, but for now I just think it is useless (Yes I know all of this will come together and I will know how to use for example a deconstructor). I also just don't explain myself. I do know everything up to there.

The Dominator
(18 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i5 3570k SABERTOOTH Z77 Intel(R) HD Graphics 4000 AMD Radeon HD 7800 Series 
RAMHard DriveHard DriveOptical Drive
G.Skill Sniper 4gb  Crucial M4 128GB Western Digital Velociraptor 500GB Hp dvd1260 
CoolingOSMonitorMonitor
Stock Intel Cooler(Plan to change soon) Windows 7 64-bit Acer S232HL 23" 1080p Dell E172FP 
KeyboardPowerCaseMouse
Razer Black Widow Ultimate Fsp Arum Series 700w Cooler Master Haf XM Razer Spectre 
Mouse PadAudio
RocketFish Dual Sided Mouse Pad (spped or contr... Razer Kraken Pro 
  hide details  
Reply
The Dominator
(18 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i5 3570k SABERTOOTH Z77 Intel(R) HD Graphics 4000 AMD Radeon HD 7800 Series 
RAMHard DriveHard DriveOptical Drive
G.Skill Sniper 4gb  Crucial M4 128GB Western Digital Velociraptor 500GB Hp dvd1260 
CoolingOSMonitorMonitor
Stock Intel Cooler(Plan to change soon) Windows 7 64-bit Acer S232HL 23" 1080p Dell E172FP 
KeyboardPowerCaseMouse
Razer Black Widow Ultimate Fsp Arum Series 700w Cooler Master Haf XM Razer Spectre 
Mouse PadAudio
RocketFish Dual Sided Mouse Pad (spped or contr... Razer Kraken Pro 
  hide details  
Reply
post #13 of 15
Okay, well can you write me a program that simulates a Bank? Here is a simple print out of the output:
Code:
Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1 <- this is the user inputting

What is your name: Kevin
What is your starting balance: 100.25
What is your ID: 1
What is your PIN: 1234
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Eric
What is your starting balance: 20.00
What is your ID: 2
What is your PIN: 4321
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Dennis
What is your starting balance: 20.00
What is your ID: 2
What is your PIN: 5555
Error: ID is already taken.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Dennis
What is your starting balance: 200.00
What is your ID: 3
What is your PIN: 5555
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 4

Name        Id        Balance
--------         --        -----------
Kevin          1        $100.25
Eric             2        $20.00
Dennis       3        $200.00

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 3
Please enter your PIN: 5554
Error: Wrong PIN.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 5
Error: That ID doesn't exist.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 3
Please enter your PIN: 5555
Correct, account has been deleted!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 3

What is the ID of the account you would like to log into? 1
Please enter your PIN: 1234
Success.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 1

How much would you like to deposit? 10.00
Success.  Your current balance is now $110.25.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 2

How much would you like to withdraw? 50.00
Success.  Your current balance is now $60.25.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 4

Your current balance is $160.00.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  3

What would you want your new PIN to be? 1234
Error: That is already your PIN.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  3

What would you want your new PIN to be? 1235
Success, new pin set.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  5

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 4

Name        Id        Balance
--------         --        -----------
Kevin          1        $60.25
Eric             2        $20.00

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 5
Good bye.

Just wrote that up off the top of my head so if there are any logic errors let me know, but do you think you could implement this?
post #14 of 15
Thread Starter 
Quote:
Originally Posted by haxifix View Post

Okay, well can you write me a program that simulates a Bank? Here is a simple print out of the output:
Code:
Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1 <- this is the user inputting

What is your name: Kevin
What is your starting balance: 100.25
What is your ID: 1
What is your PIN: 1234
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Eric
What is your starting balance: 20.00
What is your ID: 2
What is your PIN: 4321
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Dennis
What is your starting balance: 20.00
What is your ID: 2
What is your PIN: 5555
Error: ID is already taken.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 1

What is your name: Dennis
What is your starting balance: 200.00
What is your ID: 3
What is your PIN: 5555
Account created successfully!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 4

Name        Id        Balance
--------         --        -----------
Kevin          1        $100.25
Eric             2        $20.00
Dennis       3        $200.00

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 3
Please enter your PIN: 5554
Error: Wrong PIN.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 5
Error: That ID doesn't exist.

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 2

What is the ID of the account you would like to delete? 3
Please enter your PIN: 5555
Correct, account has been deleted!

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 3

What is the ID of the account you would like to log into? 1
Please enter your PIN: 1234
Success.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 1

How much would you like to deposit? 10.00
Success.  Your current balance is now $110.25.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 2

How much would you like to withdraw? 50.00
Success.  Your current balance is now $60.25.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do? 4

Your current balance is $160.00.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  3

What would you want your new PIN to be? 1234
Error: That is already your PIN.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  3

What would you want your new PIN to be? 1235
Success, new pin set.

Welcome, Kevin
1: Deposit
2: Withdraw
3: Change PIN
4: View balance
5: Leave account
What would you like to do?  5

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 4

Name        Id        Balance
--------         --        -----------
Kevin          1        $60.25
Eric             2        $20.00

Welcome to Bank++!
We have many options to choose from...
1: Start an account
2: Delete an account
3: Log into an account
4: Display all accounts
5: Exit
What would you like to choose? 5
Good bye.

Just wrote that up off the top of my head so if there are any logic errors let me know, but do you think you could implement this?


Do I just create a bunch of varyables to store all of this?

The Dominator
(18 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i5 3570k SABERTOOTH Z77 Intel(R) HD Graphics 4000 AMD Radeon HD 7800 Series 
RAMHard DriveHard DriveOptical Drive
G.Skill Sniper 4gb  Crucial M4 128GB Western Digital Velociraptor 500GB Hp dvd1260 
CoolingOSMonitorMonitor
Stock Intel Cooler(Plan to change soon) Windows 7 64-bit Acer S232HL 23" 1080p Dell E172FP 
KeyboardPowerCaseMouse
Razer Black Widow Ultimate Fsp Arum Series 700w Cooler Master Haf XM Razer Spectre 
Mouse PadAudio
RocketFish Dual Sided Mouse Pad (spped or contr... Razer Kraken Pro 
  hide details  
Reply
The Dominator
(18 items)
 
  
CPUMotherboardGraphicsGraphics
Intel Core i5 3570k SABERTOOTH Z77 Intel(R) HD Graphics 4000 AMD Radeon HD 7800 Series 
RAMHard DriveHard DriveOptical Drive
G.Skill Sniper 4gb  Crucial M4 128GB Western Digital Velociraptor 500GB Hp dvd1260 
CoolingOSMonitorMonitor
Stock Intel Cooler(Plan to change soon) Windows 7 64-bit Acer S232HL 23" 1080p Dell E172FP 
KeyboardPowerCaseMouse
Razer Black Widow Ultimate Fsp Arum Series 700w Cooler Master Haf XM Razer Spectre 
Mouse PadAudio
RocketFish Dual Sided Mouse Pad (spped or contr... Razer Kraken Pro 
  hide details  
Reply
post #15 of 15
Implement it however you want as long as it works, then once you have a working version, I will look over it with you and show you where you could have done things differently, more efficiently, etc...

Hint: I would recommend splitting it up into multiple classes, that will make it much easier to handle.
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Coding and Programming
Overclock.net › Forums › Software, Programming and Coding › Coding and Programming › Where to Go from Youtube Tutorial Series of C++