vs2010编译C++ 状态标志

// CTest.cpp : 定义控制台应用程序的入口点。
//

#include "stdafx.h"
#include <iostream>
#include <string.h>
#include <stdio.h>
using namespace std;

//class str{
//private:
//    char s[80];
//public:
//    str(char c[]){
//        strcpy(s,c);
//    }
//    str(){
//    }
//    str operator +(str c){//将运算符+号重载为成员函数
//        strcat(s,c.s);
//        return *this;
//    }
//    void display(){
//        cout<<s<<endl;
//    }
//};

int _tmain(int argc, _TCHAR* argv[])
{
    //设置精度
    cout.setf(ios::showpos); //整数前面加 +
    cout.setf(ios::scientific);//用科学计数法输出实数
    cout<<128<<" "<<123.45<<endl;
    system("pause");
    return 0;
}
原文地址:https://www.cnblogs.com/bksqmy/p/4524410.html