RIP School Survival Forums
August 2001 - June 2017

The School Survival Forums are permanently retired. If you need help with quitting school, unsupportive parents or anything else, there is a list of resources on the Help Page.

If you want to write about your experiences in school, you can write on our blog.

To everyone who joined these forums at some point, and got discouraged by the negativity and left after a while (or even got literally scared off): I'm sorry.

I wasn't good enough at encouraging people to be kinder, and removing people who refuse to be kind. Encouraging people is hard, and removing people creates conflict, and I hate conflict... so that's why I wasn't better at it.

I was a very, very sensitive teen. The atmosphere of this forum as it is now, if it had existed in 1996, would probably have upset me far more than it would have helped.

I can handle quite a lot of negativity and even abuse now, but that isn't the point. I want to help people. I want to help the people who need it the most, and I want to help people like the 1996 version of me.

I'm still figuring out the best way to do that, but as it is now, these forums are doing more harm than good, and I can't keep running them.

Thank you to the few people who have tried to understand my point of view so far. I really, really appreciate you guys. You are beautiful people.

Everyone else: If after everything I've said so far, you still don't understand my motivations, I think it's unlikely that you will. We're just too different. Maybe someday in the future it might make sense, but until then, there's no point in arguing about it. I don't have the time or the energy for arguing anymore. I will focus my time and energy on people who support me, and those who need help.

-SoulRiser

The forums are mostly read-only and are in a maintenance/testing phase, before being permanently archived. Please use this time to get the contact details of people you'd like to keep in touch with. My contact details are here.

Please do not make a mirror copy of the forums in their current state - things will still change, and some people have requested to be able to edit or delete some of their personal info.


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone wanna learn c++ with me?
Author Message
Desu Offline
Fanatic

Posts: 2,109
Joined: May 2009
Thanks: 165
Given 340 thank(s) in 182 post(s)
Post: #1
Anyone wanna learn c++ with me?

I started learning c++. I'm hoping I'll get the programmer position for the air force (I probably will). Even if I don't, I would like to study computer science while I'm in.

So I'm fucking serious about this. Figured I'd get started now. I'll probably leave for basic training in about 1.5 - 2 months, so I'll be around until then.

I have some basic understanding of programming (html, css, javascript, c#), but I've never made anything useful. Maybe I can make something before I leave, even if it sucks.

If you're interested and you have no programming experience, it's gonna be tough, but totally doable if you're willing to experience a little pain. Everyone seems to say it's a bad idea to start with C++... but meh.

The book I'm using below is for total beginners (sort of). Speaking as a beginner myself, the real road block in the beginning seems to be getting the big picture of programming itself. Once you understand... what it is you are doing exactly, it makes more sense.

Computer Science for Everyone helped me understand exactly what the hell programming is. Once you understand that, and understand the basic logic that modern programming languages share, the lightbulb clicks and it actually feels like it's possible to learn this stuff.

^ Highly recommended you watch those videos if you don't know anything about programming.

Stuff I'm using:

(Stanford) Programming Abstractions course, uses C++, assumes you have basic programming experience. I watch these to get more information about C++ in general along with my reading.

Code Blocks IDE

I'm using Programming Principles & Practice Using C++ by Bjarne Stroustrup. Mods will get mad if I link torrents, so if you want the book, go to kickass.to, search the book title, and download the 33 mb .epub file. It's legit.

powerpoint slides that go w/ the book

The book contains review questions and exercises. There are a few solutions on his site, but not a lot. In any case, I'll work through every problem and post the code. For any particularly hard problems, I'll consult stackoverflow.

RIP GORE GOROTH

He was an hero. He will always be remembered.
(This post was last modified: 07-13-2014 04:30 PM by Desu.)
07-13-2014 04:14 PM
Find all posts by this user Quote this message in a reply
Ky Offline
Shadow

Posts: 5,201
Joined: Aug 2012
Thanks: 1795
Given 1468 thank(s) in 972 post(s)
Post: #2
Anyone wanna learn c++ with me?

Hmm. You know, this might be something I want to learn. I have a rudimentary knowledge of HTML, and have coding experience with Java.

Public Service Announcement: First world problems are still problems.
07-13-2014 04:34 PM
Find all posts by this user Quote this message in a reply
MrAnonymous Offline
Armed with a Keyboard

Posts: 161
Joined: May 2014
Thanks: 75
Given 70 thank(s) in 42 post(s)
Post: #3
RE: Anyone wanna learn c++ with me?

Maybe I could learn C++ with you.

Sadly, I might choose C over C++, so we'll see.

"If you wanna know how not secure you are, just take a look around. Nothing's secure. Nothing's safe. I don't hate technology, I don't hate hackers, because that's just what comes with it, without those hackers we wouldn't solve the problems we need to solve, especially security."

-Fred Durnst

[Image: vipersig.jpg]

███▓▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓▓▓╬╬╬╬╬╬▓█
███▓███████▓▓╬╬╬╬╬╬╬╬╬╬╬╬▓███▓▓▓▓█▓╬╬╬▓█
███████▓█████▓▓╬╬╬╬╬╬╬╬▓███▓╬╬╬╬╬╬╬▓╬╬▓█
████▓▓▓▓╬╬▓█████╬╬╬╬╬╬███▓╬╬╬╬╬╬╬╬╬╬╬╬╬█
███▓▓▓▓╬╬╬╬╬╬▓██╬╬╬╬╬╬▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
████▓▓▓╬╬╬╬╬╬╬▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
███▓█▓███████▓▓███▓╬╬╬╬╬╬▓███████▓╬╬╬╬▓█
████████████████▓█▓╬╬╬╬╬▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬█
███▓▓▓▓▓▓▓╬╬▓▓▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
████▓▓▓╬╬╬╬▓▓▓▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
███▓█▓▓▓▓▓▓▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
█████▓▓▓▓▓▓▓▓█▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█
█████▓▓▓▓▓▓▓██▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
█████▓▓▓▓▓████▓▓▓█▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
████▓█▓▓▓▓██▓▓▓▓██╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬██
████▓▓███▓▓▓▓▓▓▓██▓╬╬╬╬╬╬╬╬╬╬╬╬█▓╬▓╬╬▓██
█████▓███▓▓▓▓▓▓▓▓████▓▓╬╬╬╬╬╬╬█▓╬╬╬╬╬▓██
█████▓▓█▓███▓▓▓████╬▓█▓▓╬╬╬▓▓█▓╬╬╬╬╬╬███
██████▓██▓███████▓╬╬╬▓▓╬▓▓██▓╬╬╬╬╬╬╬▓███
███████▓██▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬████
███████▓▓██▓▓▓▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓████
████████▓▓▓█████▓▓╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬╬▓█████
█████████▓▓▓█▓▓▓▓▓███▓╬╬╬╬╬╬╬╬╬╬╬▓██████
██████████▓▓▓█▓▓▓╬▓██╬╬╬╬╬╬╬╬╬╬╬▓███████
███████████▓▓█▓▓▓▓███▓╬╬╬╬╬╬╬╬╬▓████████
██████████████▓▓▓███▓▓╬╬╬╬╬╬╬╬██████████
███████████████▓▓▓██▓▓╬╬╬╬╬╬▓███████████
07-14-2014 01:13 AM
Find all posts by this user Quote this message in a reply
Desu Offline
Fanatic

Posts: 2,109
Joined: May 2009
Thanks: 165
Given 340 thank(s) in 182 post(s)
Post: #4
RE: Anyone wanna learn c++ with me?

(07-14-2014 01:13 AM)MrAnonymous Wrote:  Maybe I could learn C++ with you.

Sadly, I might choose C over C++, so we'll see.

The computer science for everyone site uses C. Razz

RIP GORE GOROTH

He was an hero. He will always be remembered.
07-14-2014 02:09 AM
Find all posts by this user Quote this message in a reply
magikarp Offline
Valerie Solanas

Posts: 1,146
Joined: Jan 2007
Thanks: 4
Given 68 thank(s) in 47 post(s)
Post: #5
RE: Anyone wanna learn c++ with me?

Might do it as review, I 'know' c++ but I basically have none recent programming experience except minor changes and maintenance to stuff.

"Do we treat straight public sex differently than we do gay public sex? Of course. Straight people are so proud of their public sex that they named a cocktail after it."
07-14-2014 06:55 AM
Find all posts by this user Quote this message in a reply
Absnt Offline
Fanatic

Posts: 6,075
Joined: Dec 2009
Thanks: 13
Given 184 thank(s) in 127 post(s)
Post: #6
RE: Anyone wanna learn c++ with me?

If you know C++ you know a good deal of C anyway, most c++ compilers compile most C anyway, and vice versa... The basics of C and C++ for trivial non oop stuff will be pretty similar. C++ involves classes and inheritence etc though which if you get to that point is a huge difference.

Blog I post to now:
http://blog.darknedgy.net

Edfreedom.org -- An organization for more freedom in education.
http://www.edfreedom.org/join-us/
07-14-2014 10:54 AM
Visit this user's website Find all posts by this user Quote this message in a reply
 Thanks given by: Desu
Desu Offline
Fanatic

Posts: 2,109
Joined: May 2009
Thanks: 165
Given 340 thank(s) in 182 post(s)
Post: #7
RE: Anyone wanna learn c++ with me?

(07-14-2014 01:13 AM)MrAnonymous Wrote:  Maybe I could learn C++ with you.

Sadly, I might choose C over C++, so we'll see.

https://class.coursera.org/hwswinterface-002/

Relevant to your interests.

RIP GORE GOROTH

He was an hero. He will always be remembered.
07-14-2014 01:46 PM
Find all posts by this user Quote this message in a reply
Desu Offline
Fanatic

Posts: 2,109
Joined: May 2009
Thanks: 165
Given 340 thank(s) in 182 post(s)
Post: #8
Anyone wanna learn c++ with me?

Here's some of the chapter 3 solutions. I omitted some because they were either straightforward or extremely tedious/unnecessary. I hate exercises where you have to write 10 if statements or some shit. Fuck that.

Hidden stuff:

Code:
// problem #2
#include "std_lib_facilities.h"

// declare function to convert miles -> km
double getKilometers (double miles){
    double kilometers = miles*1.6;
    return kilometers;
}

int main(){

double miles;

cout << "Please enter a distance in miles: ";
cin >> miles;
cout << "That is equivalent to " << getKilometers(miles) << " kilometers.";

return 0;
}






// problem #4
#include "std_lib_facilities.h"

//declare function to operate on 2 integers prompted to user
int twoValues(int val1, int val2){
    if (val1 > val2)
        cout << val1 << " is greater than " << val2 << endl;
    else
        cout << val2 << " is greater than " << val1 << endl;
    cout << "The sum is " << val1 + val2 << endl;
    cout << "The difference is " << val1 - val2 << endl;
    cout << "The product is " << val1 * val2 << endl;
    cout << "The ratio is " << val1 << "/" << val2 << endl;
}

int main(){

int val1, val2;

cout << "Enter two integers: ";
cin >> val1 >> val2;
twoValues(val1, val2);

return 0;
}







// problem #8
#include "std_lib_facilities.h"

int main(){

int value;

cout << "Enter an integer: ";
cin >> value;

if (value%2 == 0)
{
    cout << value << " is an even number.";
}
else if (value%2 == 1)
{
    cout << value << " is an odd number.";
}

return 0;
}






// problem #11

#include "std_lib_facilities.h"

int main(){

double penny = 0;
double nickel = 0;
double dime = 0;
double quarter = 0;

cout << "How many pennies do you have? ";
cin >> penny;
cout << "How many nickels do you have? ";
cin >> nickel;
cout << "How many dimes do you have? ";
cin >> dime;
cout << "How many quarters do you have? ";
cin >> quarter;

cout << "The value of all your coins is " << "$" <<
    ((penny*1) + (nickel*5) + (dime*10) + (quarter*25))/100;

return 0;
}

RIP GORE GOROTH

He was an hero. He will always be remembered.
07-15-2014 05:15 AM
Find all posts by this user Quote this message in a reply
Absnt Offline
Fanatic

Posts: 6,075
Joined: Dec 2009
Thanks: 13
Given 184 thank(s) in 127 post(s)
Post: #9
RE: Anyone wanna learn c++ with me?

Nice job, for anything it wants you to repeat, consider using a loop.

Blog I post to now:
http://blog.darknedgy.net

Edfreedom.org -- An organization for more freedom in education.
http://www.edfreedom.org/join-us/
07-15-2014 08:14 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)

Contact Us | School Survival | Return to Top | Return to Content | Mobile Version | RSS Syndication