Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » C++ Official Topic
- Chainmanner
-
100+ posts
C++ Official Topic
For good reasons, though. C++ and C# are overrated![]()
C for the Win !!!
(PS don't forget the semi colon
- kilokreeper
-
89 posts
C++ Official Topic
The problem with c++ is some crud such as not being able to do ANYTHING outside the console.
I try anything new, it gives me an unsolvable error.
I try anything new, it gives me an unsolvable error.
- MegaApuTurkUltra
-
1000+ posts
C++ Official Topic
No? The problem with c++ is some crud such as not being able to do ANYTHING outside the console.
I try anything new, it gives me an unsolvable error.
- pragmaonce
-
12 posts
C++ Official Topic
Noo??? The problem with c++ is some crud such as not being able to do ANYTHING outside the console.
I try anything new, it gives me an unsolvable error.
#include <Windows.h>
int displayBox(NULL,
LPCSTR “Message!”,
LPCSTR “TITLE”
MB_OK);
int CALLBACK WinMain(
_In_ HINSTANCE hInstance,
_In_ HINSTANCE hPrevInstance,
_In_ LPSTR lpCmdLine,
_In_ int nCmdShow
)
{
displayBox;
return 0;
}
I Just made a WIN32 message box…
- pragmaonce
-
12 posts
C++ Official Topic
For good reasons, though. C++ and C# are overrated![]()
C for the Win !!!
(PS don't forget the semi colon
Plus… No error is unsolvable. The problem with c++ is some crud such as not being able to do ANYTHING outside the console.
I try anything new, it gives me an unsolvable error.
Syntax Error = Forgot a semi colon or something.
Undefined Entry Point = Messing int main or incorrect main.
LNK(ANUMBER) = Linking error.
Assuming you are a novice these are the errors you might be getting.
- pragmaonce
-
12 posts
C++ Official Topic
It's really easy to learn a language to drift on another. I'm currently learning Java, but I really want to get into C++ or C# afterwards. What editor do you use for C++?
Because of that i know C++, and Java, soon C#
Also @cobraguy C# is Java… Literally.
C#
using System.
public class Hello1
{
public static void Main()
{
System.Console.WriteLine(“Hello, World!”);
}
}
Java
class HelloWorldApp {
public static void main(String args) {
System.out.println(“Hello World!”); // Display the string.
}
}
- pragmaonce
-
12 posts
C++ Official Topic
I used to try to learn c++, but then I sort of drifted away from it… Now I am learning C#. And making games in Unity right now.
It isn't that hard. Be glad it wasn't assembly. C++ is just slightly lower level than C#
- pragmaonce
-
12 posts
C++ Official Topic
You could always use SDL or GLFW or GTK or QT. I like C++. I have done a few simple things with it, but they are all console applications. If I want to make like a game or something with a GUI, I would use Java, just due to my laziness.
- pragmaonce
-
12 posts
C++ Official Topic
I am learning C++, and I am still a beginner.
//The most basic program.
#include “std_lib_facilities.h”
int main ( )
{
cout << “Hello World!/n”;
}
return 0;
I always need to check to see if I am supposed to use “<<” or “>>” for “cin” or “cout.”
I make many mistakes.
Yes indeed. you just made a simple syntax error.
cout is undefined… The correct answer is std::cout / std::cin or put using namespace std; On the top!
Also you would get expected unqualified-id before ‘return’.
Return is inside a function not outside.
Last edited by pragmaonce (July 30, 2015 20:15:27)
- Rocketman_NASA
-
27 posts
C++ Official Topic
I am trying to learn Arduino programming language. Not sure if it is c or c++ though 

- DrKat123
-
1000+ posts
C++ Official Topic
C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
I'd preffer C or Java
It's much more nicer than C++
- TheMonsterOfTheDeep
-
1000+ posts
C++ Official Topic
Java is basically just fancy C++… C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
- DrKat123
-
1000+ posts
C++ Official Topic
Wat no C is fancy JavaJava is basically just fancy C++… C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
- TheMonsterOfTheDeep
-
1000+ posts
C++ Official Topic
Are you sure? C is lower level than Java…Wat no C is fancy JavaJava is basically just fancy C++… C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++

But Java actually has incredibly similar syntax to C++. Example:
class foo { public: int bar; foo(int baz) : bar(baz) { } }; int main() { foo* f = new foo(20); }
class Foo { public int bar; public Foo(int baz) { bar = baz; } public static void main(String[] args) { Foo f = new Foo(20); //Look familiar? } }
- DrKat123
-
1000+ posts
C++ Official Topic
Are you sure? C is lower level than Java…Wat no C is fancy JavaJava is basically just fancy C++… C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
But Java actually has incredibly similar syntax to C++. Example:class foo { public: int bar; foo(int baz) : bar(baz) { } }; int main() { foo* f = new foo(20); }class Foo { public int bar; public Foo(int baz) { bar = baz; } public static void main(String[] args) { Foo f = new Foo(20); //Look familiar? } }[/quote] I know that c++ is also OOP. But remember that ASSEMBLY IS BETTER whhopps no C IS BETTER! 4EVER
- TheMonsterOfTheDeep
-
1000+ posts
C++ Official Topic
I forgot my code tag? wowI know that c++ is also OOP. …
But remember that ASSEMBLY IS BETTER
whhopps no
C IS BETTER! 4EVER
- DrKat123
-
1000+ posts
C++ Official Topic
EPIC BBCODE FAILI forgot my code tag? wowI know that c++ is also OOP. …
But remember that ASSEMBLY IS BETTER
whhopps no
C IS BETTER! 4EVER

- TheMonsterOfTheDeep
-
1000+ posts
C++ Official Topic
Now I feel like I like C more than C++ because C is even more insane….
MWAHAHAHAHA
MWAHAHAHAHA

- SC_DStwo_Master
-
100+ posts
C++ Official Topic
can someone check the game I'm working on? it has a lot of SDL2 but I want to know how I could improve the C++ code itself
https://mega.nz/#!uRcwFAqZ!jKPjjb2dBv-OEpF0bjVD342-d3Mc6cz3MU7eTomMz1M
https://mega.nz/#!uRcwFAqZ!jKPjjb2dBv-OEpF0bjVD342-d3Mc6cz3MU7eTomMz1M
- Discussion Forums
- » Things I'm Making and Creating
-
» C++ Official Topic