Like Tree1Likes

string question

This is a discussion on string question within the C Programming forums, part of the General Programming Boards category; Originally Posted by claudiu You need to learn how to read and write proper English before you can push yourself ...

  1. #16
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Quote Originally Posted by claudiu View Post
    You need to learn how to read and write proper English before you can push yourself to learn how to add.
    I don't know about when you were in school, but when I was in school, I didn't have to master the English language before they started up on math.


    Quzah.
    Hope is the first step on the road to disappointment.

  2. #17
    Registered User claudiu's Avatar
    Join Date
    Feb 2010
    Location
    London, United Kingdom
    Posts
    2,094
    Quote Originally Posted by quzah View Post
    I don't know about when you were in school, but when I was in school, I didn't have to master the English language before they started up on math.


    Quzah.
    Well, when I was in school they certainly didn't teach SMS speak before standard English.
    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.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. string question
    By insanoflex in forum C++ Programming
    Replies: 2
    Last Post: 01-21-2011, 10:50 AM
  2. A question about string
    By winggx in forum C Programming
    Replies: 6
    Last Post: 03-23-2010, 05:16 PM
  3. A question about string
    By zouyu1983 in forum C Programming
    Replies: 2
    Last Post: 11-28-2006, 08:10 PM
  4. string question
    By na_renu in forum C Programming
    Replies: 1
    Last Post: 01-08-2006, 07:43 PM
  5. int to string question
    By Blizzarddog in forum C++ Programming
    Replies: 13
    Last Post: 11-10-2003, 11:23 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21