Discuss Is This a good start ?? :)

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

MR.PUREPWNAGE

Newbie
Full Member
Jul 21, 2013
14
212
0
Hi guys i just made my first Program :D
THANKS TO CrazywinkVids AND HIS TUTS :DDD THX AGAIN BRO !!

C++:
#include <iostream>
#include <Windows.h>
#include <string>

using namespace std;

int main() 
{
   string name;
   cout << "Welcome to MR.PUREPWANAGE'S Store , noble one" << endl;
   Sleep (2000);
   cout << "what is your name, Kiddo ?" << endl;
   cin >> name;
   cout << "lets have a look at are goods then " << name << ".\n";
   Sleep(1500);

   float gold = 100;
   int silver = 6;

   float SilverToGold = 3.4;
   float Swordcost = 2.2;
   int swords;

   cout << "Well you now have " << gold << " gold and " << silver << " silver.\n";
   Sleep(2000);
   cout << "that means you have ";
   gold += silver /SilverToGold;
   cout << gold << "gold.\n";
   Sleep(2000);

   cout << "How many sword would you like to purchase? they are 3.8g each.\n";
   cin >> swords;
   gold = gold - swords * Swordcost;
   cout << endl << "You have " << gold << " gold left.";

  silver = (gold - (int)gold) * SilverToGold;
  
  gold = (int)(gold);
  Sleep(2000);
  cout << "That equals " << gold << " gold and " << silver << " silver " << endl;
  cout << "Thanks For shopping!\n";
  cout << "Good luck on your adventures, " << name << ".";

  Sleep(10000000000);
}
THX GUYS !!! THIS FORUM HELPS ME ALOT ! :D :D :D :D:D
 
Last edited by a moderator:

WiTH

Jr.Coder
Full Member
Nobleman
May 24, 2012
58
458
1
good job! you should also pick an ebook and read it, will you help a lot :)
 

somethingsomethingdarksid

Newbie
Full Member
Apr 25, 2013
17
209
2
Despite the 'suggestions' of reading 'an ebook' or a wiki page (which as far as i'd guess is programming language agnostic) I think your best bet, if you're intending to learn c++ is to get a book and walk through it.
I don't understand why people often suggest building an fractured knowledge of a language and missing out on the fundamentals of programming in general.

The program is cool for your first one. There are a number of areas that you should address though - functions for one.


I highly recommend:
Windows Programming - Charles Petzold
Accelerated C++ (by 'the creator')

and if you 'really' can't find it in you to invest in your own education and future:


https://www.winprog.org/tutorial/
is a good place to start.

Picking up random snippets of code from places, or even random little tutorials is not the way to begin learning a programming language.
If you do require any more advice, feel free to message me.


(not wanting to sound harsh but pick an ebook and read it' isn't really helpful at all.)
 

till0sch

Respected Hacker
Dank Tier VIP
Dank Tier Donator
Oct 14, 2012
1,104
12,593
51
Picking up random snippets of code from places, or even random little tutorials is not the way to begin learning a programming language.
I did it that way. Maybe my C++ isn't the best but it's enough to create hacks. And when I need other functions or want to solve problems I google.

Personally I don't like reading programming books since they're boring and not on what I want (hacking).
 

WiTH

Jr.Coder
Full Member
Nobleman
May 24, 2012
58
458
1
Despite the 'suggestions' of reading 'an ebook' or a wiki page (which as far as i'd guess is programming language agnostic) I think your best bet, if you're intending to learn c++ is to get a book and walk through it.
I don't understand why people often suggest building an fractured knowledge of a language and missing out on the fundamentals of programming in general.

The program is cool for your first one. There are a number of areas that you should address though - functions for one.


I highly recommend:
Windows Programming - Charles Petzold
Accelerated C++ (by 'the creator')

and if you 'really' can't find it in you to invest in your own education and future:


https://www.winprog.org/tutorial/
is a good place to start.

Picking up random snippets of code from places, or even random little tutorials is not the way to begin learning a programming language.
If you do require any more advice, feel free to message me.


(not wanting to sound harsh but pick an ebook and read it' isn't really helpful at all.)
You recommend 2 books and say that reading an ebook isn't helpful. LEGIT BRO!
 

somethingsomethingdarksid

Newbie
Full Member
Apr 25, 2013
17
209
2
@till

You're right that programming books are pretty dry reading. I wasn't saying that you 'can't' learn some hacky google-paste things that will work - or even pick up programming that way. My point, really, is just that it's not the correct way to learn programming. If you want to write one program in your life that reads and edits a variable in memory then, sure use some google and paste. If you want to really learn coding then you should probably endeavour to learn the correct way.

WiTH

Firstly, ebooks are generally not quite uo to the same standard as published text books on windows/programming/c++.

I also wrote that: "good job! you should also pick an ebook and read it, will you help a lot" is not helpful. It's generic, provides no suggestion or information; It is vague and unhelpful. Perhaps specifying a particular ebook that you find interesting/helpful is more the way to go.

Reading an ebook textually analysing the socio-economic influences of "The Importance of being Earnest" isn't going to help. I trust that you see (read: understand) my point.
 

WiTH

Jr.Coder
Full Member
Nobleman
May 24, 2012
58
458
1
@till

You're right that programming books are pretty dry reading. I wasn't saying that you 'can't' learn some hacky google-paste things that will work - or even pick up programming that way. My point, really, is just that it's not the correct way to learn programming. If you want to write one program in your life that reads and edits a variable in memory then, sure use some google and paste. If you want to really learn coding then you should probably endeavour to learn the correct way.

WiTH

Firstly, ebooks are generally not quite uo to the same standard as published text books on windows/programming/c++.

I also wrote that: "good job! you should also pick an ebook and read it, will you help a lot" is not helpful. It's generic, provides no suggestion or information; It is vague and unhelpful. Perhaps specifying a particular ebook that you find interesting/helpful is more the way to go.

Reading an ebook textually analysing the socio-economic influences of "The Importance of being Earnest" isn't going to help. I trust that you see (read: understand) my point.
I don't want to argue much about this, so this thread is dead for me. Some beginners don't know if they should read a book or watch youtube videos or learn by googling what they need... Usually they even stop programming after some weeks of learning, so there isn't much difference from ebook to book, except the price. I was also trying to motivate him with the "good job". Idk why you are trying to show off.
 

Fleep

Founder
Meme Tier VIP
May 20, 2012
572
11,023
6
Well done Mr Pure, Crazy has some good tutorials for sure. :)

Quick side note to anyone planning to take this thread off topic, comments will be deleted and warnings may be given.

Lets keep comments Relevant guys.

Fleep
 

maestro

Newbie
Dank Tier Donator
Jul 5, 2013
19
182
0
Good Job MR.PUREPWNAGE, I would suggest to google about if/then/else, because you will have the way to check if you have enough gold to buy what you want.

Also (it's a very personal tough btw), I think javascript,php even java are much easier to learn programming than c/c++. I started with eBooks about Logic then little of pascal then php.
 

x86asm

Jr.Coder
Full Member
Nobleman
Jan 3, 2013
53
438
0
Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods