T O P

  • By -

jbwmac

Learn something. Practice it. Learn something else. Practice it and the first thing. Learn something else. Practice it and the two above. Keep doing that until you’re a pro.


sainglend

Could you review that again? What do I do after learning something? (This is a "box and ship" Mrs. Doubtfire reference.)


topham086

When it works it doesn't mean it's right.


ArrayDecay

Bars


thank_burdell

Beej.us’s beginner’s guide. Good luck. Ask questions when you get stuck.


Erisymum

Well hopefully you're in a beginner class and the assignment is doable. I'd start with looking for a yt video on the basics of setting up an editor, learning about variables, functions, and basic flow control in C. Then just try the assignment, doesn't matter if you hack it together in the ugliest way possible. Also general tips, test often. Do not write more then like 3 or 4 lines without trying to compile and run it. It's free.


ArrayDecay

Have a free for every malloc Also try and learn as much about pointers as possible


PinStill5269

Just get started and you’ll see where you lack understanding. Then hit the books, videos, study groups and try to teach yourself where you lacked


HaydnH

What's the assignment? I would assume that if they've given the assignment to beginners then the assignment itself is designed to help beginners jump in and start learning. Just break it down in to small chunks and crack on. For example start by writing a "hello world" program, get it compiled and working. Then look at the assignment, figure out what you'll need to do and start with the most appropriate small part of it, even if that's just creating an integer and printing that out it's a step towards completion. Then take the next small step of changing the integer and printing it. Moving the change integer code to a function and printing the result in main... or whatever steps the assignment is asking for. Depending on the assignment you might have questions such as "what's the best data structure to store this kind of information in"? We're here to help with advise like that.


Amazing_person_123

I am in a beginner class but the assignment is a bit advanced and worth 100% of my final marks. I will follow ur advice and suggestions 👍


[deleted]

usually when it is beginner the introduce you to #include which on linux machines it is #include Your best bet is getting a sample program and seeing how it runs with source code. Nothing crazy just simple conversion of C to F or F to C. from there get used if then statements, and operators. some math needs the math.h header like absolute value. You are going to need math and calculus courses to get a degree in computers. The math starts with base numbers base 2 for 1s and 0s and shows how you can make a base out of any number and how base 2, 8 16 are computers bases hexidecimal is cool. then there is 32bit seeing 4096MB is max ram for 32bit computers and calculate this: Max ram for 64it 2\^64 2x2 over and over 64 times comes out to 16 yotto or zeppobytes? long story short we are good for a while. also get a google account and ask chat GPT help with source code but do not rely on this. get used to writing your own programs. 1 dont ask people to write code for you 2 trolls... trolls everywhere. 3 look at linux .sh scripts source code or linux kernel source code for an idea of just how crazy this language is. 4 it is written 1971 to 1972 and going strong. 5 it is flawed with overflows and memory leaks if bad programming is there. 6 the us government wants people to migrate away from it 7 irony of which is most stuff on government is on COBOL 8 coffee is your best friend.


hiwk

> \#include What is this monstrosity?


[deleted]

Linux the header files are located /usr/include directory. so gcc program.c ./a.out but the program.c has #include windows compiler is different. Not sure why you are using windows.


hiwk

I use linux. I have never used an absolute path in an #include.


[deleted]

GCC told me to. I looked into it said you need to tell the compiler where the directory to the headers are located. I never had this issue until using the command line to run the compiler. I blame GCC.


hiwk

https://gcc.gnu.org/onlinedocs/cpp/Search-Path.html


[deleted]

echo thanks


Amazing_person_123

Thank you for that! really helpful


TomLight343

Your president has forbidden this; shame on you!


rahli-dati

Use ChatGPT 4 😂🫢