Ask Experts Questions for FREE Help !
Ask
    Kermit1941's Avatar
    Kermit1941 Posts: 1, Reputation: 1
    New Member
     
    #1

    Jun 6, 2006, 04:21 AM
    need cpp program debugging help
    The following program

    #include <stdio.h>
    #include <iostream>
    #define TRUE 1 /* Define some handy constants */
    #define FALSE 0 /* Define some handy constants */
    ifstream f("CMT_MCAID",ios_base::binary);
    ofstream g("mcaid.txt",ios_base::app);
    char ch
    int k
    int kh,kl
    int limit
    limit = 1000

    for (int I=1;i<= limit;i++)

    {
    f >> ch;
    k = ch;
    kl = k%16;
    kh = (k -kl)/16;
    g << kh," ",kl," ";
    }

    received the following diagnostics

    med.cpp(5,3): Declaration syntax error
    med.cpp(6,11): Declaration syntax error
    med.cpp(8,4): Declaration syntax error
    med.cpp(13,17): Declaration syntax error
    med.cpp(13,17): Multiple declarations for 'i'
    med.cpp(13,17): Earlier declaration for 'i'
    med.cpp(13,17): Declaration syntax error

Check out some similar questions!

Program.exe [ 2 Answers ]

I have Windows 98 and when I am on craigslist and click on an email from the list it says PROGRAM.exe is needed to email that person. When I try to locate PROGRAM.exe on my computer it says it can't be found. What can I do to resolve this problem ? Can anyone help me with this problem, I have...

Program [ 2 Answers ]

Hi, I need it a program, about internal audit and risk management Thanks for help.

Debugging [ 1 Answers ]

I keep getting an error message when I log onto eBay. It is a runtime error and asks me if I wish to debug. When I say Yes an unfamiliar screen comes up and from there I don't know what to do. Nothing happens to this screen . Can someone help me... it is very annoying having this pop up all the...

Zip program [ 4 Answers ]

Does a zip program comes with windows 98se? If so what is it? Kat.


View more questions Search
 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.