CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2010
    Posts
    12

    [RESOLVED] Very Basic System Pause problem

    Basically I have two files ffs.h and stupid_headers.cpp

    I'm testing this because I cannot get headers to work in my main application.

    When I run this application system("pause") is completely skipped, why is this?

    Code for stupid_headers.cpp
    Code:
    #include "stdafx.h"
    #include <iostream>
    #include "ffs.h"
    
    using namespace std;
    
    int main()
    {
    	return 0;
    	cout << ffs(3,3);
    
    	system("pause");
    }
    code for ffs.h
    Code:
    int ffs(int x, int y)
    {
    		return(x + y);
    };

  2. #2
    Join Date
    Dec 2010
    Posts
    12

    Re: Very Basic System Pause problem

    How do I delete threads? Just realised return 0.........

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured