Thread: c++ visuel basic help.

  1. #16
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    How did you setup VS? Like, there is an option that specifies where the build directory goes. If you accidentally changed it, Visual C++ might have gotten confused when you tried to Build+Run.

  2. #17
    Registered User
    Join Date
    Mar 2005
    Posts
    13
    i also checked the debug folder and it only has the debug log in it. I tried using dev-bloodshed c++, and I get an error message when I run it saying it can't find the bin folder or somthing to that extent.
    Last edited by gijake; 08-17-2006 at 05:31 PM.

  3. #18
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Quote Originally Posted by gijake
    i also checked the debug folder and it only has the debug log in it. I tried using bev-bloodshed c++, and I get an error message when I run it saying it can't find the bin folder or somthing to that extent.
    Can you post the source you're trying to compile?

    Oh, and it's Dev-C++.

  4. #19
    Registered User
    Join Date
    Mar 2005
    Posts
    13
    just a start of a simple calculator one of my friends wants.
    Code:
    #include <iostream>
    using namespace std;
    
    double Abs(double Nbr)
    {
    	if( Nbr >= 0 )
    		return Nbr;
    	else
    		return -Nbr;
    }
    
    double SquareRoot(double Nbr)
    {
    	double Number = Nbr / 2;
    	const double Tolerance = 1.0e-7;
    
    	do Number = (Number + Nbr / Number) / 2;
    	while( Abs(Number * Number - Nbr) > Tolerance);
    
    	return Number;
    }
    
    int main()
    {
    	double Number:
    	double Nbr    = SquareRoot(Number);
    	
        cin>>Number;
    	cout<< Nbr;
    
    	return 0;
    }

  5. #20
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Well no wonder:
    Code:
    	double Number:
    It should be:
    Code:
    double Number;
    EDIT: And you're using a variable without initializing it, so of course it would hang even if it didn't have any syntax errors.
    EDIT2: And looking at your other code, I think you should start here:
    http://www.cprogramming.com/tutorial/lesson1.html

    And see if you can compile a "hello world" program first. Then go onto making your own programs.
    Last edited by joeprogrammer; 08-17-2006 at 07:21 PM.

  6. #21
    Registered User
    Join Date
    Mar 2005
    Posts
    13
    ok, I did a hello world program (which I have done in the past) and it wont compile, I get the sam eerror, lack or error, and lack of program results as with everything else the poeple have so kindly suggjested.

  7. #22
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Is the output of the build the same? What about on the Dev-C++ compiler?
    If they both refuse, maybe need to reinstall them. Failing that, I would say that maybe something in your OS is corrupt.

  8. #23
    Registered User
    Join Date
    Mar 2005
    Posts
    13
    every time I install the dev-c++, I get this error message when I run it "There dosen't seem to be a GNU Make file PATH in Dec-c++'s Bin path. Please make sure the you have GNU Make and adjust Bin setting or system PATH enviroment veriable and that make setting in Compiler Option contains correct filename, otherwise you will not be able to compile anything." Then the program starts, and I can't compile anything. I had the come up awhile ago, and I forgot what I did to fix it. I have tried reinstalling it. if anybody can find out what is wrong with it, I will give them a cookie.

  9. #24
    User
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    499
    Try installing this:
    http://www.gnu.org/software/make/make.html
    EDIT: sorry, this won't work, it's source code -- I'll try to find a Windows binary for you
    EDIT2: Try this: http://unxutils.sourceforge.net/
    Last edited by joeprogrammer; 08-17-2006 at 08:56 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. [ANN] New script engine (Basic sintax)
    By MKTMK in forum C++ Programming
    Replies: 1
    Last Post: 11-01-2005, 10:28 AM
  2. what are your thoughts on visual basic?
    By orion- in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 09-22-2005, 04:28 AM
  3. visual basic vs C or C++
    By FOOTOO in forum Windows Programming
    Replies: 5
    Last Post: 02-06-2005, 08:41 PM
  4. Basic Calc
    By Universe in forum C++ Programming
    Replies: 12
    Last Post: 07-17-2002, 10:07 PM