Ok heres the errors, now bear in mind that the program WORKS...i get these after i close it.
heres the program code....Code:Loaded 'ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\apphelp.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. The thread 0xE4C has exited with code 0 (0x0). The program 'C:\Program Files\Microsoft Visual Studio\MyProjects\ACIWork1\Debug\ACIWork1.exe' has exited with code 0 (0x0).
Code:/* Steven Billington December 8, 2002 ACIWork1.cpp First assignment from ACI, December 4, 2002. Program uses two ref parameters to multiply an int and a double. */ #include "stdafx.h" #include <iostream.h> #include <iomanip.h> #include <stdlib.h> //for pause /* Prototype function*/ int multiply(int &val1, double &val2); int main(int argc, char* argv[]) { int f_val; double s_val; cout<<"Enter an integer value: "; cin>>f_val; cout<<"Enter a double value: "; cin>>s_val; cout<<setiosflags(ios::fixed | ios::showpoint | ios::right) <<setprecision(2); cout<<"You originally input: \n"; cout<<"\n"<<f_val<<"\t"<<s_val <<endl; cout<<"\nThe product of these two values is: \n"; cout<<"\n"<<multiply(f_val,s_val) <<endl; system("pause"); return 0; } int multiply(int &val1, double &val2) { double product; product = val1 * val2; return product; }



LinkBack URL
About LinkBacks


