User Profile

Collapse

Profile Sidebar

Collapse
Clement Lo
Clement Lo
Last Activity: Apr 24 '11, 10:36 AM
Joined: Apr 9 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Clement Lo
    replied to Error occur in programming C++ language
    in C
    I added std:: But there is another error message popped up.

    Code:
    #include <iostream>
    using namespace std;
    
    #include <math.h>
    
    int main(void)
    {
    	//define variables
    	float num1;
    	float num2;
    
    	//enter data for the variables
    	std::cout << "Enter a value for the first variable: ";
    	std::cin >> num1;
    	std::cout << "Enter
    ...
    See more | Go to post
    Last edited by Banfa; Apr 27 '11, 08:20 AM. Reason: Added [code]...[/code] tags round the code, please use them in future.

    Leave a comment:


  • Clement Lo
    started a topic Error occur in programming C++ language
    in C

    Error occur in programming C++ language

    I am beginner in C++ language programming and using Microsoft Visual 2010.

    The simple code I wrote myself as follow:
    Code:
    // Hello world.cpp : main project file.
    
    #include "stdafx.h"
    
    #include "iostream"
    
    using namespace System;
    
    int main(array<System::String ^> ^args)
    {
        //define variables
    	float num1;
    	float num2;
    	float total;
    ...
    See more | Go to post
    Last edited by Banfa; Apr 27 '11, 08:20 AM. Reason: Added [code]...[/code] tags round the code, please use them in future.
No activity results to display
Show More
Working...