keep some perspective, you're not finalizing anything other than the pseudocode. use your book to get the proper syntax of your statements. most lines end in ;
keep some perspective, you're not finalizing anything other than the pseudocode. use your book to get the proper syntax of your statements. most lines end in ;
First of all... stop acting like a baby...
We need to know if the code you posted at the bottom of the first message is what you are asking for help with... that's all...
On the off chance it is... and you say you know how wrong it is...
The best advice any of us could give you would be to crack the books and start reading. Take any C book or tutorial... start on page 1, read the text, type up the examples, compile them play with them...learn how they work... move on to page 2.
C is never going to speak your language... so you're going to have to learn to do things its way.
Perhaps a good point to start would be to communicate in correct English not in SMS speak. Then, maybe people will actually take you seriously.
1. Get rid of gets(). Never ever ever use it again. Replace it with fgets() and use that instead.
2. Get rid of void main and replace it with int main(void) and return 0 at the end of the function.
3. Get rid of conio.h and other antiquated DOS crap headers.
4. Don't cast the return value of malloc, even if you always always always make sure that stdlib.h is included.
ok good morning everyone.
after last night i read all the posts again and realised that i havent said that the course im taking is introductory level and after reading all previous codes we made for class they all look "puesdo" so yes the last part of what i posted is what i believe is the code needed to make the program for the question.
PS: the reason i was posting in "SMS" last night was because i was sleepy i usualy dont post like that.
Ok, so write yourself a program that rolls a couple of dice. Post your attempt here, and let us know what stumps you about that, and we'll point you in the right direction.
Quzah.
Hope is the first step on the road to disappointment.
That's rather unfortunate. Pick a post at random and look at the code that's posted. Compare it to how yours looks. You should see dozens of differences between your code and code that even makes sense (we won't even get to correct code yet) -- just in the form of how it looks. Do the same with code in your book. That should give you a start.
Ok, the good news: you do know how to type. All you need now is to find the shift key and punctuation marks.
Now the bad news: that code you posted won't work in any compiler or computer language I've ever seen...
Sorry, but it's not a computer program. (I was hoping that was a pseudocode example she gave you to work from...)
You really do need to crack the textbooks and find out what's going on...
And if your teacher is approving of stuff like you wrote (as you mentioned)...
you seriously need to talk to her employers about getting a REAL teacher.
lol but unfortunatly we dont have a recommended book so will the faq's on this site be enough?
sometimes it may be helpful to checkout newboston on youtube. he has some introductory videos on programming in C and other languages. If you check out the first few videos you should be able to start. Then post what you have and there are many ppl on here who can help point you in the right direction.
1) Google is your friend...
2) I started with this one... Teach Yourself C in 21 Days -- Table of Contents
3) How the haitch eaiee double hockey sticks do they expect you to learn without documentation?
i seriously dont know tater but but the programming subject im doing isnt even a standalone subject so maybe that explains that?
which class are you in? and what school?
The class in question is called robotics and mechatronics project 1 and the school is actually a uni and im studying robotics and mechatronicts engineering BUT tommorow im going to ask the adminstration if i can swicth majors to civil engineering where there is no electronics or programming subjects which im clearly not cut out for.
PS: im serious about switching majors no kidding there!