Discuss Scratch

Chainmanner
Scratcher
100+ posts

C++ Official Topic

Extremguy wrote:

C++ and C# are overrated

C for the Win !!!

(PS don't forget the semi colon
For good reasons, though.
kilokreeper
Scratcher
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.
MegaApuTurkUltra
Scratcher
1000+ posts

C++ Official Topic

kilokreeper wrote:

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.
No?
pragmaonce
Scratcher
12 posts

C++ Official Topic

kilokreeper wrote:

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.
Noo???

#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
Scratcher
12 posts

C++ Official Topic

Chainmanner wrote:

Extremguy wrote:

C++ and C# are overrated

C for the Win !!!

(PS don't forget the semi colon
For good reasons, though.

kilokreeper wrote:

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.
Plus… No error is unsolvable.

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
Scratcher
12 posts

C++ Official Topic

cobraguy wrote:

I'm currently learning Java, but I really want to get into C++ or C# afterwards. What editor do you use for C++?
It's really easy to learn a language to drift on another.

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
Scratcher
12 posts

C++ Official Topic

wolves4ever10 wrote:

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
Scratcher
12 posts

C++ Official Topic

christian2000 wrote:

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.
You could always use SDL or GLFW or GTK or QT.
pragmaonce
Scratcher
12 posts

C++ Official Topic

Chibi-Matoran wrote:

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
Scratcher
27 posts

C++ Official Topic

I am trying to learn Arduino programming language. Not sure if it is c or c++ though
DrKat123
Scratcher
1000+ posts

C++ Official Topic

C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
TheMonsterOfTheDeep
Scratcher
1000+ posts

C++ Official Topic

DrKat123 wrote:

C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
Java is basically just fancy C++…
DrKat123
Scratcher
1000+ posts

C++ Official Topic

TheMonsterOfTheDeep wrote:

DrKat123 wrote:

C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
Java is basically just fancy C++…
Wat no C is fancy Java
TheMonsterOfTheDeep
Scratcher
1000+ posts

C++ Official Topic

DrKat123 wrote:

TheMonsterOfTheDeep wrote:

DrKat123 wrote:

C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
Java is basically just fancy C++…
Wat no C is fancy Java
Are you sure? C is lower level than Java…

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
Scratcher
1000+ posts

C++ Official Topic

TheMonsterOfTheDeep wrote:

DrKat123 wrote:

TheMonsterOfTheDeep wrote:

DrKat123 wrote:

C++ is terrible for me.
I'd preffer C or Java
It's much more nicer than C++
Java is basically just fancy C++…
Wat no C is fancy Java
Are you sure? C is lower level than Java…

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
Scratcher
1000+ posts

C++ Official Topic

DrKat123 wrote:

TheMonsterOfTheDeep wrote:

I know that c++ is also OOP.
But remember that ASSEMBLY IS BETTER
whhopps no
C IS BETTER! 4EVER
I forgot my code tag? wow
DrKat123
Scratcher
1000+ posts

C++ Official Topic

TheMonsterOfTheDeep wrote:

DrKat123 wrote:

TheMonsterOfTheDeep wrote:

I know that c++ is also OOP.
But remember that ASSEMBLY IS BETTER
whhopps no
C IS BETTER! 4EVER
I forgot my code tag? wow
EPIC BBCODE FAIL
spazzylemons
Scratcher
77 posts

C++ Official Topic

TheMonsterOfTheDeep
Scratcher
1000+ posts

C++ Official Topic

Now I feel like I like C more than C++ because C is even more insane….

MWAHAHAHAHA
SC_DStwo_Master
Scratcher
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

Powered by DjangoBB