User Profile

Collapse

Profile Sidebar

Collapse
Terry Archer
Terry Archer
Last Activity: Feb 6 '11, 02:20 PM
Joined: Feb 2 '11
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • How to fix "C2679: binary '>>' : no operator found" error?

    Error 1 error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion)
    Code:
    #include <iostream>
    #include <fstream>
    #include <iomanip>
    using namespace std;
    
    int main()
    {
        string lastName1, firstName1, lastName2, firstName2, lastName3, firstName3;
        double currentSalary1, currentSalary2, currentSalary3;
    ...
    See more | Go to post
    Last edited by Niheel; Feb 6 '11, 04:22 AM.

  • How to resolve "illegal,left operand has type 'double" error?

    error C2296: '%' : illegal,left operand has type 'double'

    Code:
    #include <iostream>
    #include <fstream>
    #include <iomanip>
    using namespace std;
    
    const int OUNCES_PER_POUND = 16; 
    const double POUNDS_PER_KILOGRAM = 2.2;
    
    int main()
    {
        int Pounds;
    	int Ounces;
    	double Kilograms;
        double totalPounds;
        double totalOunces;
    ...
    See more | Go to post
    Last edited by Niheel; Feb 2 '11, 09:17 PM. Reason: code tags
No activity results to display
Show More
Working...