Hi.I am new to C and i am trying to create some small apps just for learning.
How to create a simple browser just to open a url that i will give to him?
Hi.I am new to C and i am trying to create some small apps just for learning.
How to create a simple browser just to open a url that i will give to him?
Creating a browser isn't exactly what I'd call a "simple" app.
"I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008
"the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010
How about you start with something simpler than writing a browser if you are new to this language? Like reading lines of text and printing them backwards or something.
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.
But i dont know what other "projects" to create.I have created a calc,a converter from euro to dollar,from Fahrenheit to Celsius.Now?I have not any other idea from simple programs and i am stack here
Take a look at those:
C/C++ Programming Challenges - Cprogramming.com
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.
I think this is that i was looking for
Ok.I will start from here
Thanks a lot
i can has a browzer.
Code:int main (void) { char url[260]; printf("enter URL: "); scanf("%s",url); printf("HA HA HA\n"); printf("I'm Using Teh Intarnet!\n"); return 0; }
Last edited by jephthah; 05-17-2010 at 08:12 PM.