Like Tree3Likes

Data types and tokens .cpp

This is a discussion on Data types and tokens .cpp within the C++ Programming forums, part of the General Programming Boards category; not so easy i have created stringprocessing.c add.h main.c add them to project and targeted the library then it wants ...

  1. #31
    Registered User
    Join Date
    Jul 2012
    Posts
    37
    not so easy
    i have created
    stringprocessing.c
    add.h
    main.c

    add them to project and targeted the library
    then it wants to have a host application

  2. #32
    Registered User
    Join Date
    Jul 2012
    Posts
    37
    I'll work on it some more
    and let you know if i get anywhere

  3. #33
    Registered User
    Join Date
    May 2012
    Location
    Arizona, USA
    Posts
    383
    Quote Originally Posted by AutoIt Addict View Post
    looks like the scanf function is working
    Code:
    scanf("%s", cArray[40]);
    This scanf call is incorrect. scanf expects a pointer to char but you passed in a char (the character 'n', to be exact). Turn on all compiler warnings and see it complain about this line. You should learn what all warnings mean and correct them before trying new things.

  4. #34
    Registered User
    Join Date
    Jul 2012
    Posts
    37
    thanks man what you said just said fixed it
    Last edited by AutoIt Addict; 07-23-2012 at 06:15 PM.

Page 3 of 3 FirstFirst 123
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Types
    By Sn0wcra5h in forum C Programming
    Replies: 1
    Last Post: 01-19-2010, 09:33 PM
  2. data types types...
    By gftmc in forum C++ Programming
    Replies: 3
    Last Post: 09-11-2006, 11:30 AM
  3. data types
    By 182 in forum C++ Programming
    Replies: 10
    Last Post: 02-18-2006, 04:24 AM
  4. data types
    By Draco in forum C Programming
    Replies: 7
    Last Post: 06-05-2002, 03:26 AM
  5. data types
    By wazilian in forum C Programming
    Replies: 1
    Last Post: 12-07-2001, 12:52 PM

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