Click here to Skip to main content
15,917,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: help Pin
Rajesh R Subramanian31-Aug-07 8:04
professionalRajesh R Subramanian31-Aug-07 8:04 
GeneralRe: help Pin
Russell'31-Aug-07 8:21
Russell'31-Aug-07 8:21 
QuestionRe: help Pin
Hamid_RT31-Aug-07 4:20
Hamid_RT31-Aug-07 4:20 
AnswerRe: help Pin
youbo31-Aug-07 4:23
youbo31-Aug-07 4:23 
QuestionRe: help Pin
Maximilien31-Aug-07 4:26
Maximilien31-Aug-07 4:26 
AnswerRe: help Pin
youbo31-Aug-07 4:31
youbo31-Aug-07 4:31 
GeneralRe: help Pin
Russell'31-Aug-07 4:34
Russell'31-Aug-07 4:34 
GeneralRe: help Pin
David Crow31-Aug-07 5:22
David Crow31-Aug-07 5:22 
youbo wrote:
the error is :fatal error C1004: unexpected end of file found


See here.

Had you used <pre> tags, and proper indentation, you could have quickly seen the error:

using namespace std;
 
int oo(int m);
 
int sum=0;
 
void main()
{
    int m;
    cin>>m;
 
    oo(m);
 
    cout<<sum;
};
 
int OO( int m)
{
    for(int j=2;j<=m;j++)
    { 
        if (m%j==0)
        { 
            sum=sum+j;
        };
        
        if (m==1)
        {
            return -1 ;
        };
 
    return OO(m/j);
}; 
Once you address the C1004 error, you'll still be presented with a LNK2001 error, however. And to top it all off, a stack overflow is imminent.


"A good athlete is the result of a good and worthy opponent." - David Crow

"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne


GeneralRe: help Pin
Russell'31-Aug-07 4:28
Russell'31-Aug-07 4:28 
AnswerRe: help Pin
David Crow31-Aug-07 5:21
David Crow31-Aug-07 5:21 
Question[Message Deleted] Pin
onlyjaypatel31-Aug-07 3:52
onlyjaypatel31-Aug-07 3:52 
AnswerRe: Url from html data Pin
Iain Clarke, Warrior Programmer31-Aug-07 3:55
Iain Clarke, Warrior Programmer31-Aug-07 3:55 
AnswerRe: Url from html data Pin
Hamid_RT31-Aug-07 4:02
Hamid_RT31-Aug-07 4:02 
AnswerRe: Url from html data Pin
Russell'31-Aug-07 4:09
Russell'31-Aug-07 4:09 
GeneralRe: Url from html data Pin
Russell'31-Aug-07 21:20
Russell'31-Aug-07 21:20 
QuestionHow to Save the DC. Pin
GauranG Shah31-Aug-07 3:45
GauranG Shah31-Aug-07 3:45 
AnswerRe: How to Save the DC. Pin
Hamid_RT31-Aug-07 3:54
Hamid_RT31-Aug-07 3:54 
GeneralRe: How to Save the DC. Pin
GauranG Shah31-Aug-07 18:21
GauranG Shah31-Aug-07 18:21 
GeneralRe: How to Save the DC. Pin
Hamid_RT31-Aug-07 19:17
Hamid_RT31-Aug-07 19:17 
AnswerRe: How to Save the DC. Pin
codeII31-Aug-07 4:19
codeII31-Aug-07 4:19 
GeneralRe: How to Save the DC. Pin
Hamid_RT31-Aug-07 4:22
Hamid_RT31-Aug-07 4:22 
QuestionHow to trace the mouse when it leave the window? Pin
Michael ZY31-Aug-07 3:10
Michael ZY31-Aug-07 3:10 
AnswerRe: How to trace the mouse when it leave the window? Pin
Roger Broomfield31-Aug-07 6:08
Roger Broomfield31-Aug-07 6:08 
AnswerRe: How to trace the mouse when it leave the window? Pin
Mark Salsbery31-Aug-07 6:27
Mark Salsbery31-Aug-07 6:27 
GeneralRe: How to trace the mouse when it leave the window? Pin
Michael ZY31-Aug-07 17:13
Michael ZY31-Aug-07 17:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.