- Joined
- Aug 11, 2009
- Messages
- 1,606
I like C# (I hope vex doesn't see this thread), C(++).
I've tried Delphi, but := is really annoying. Java is alright too.
I have started to think the same,Java is probably better.
I like C# (I hope vex doesn't see this thread), C(++).
I've tried Delphi, but := is really annoying. Java is alright too.
Yay for C, blah for the others.I like C# (I hope vex doesn't see this thread), C(++).
Why is := so annoying? Because it's different? You should try functional programming some time—it would probably be good for you.I've tried Delphi, but := is really annoying. Java is alright too.
It's... erm, barely OO at best.
In addition, there's a lot more than classes added to C++.
Yay for C, blah for the others.
Why is := so annoying? Because it's different? You should try functional programming some time—it would probably be good for you.
Why is := so annoying? Because it's different? You should try functional programming some time—it would probably be good for you.
It only looks ugly and is annoying because you are stuck in the C/etc way of thinking about syntax. I think you'd be surprised to find that there is a lot of variety in languages.
Exactly. My muscle memory has the habits it does already. If the '=' operator is being used for another purpose, I suppose there are thing more common than MOV that it would make sense to use it for.Why is := so annoying? Because it's different?
Then perhaps your muscle memory is at fault. I didn't find it hard at all to transition from C-based syntax to LISPs even though their syntax is so different.
Don't worry i managed to learn the structure of C++ almost by myselfSome tutorial links for your (dont know if already being posted but im just trying to help )^^
Program Structure
Variables data type
Constants
Basic Input/Output
Thats some tutorials ^^ GL & HF programming.
It is not faulty, it is simply not developed. Not that it would be hard to build the habit, but when changing good things, there should be a reason.Then perhaps your muscle memory is at fault.
= is by no means the original, so saying that they are "changing" it is not necessarily true.It is not faulty, it is simply not developed. Not that it would be hard to build the habit, but when changing good things, there should be a reason.
#include <iostream>
using namespace std;
//here we could put global variables
int main ()
{
//declare variables(local)
int a, b, c, d, e, f, g, MO, tests;
float result, savemsg;
bool boolean;
//show texts
cout << "Now we are going to try a few maths..." << endl;
//main part of the program
boolean = false;
cout << "If you want to calcuate the average number of some numbers,type 1" << endl;
//you type a number
cin >> tests;
//we add conditions to check the number
if (tests == 1)
{
cout << "Type how many numbers you want to calculate and find their average,max numbers are 7" << endl;
cin >> tests;
if (tests == 1)
cout << "Type your number...";
cin >> a;
cout << "The average is:", a;
}
else if (tests == 2)
cout << "Type your numbers...";
cin >> a, b;
MO=(a + b) / 2;
cout << "The average is:", MO;
}
else if (tests == 3)
cout << "Type your numbers...";
cin >> a, b, c;
MO=(a + b + c) / 3;
cout << "The average is:", MO;
}
else if (tests == 4)
cout << "Type your numbers...";
cin >> a, b, c, d;
MO=(a + b + c + d) / 4;
cout << "The average is:", MO;
}
else if (tests == 5)
cout << "Type your numbers...";
cin >> a, b, c, d, e;
MO=(a + b + c + d + e) / 5;
cout << "The average is:", MO;
}
else if (tests == 6)
cout << "Type your numbers...";
cin >> a, b, c, d, e, f;
MO=(a + b + c + d + e + f) / 6;
cout << "The average is:", MO;
}
else
cout << "Type your numbers...";
cin >> a, b, c, d, e, f, g;
MO=(a + b + c + d + e + f + g) / 7;
cout << "The average is:", MO;
}
}
return 0;
}
Speculating about what language is the future is bullshit. Also, you really shouldn't learn a language just because it's industry standard; you can learn those languages when you need to, and in the mean time learn something which will both be more enjoyable to code in and will broaden your understanding of programming.Learn Python.
No doubtdev C++
it for free
Translation: it's a giant heap of shit. It's totally undesigned, has more features than it knows what to do with, gotchya is almost literally its middle name, and the syntax is garbage.
Learning: So does any other language.Yeah, but that basically gave ground for all other languages to build on. Learning c++ really helps you learns several other languges, but not all of them.
That would depend on what the code is?
Building off of: Uh, no. C++ didn't inspire much, other than people attempting to make it less broken.