This is it:
#include <stdio.h>
#define MAXLINE 1000
int getline(char line[], int maxline);
void copy(char to[], char from[]);
Type: Posts; User: Filster7
This is it:
#include <stdio.h>
#define MAXLINE 1000
int getline(char line[], int maxline);
void copy(char to[], char from[]);
Python is actually easier to learn then C.Its not that complex.Its a high-dynamic programming language.But its very nice to use.
I tryed it myself.
Not sure thats a good idea...
Its a preety simple answer,i think its a very nice program for beggining a journey into programming.The thing is there are no shortcuts! Have fun!
Whiteflags gave you everything you need,the loop is perfect.
But if you want to do it another way just use printf and finish ....
I would try code::blocks.Download it and try it out.Its very nice...
First of all,you don't have to be talented to be good at something.If you have heart,everything is possible.I don't like the word talent.Beacuse what you have to do every single day is put effort in...
Thanks alot ,il look into it more deeply.
And your right ,about the celsius part.
Here is the code:
#include <stdio.h>
main ()
{
float fahr, celsius;
int lower, upper, step;
I see.Thanks guys.Im gonna go and read more about it....It never hurts to know the details.
Ok,here is the code:
#include <stdio.h>
#include <ctype.h>
#define MAXHIST 15
#define MAXCHAR 128
Sorry,your right....and thats a very shamefull mystake....
Oah and don't worry about the main,there is } at the end.I didn't seem to have copied that...
Oah and the answer should be when i simply compile the code as it is now,without any input:
digits = 9...
So ,i ran into some trouble,doesen't compile the right answer.
#include <stdio.h>
main()
{
int c, i, nwhite, nother;
int ndigit[10];
In other words. You use # to do things before you start your program,you define something.The pre-processor does its job and after its done,everything else is done.
Defining something means that if...
Does this compile right now at all?
What i meant,show the code you had up until now...
Type all the code in one.All the code you have right now.
Thank you! I thought as much,i guess the language and every else are just one big login :)
Thanks for that,but i still don't understand something.
I tried replacing IN and OUT with random words and i changed the numbers randomly and the program was still running fine (ofcourse i changed...
This is the code :
#include <stdio.h>
#define IN 1 /* Inside a word */
#define OUT 0 /* Outside a word */
main()
{
I understand,i guess your right.This makes me practice aswell.
Il give it my all.I have a lot of passion for programming and i wish to get to the top if possible some day.Sort of a dream of mine....
Thanks for the help,i just have one more question.
I preety much understood everything.
But could you please explain to me in actual words.
What happens from line 15-18?
Sorry for the trouble.I...
So i guess its false.Beacuse the updating of of lastc comes after the putchar(c). Then it becomes lastc = c; .Im not really sure if thats correct.But thats how i think.
Ok,so there was no lastc to begin with ,since the beggining of the loop reads only 1 character.So the first if statement is going to be used first in the program.Correct?