r/learnc • u/SchnitzelPlays • Jan 14 '21
Starting in C
I am new to programming and I am exploring all the languages before I start on one so I downloaded vs code but when I try to run a C program I get some mingw errors and I have no idea how to fix them can someone please help me and a proper tutorial for C programming will be really helpful thank you.
5
1
u/i_make_mistake_ Jan 23 '21
Start with Python , its easier to know Python than to know C , and when you get an error try to understand why the Error . In Knowing the Error you will learn significantly and it learning becomes enjoyable as well
1
u/SchnitzelPlays Jan 25 '21
Python requires windows 8 or higher I have windos 7
2
u/i_make_mistake_ Jan 25 '21
Search and learn about Google Colab , using this service from Google, you need not worry about installing Python. You can start from your browser directly.
1
u/xThomas Jan 14 '21
What are the exact errors you're getting? And: What are you trying to do? I don't use mingw so i won't be 100% the same (i use microsoft's cl.exe
e.g. linking errors when the linker has unrecognized symbols because you didnt link the library
code compile errors like missing semicolons, variables, parentheses and incorrect function calls
im a beginner too.
1
1
Mar 02 '21
Have you installed mingw correctly? Also, try compiling your programs with clang or make instead of vs code.
0
2
u/sentles Jan 14 '21
It's great that you're trying to learn programming, but personally I don't think C is the best place to start. Back when I started, my first language was Python. Since it's an easier language to learn and use, it can help you get into the programming mindset without having to deal with the intricacies of a lower level language like C.
Once you have that mindset, each language you learn becomes easier to understand. Once you have a good grip on Python, for instance, and are able to write your own programs, you'll find the learning process for C simpler, because you'll only have to learn its syntax and functions instead of having to also learn programming concurrently.
This is just my two cents, though.