Understanding c++

Started by Pfaber11, April 28, 2021, 05:14:26

Previous topic - Next topic

jimbo

The c++ is a good programming language, but I suggest you learn the C language at first, and then go forward to c++.

Baggey

To understand it you need to run it in the first place!

I use Blitzmax_1.5. You run the .EXE. And you start codeing. In the Blitzmax ide. Compile it! and hey presto. You have a program running!

Now Try doing that with C Please dont mention VisualStudio. What a ball acke to get the right down load let alone use it. You need to find files, make them link them. Guess what you need in the first place!  ???

Now, just imagine. BlitzMax_C.

Don't be silly! My god how Cool would that be, Running with SDK 2.0 built in. Just Run the .Exe and just use it. Straight out of the box. I know im being to Practical.

I know it's only a dream!

Kind Regards Baggey
Running a PC that just Aint fast enough!? i7 Quad core 16GB ram 1TB SSD and NVIDIA Quadro K620 . DID Technology stop! Or have we been assimulated!

ZX Spectrum 48k, C64, ORIC Atmos 48K, Enterprise 128K, The SID chip. Im Misunderstood!

3DzForMe

QuoteBut in saying all of this - if you can get your head around it - c++ is totally amazing, wicked fast. but horrible to begin with...     

My thruppence.  I've coded in 'C' for a bit of a living briefly once.... made a terminal version of space invaders in it to consolidate stuff.  Never got into C++..... I'll see if I can dig out the code for my terminal version of space invaders. Compiling C can be a bit of a game depending on what system your on..... haven't done it for a while.... bit loath to dip my toe back into that 'murky' pond.  Will give it a blast anyway - good luck!!

Oh yeah, did c# for about 8 weeks 7 years ago - that did it for me, went back to fixing planes!
BLitz3D, IDEal, AGK Studio, BMax, Java Code, Cerberus
Recent Hardware: Dell Laptop
Oldest Hardware: Commodore Amiga 1200 with 1084S Monitor & Blitz Basic 2.1

EdzUp

If your serious about C/C++ download Code::Blocks and the latest version of MingW GNU C++ and go through some of the examples provided, ive been coding in C since the "before times" (Turbo C++ 2 and up on MSDOS yes before times (before windows)) and that is my happy place coding in MSDOS was so much easier than coding on Windows is today.

As an example for you in BlitzMax you can call Graphics 1024, 768, 32 to get a graphics window setup ready for you, well http://www.winprog.org/tutorial/simple_window.html this just sets up a basic window without graphics ;)

col

QuoteAs an example for you in BlitzMax you can call Graphics 1024, 768, 32 to get a graphics window setup ready for you, well http://www.winprog.org/tutorial/simple_window.html this just sets up a basic window without graphics

I'm not sure this fits within the difference of languages? :P

BlitzMax does all of that too behind the Graphics command - it has to as its the Windows way of doing things and isn't really so much of a language difference feature. For eg you could easily create a similar Graphics function in c/c++ and hide it all away in the same way as Max2D does.

I'm using c# for UI stuff and c++ for code pretty much exclusively nowadays.
https://github.com/davecamp

"When you observe the world through social media, you lose your faith in it."

EdzUp

#20
True my example was more as an example of Max allows for rapid application development.

Personally I too use C++ and OpenGL exclusively these days as it feels more like coding to me, writing games in Unity feels like scripting than coding and doesn't feel right.

Pfaber11

I feel the same coding in AGK in that it is pretty easy anybody can do it , or can they. It's taken me about 3 years to get comfortable with AGK and am still picking up new things as I go along . TGC say anybody can program in AGK and it is easy and it is once you've been at it a few years . Maybe I'm just a slow learner . Anyway I looked at that code for opening a window and it is pretty lengthy. I think if AGK was taken away from me my next port of call would be PureBasic . 
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz