*

Offline spoon

  • *
  • Posts: 1134
  • Foxy wins
    • View Profile
C++
« on: January 27, 2014, 12:28:40 AM »
I am taking a C++ course this semester to become mastr haxor. I am completely new to it but I find it fairly exciting. So far, the only program we've had to write modeled Newton's simple equation:

f=ma

However, I feel like it will get more complicated very soon. Can I rely on my FES brethren for help when necessary? I've looked ahead to Friday's assignment; it is to write a complete program to calculate the area of a triangle using dimensions supplied by the user. Seems simple enough.

Also, I was wondering if any of you could write a code that can read my assignments and produce the code for them? That'd be great.

inb4 Blanko spoons a literally pizza

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9776
  • Professional computer somebody
    • View Profile
Re: C++
« Reply #1 on: January 27, 2014, 12:41:39 AM »
I'm decent (though not an expert) with C, and I hate C++. I will be able to help with a subset of C++ code.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline Pete Svarrior

  • e
  • Planar Moderator
  • *****
  • Posts: 16073
  • (◕˽ ◕ ✿)
    • View Profile
Re: C++
« Reply #2 on: January 27, 2014, 12:46:00 AM »
I also hate C++, but I'm reasonably good at other object-oriented languages, which should make me more than good enough to help a C++ beginner.
Read the FAQ before asking your question - chances are we already addressed it.
Follow the Flat Earth Society on Twitter and Facebook!

If we are not speculating then we must assume

*

Offline spoon

  • *
  • Posts: 1134
  • Foxy wins
    • View Profile
Re: C++
« Reply #3 on: January 27, 2014, 12:50:17 AM »
I C... get it? C..

Sorry about that. Anyways, why the disdain towards C++? What language do the two of you prefer?
inb4 Blanko spoons a literally pizza

*

Offline Lord Dave

  • *
  • Posts: 7654
  • Grumpy old man.
    • View Profile
Re: C++
« Reply #4 on: January 27, 2014, 12:57:32 AM »
I'm a mix of Parsifal and pizaaplanet.  I know some C++ (enough for you) but I'm more of a VB man.

Of course in my experience the easiest way to write code is to break down what you want it to do then look up how to do each piece.  Then put each one into a subroutine or function.
If you are going to DebOOonK an expert then you have to at least provide a source with credentials of equal or greater relevance. Even then, it merely shows that some experts disagree with each other.

*

Offline spoon

  • *
  • Posts: 1134
  • Foxy wins
    • View Profile
Re: C++
« Reply #5 on: January 27, 2014, 01:40:23 AM »
Is VB related to Visual Studio? We use visual studio in the class.
inb4 Blanko spoons a literally pizza

*

Offline Snupes

  • Planar Moderator
  • *****
  • Posts: 1957
  • Counting wolves in your paranoiac intervals
    • View Profile
Re: C++
« Reply #6 on: January 27, 2014, 01:57:13 AM »
I've been thinking about learning C++ for programming stuff, since that's what someone recommended I learn. I look forward to seeing how it goes for you. :D
There are cigarettes in joints. You don't smoke it by itself.

*

Offline Rushy

  • Planar Moderator
  • *****
  • Posts: 8569
    • View Profile
Re: C++
« Reply #7 on: January 27, 2014, 02:01:34 AM »
Real men code in Assembly.

*

Offline spoon

  • *
  • Posts: 1134
  • Foxy wins
    • View Profile
Re: C++
« Reply #8 on: January 27, 2014, 02:07:42 AM »
I code in binary.
inb4 Blanko spoons a literally pizza

*

Offline Rushy

  • Planar Moderator
  • *****
  • Posts: 8569
    • View Profile
Re: C++
« Reply #9 on: January 27, 2014, 02:10:27 AM »
I code in binary.

I draw the line of hyperbole at the impossible. No one codes in binary.

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9776
  • Professional computer somebody
    • View Profile
Re: C++
« Reply #10 on: January 27, 2014, 02:12:29 AM »
I've been thinking about learning C++ for programming stuff, since that's what someone recommended I learn.

Don't. Just don't.

I code in binary.

I draw the line of hyperbole at the impossible. No one codes in binary.

Incorrect. All coders code in binary.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline Rushy

  • Planar Moderator
  • *****
  • Posts: 8569
    • View Profile
Re: C++
« Reply #11 on: January 27, 2014, 02:14:43 AM »
Incorrect. All coders code in binary.

Incorrect. When I write in English and translate it to Russian using Google, it doesn't mean I wrote Russian.

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9776
  • Professional computer somebody
    • View Profile
Re: C++
« Reply #12 on: January 27, 2014, 02:15:17 AM »
Incorrect. All coders code in binary.

Incorrect.

Incorrect.

When I write in English and translate it to Russian using Google, it doesn't mean I wrote Russian.

Irrelevant.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline Rushy

  • Planar Moderator
  • *****
  • Posts: 8569
    • View Profile
Re: C++
« Reply #13 on: January 27, 2014, 02:16:21 AM »
Irrelevant.

This is your universal sign of "I lost the argument."

*

Offline spoon

  • *
  • Posts: 1134
  • Foxy wins
    • View Profile
Re: C++
« Reply #14 on: January 27, 2014, 02:17:20 AM »
Irrelevant.

This is your universal sign of "I lost the argument."

Incorrect.
inb4 Blanko spoons a literally pizza

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9776
  • Professional computer somebody
    • View Profile
Re: C++
« Reply #15 on: January 27, 2014, 02:21:38 AM »
Irrelevant.

This is your universal sign of "I lost the argument."

I'd have to have an argument in order to lose it. The only retort you made to me pointing out your wrongness was irrelevant.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline Rushy

  • Planar Moderator
  • *****
  • Posts: 8569
    • View Profile
Re: C++
« Reply #16 on: January 27, 2014, 02:41:43 AM »
I'd have to have an argument in order to lose it. The only retort you made to me pointing out your wrongness was irrelevant.

If there wasn't an argument, why then did you admit defeat? You must have seen the coming storm.

*

Offline Snupes

  • Planar Moderator
  • *****
  • Posts: 1957
  • Counting wolves in your paranoiac intervals
    • View Profile
Re: C++
« Reply #17 on: January 27, 2014, 11:32:14 AM »
I've been thinking about learning C++ for programming stuff, since that's what someone recommended I learn.

What would you recommend?
There are cigarettes in joints. You don't smoke it by itself.

*

Offline xasop

  • Administrator
  • *****
  • Posts: 9776
  • Professional computer somebody
    • View Profile
Re: C++
« Reply #18 on: January 27, 2014, 12:24:27 PM »
What would you recommend?

Most things that aren't C++.

More specifically, it depends on what you want to learn about programming. If you want to learn about how computers work, C is a great starting point. If you just want to write program logic without caring about what the computer is doing under the hood, a scripting language (Perl, Ruby and Python are popular options, in decreasing order of my personal preference) is a good way to ease into that.
when you try to mock anyone while also running the flat earth society. Lol

*

Offline Pete Svarrior

  • e
  • Planar Moderator
  • *****
  • Posts: 16073
  • (◕˽ ◕ ✿)
    • View Profile
Re: C++
« Reply #19 on: January 27, 2014, 01:39:49 PM »
I would also recommend a scripting language as your first language. My first real programming language was Java, and while Parsifal is likely to shoot me for saying this, if you don't want to work with a scripting language, Java is very easy to pick up. If you want to work in Visual Studio, C# is near-identical to Java in syntax, and is also fairly newbie-friendly.

I would advise against C or C++ as one's first language, because in my opinion a beginner programmer should be guided by hand a bit, and oh God does C(++) not do that. On the other hand, if you start with C++ and survive its shittiness, there's pretty much nothing that can stop you after that.

C(++) will do exactly what you tell it to do, without questioning anything. If you tell it to read memory that it shouldn't be reading, it'll read it. If you tell it to write to it, it'll try writing to it (and probably crash in the process). It will let you accidentally overwrite a completely unrelated variable if you write to the nth position in an n-size array, and it won't tell you that you're doing it. None of those things are too bad to someone that already has programming experience, but I would seriously not want to deal with that as a starter.
« Last Edit: January 27, 2014, 01:46:50 PM by pizaaplanet »
Read the FAQ before asking your question - chances are we already addressed it.
Follow the Flat Earth Society on Twitter and Facebook!

If we are not speculating then we must assume