
Originally Posted by
Trek1701
For someone that only used VHDL and now want to learn a programming language should this person learn what first? C or C++?
Tnx.
I have found C to be easier for instance a hello world program in C looks like this:
Code:
#include <stdio.h>
main()
{
printf("Hello World!\n");
}
Where as a C++ version is more like this:
Code:
#include <iostream>
int main()
{
using namespace std;
cout << "Hello World" << endl;
return 0;
}
C++ is harder to mess up in as far as I know. But when I have messed up I have found I need to restructure the whole program again in some of the worst cases. In C I didn't end up doing that. Also C is more used for nix programming than C++ from what I've noticed so you may want to learn C.
Laptop: Lenovo ThinkPad T410, CPU: Intel Core i5 520M, Ram: 8GB DDR3, Hard Drive: 320GB, Graphics: Intel HD, OS: Windows 7 / Arch Linux x86_64
Desktop: Motherboard: ASRock Fatal1ty AB350 Gaming K4, CPU: AMD Ryzen 3 1200, RAM: 8GB DDR4, Storage: Samsung 850 Pro 256GB, Graphics: Asus Radeon RX 550 4GB, OS: Arch Linux x86_64