Thread: where is the wrong? Help

  1. #1
    Registered User
    Join Date
    Dec 2012
    Posts
    1

    where is the wrong? Help

    when i try to use ch plot the graph of sin(x),there are error as below " >ch -u "data2D.ch"
    ERROR: expecting an identifier in declaration
    ERROR: syntax error before or at line 134 in file 'D:/Program Files (x86)/C语言/include/chplot.h'
    ==>: CPlot(const char *licensestr);
    BUG: CPlot(<== ???
    "

  2. #2
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    27,414
    Post the smallest and simplest program that you expect to compile but which demonstrates the error.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Welcome to the forum, Chinese!

  4. #4
    Registered User
    Join Date
    May 2009
    Posts
    3,729
    I am not sure this is a C program issue or C and C++ interpreter issue.

    I am going with C and C++ interpreter issue.
    I suggest if you choose the name "C语言" that the ch interpreter might require standard ASCII characters only in the installation folder name.

    NOTE: I have never used ch.

    Tim S.

    From Ch (computer programming) - Wikipedia, the free encyclopedia

    Ch (pron.: /ˌsiːˈeɪtʃ/) is a proprietary cross-platform C and C++ interpreter originally designed by Harry H. Cheng as a scripting language for beginners to learn mathematics, computing, numeric methods, and programming in C/C++. Ch is now developed and marketed by SoftIntegration, Inc. A student edition is freely available.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 3
    Last Post: 11-14-2011, 06:35 PM
  2. wrong wrong with my xor function?
    By Anddos in forum C++ Programming
    Replies: 5
    Last Post: 04-26-2009, 01:38 PM
  3. What's Wrong With This?
    By pobri19 in forum C Programming
    Replies: 12
    Last Post: 05-26-2008, 10:54 AM
  4. whats wrong with this? no errors but wrong result
    By InvariantLoop in forum C Programming
    Replies: 6
    Last Post: 01-28-2005, 12:48 AM
  5. Replies: 9
    Last Post: 07-15-2004, 03:30 PM