| ÍøÕ¾Ê×Ò³ | Òµ½çÐÂÎÅ | С×é | Íþ¿Í | È˲Š| ÏÂÔØƵµÀ | ²©¿Í | ´úÂëÌù | ÔÚÏß±à³Ì | ±à³ÌÂÛ̳
»¶Ó­¼ÓÈëÎÒÃÇ£¬Ò»Í¬Çд輼Êõ
Óû§Ãû£º   
 
ÃÜ¡¡Â룺  
¹²ÓÐ 616 È˹Ø×¢¹ý±¾Ìû
±êÌ⣺Îұ಻ÁË£¬Äĸö´í£¬°ÝÍиßÊÖ°ïæ¸ÄÕý
Ö»¿´Â¥Ö÷ ¼ÓÈëÊÕ²Ø
hujihong520
Rank: 1
À´¡¡×Ô£ºÄϾ©
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º23
ר¼Ò·Ö£º0
×¢¡¡²á£º2013-9-7
½áÌûÂÊ£º66.67%
ÊÕ²Ø
 ÎÊÌâµãÊý£º0 »Ø¸´´ÎÊý£º7 
Îұ಻ÁË£¬Äĸö´í£¬°ÝÍиßÊÖ°ïæ¸ÄÕý
#include<iostream>
using namwspace std;
int main()
{
    double a,b,c;
    char x,y,z;
    cout<<"ÇëÊäÈë¿ÆÄ¿£º";
    cin>>x>>y>>z;
    cout<<"ÇëÊäÈë¶ÔÓ¦³É¼¨£º";
    cin>>a>>b>>c;
    cout<<endl;
    cout<<"        ³É¼¨µ¥       "<<endl;
    cout<<"-------------------- "<<endl;
    cout<<"x"<<"y"<<"z"<<endl:
    cout<<"|"<<setiosflangs(ios::fixed)<<setiosflangs(ios::right)<<setprectsion(7)<<setw(2)<<"a"<<"|"<<"b"<<"|"<<"c"<<endl;
    cout<<"-------------------- "<<endl;
}
ËÑË÷¸ü¶àÏà¹ØÖ÷ÌâµÄÌû×Ó: double¡¡
2013-10-11 15:56
rjsp
Rank: 20Rank: 20Rank: 20Rank: 20Rank: 20
µÈ¡¡¼¶£º°æÖ÷
Íþ¡¡Íû£º528
Ìû¡¡×Ó£º9025
ר¼Ò·Ö£º54030
×¢¡¡²á£º2011-1-18
ÊÕ²Ø
µÃ·Ö:0 
ÄãÓ¦¸ÃÕâôÎÊ£º
using namwspace std; ÕâÐбàÒëÆ÷±¨´íΪ£ºsyntax error : missing ';' before identifier 'std'£¬'namwspace' : symbol cannot be used in a using-declaration

±ðÈ˾ͻáÁ¢¼´¿´³öÄã°Ñ namespace ƴд´íÁË
2013-10-11 16:05
hujihong520
Rank: 1
À´¡¡×Ô£ºÄϾ©
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º23
ר¼Ò·Ö£º0
×¢¡¡²á£º2013-9-7
ÊÕ²Ø
µÃ·Ö:0 
ÎÒÇó¼±Ó㬿ì¸ø´ð°¸°¡
2013-10-11 16:06
hujihong520
Rank: 1
À´¡¡×Ô£ºÄϾ©
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º23
ר¼Ò·Ö£º0
×¢¡¡²á£º2013-9-7
ÊÕ²Ø
µÃ·Ö:0 
回å? 2æ¥
求具体答案
2013-10-11 16:22
hujihong520
Rank: 1
À´¡¡×Ô£ºÄϾ©
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º23
ר¼Ò·Ö£º0
×¢¡¡²á£º2013-9-7
ÊÕ²Ø
µÃ·Ö:0 
#include<iostream>
using namespace std;
int main()
{
    double a,b,c;
    char x,y,z;
    cout<<"ÇëÊäÈë¿ÆÄ¿£º"<<endl;
    cin>>x>>y>>z;
    cout<<"ÇëÊäÈë¶ÔÓ¦³É¼¨£º"<<endl;
    cin>>a>>b>>c;
    cout<<endl;
    cout<<"        ³É¼¨µ¥       "<<endl;
    cout<<"-------------------- "<<endl;
    cout<<"|"<<"x"<<"|"<<"y"<<"|"<<"z"<<"|"<<endl;
    cout<<"|"<<setiosflangs(ios::fixed)<<setiosflangs(ios::right)<<setprectsion(7)<<setw(2)<<"a"<<"|"<<"b"<<"|"<<"c"<<endl;
    cout<<"-------------------- "<<endl;
    return 0;
}
ÉÏÃæÎÒ¸ÄÁË£¬ÈÔÈ»±à²»ÁË£¬ÎªºÎ£¿°ÝÍиßÊÖ°ï½â¾ö°¡
2013-10-11 16:24
Çóѧ²ËÄñ1
Rank: 1
µÈ¡¡¼¶£ºÐÂÊÖÉÏ·
Ìû¡¡×Ó£º7
ר¼Ò·Ö£º9
×¢¡¡²á£º2013-9-21
ÊÕ²Ø
µÃ·Ö:0 
Â¥Ö÷ÄãҲ̫´ÖÐÄÁË°É£¬Õâô¶àƴд´íÎó¡£Çë×¢ÒâÊÇsetiosflags.»¹ÓÐsetprecision.
#include<iostream>
#include<iomanip>
using namespace std;
int main()
{
    double a,b,c;
    char x,y,z;
    cout<<"ÇëÊäÈë¿ÆÄ¿£º"<<endl;
    cin>>x>>y>>z;
    cout<<"ÇëÊäÈë¶ÔÓ¦³É¼¨£º"<<endl;
    cin>>a>>b>>c;
    cout<<endl;
    cout<<"        ³É¼¨µ¥       "<<endl;
    cout<<"-------------------- "<<endl;
    cout<<"|"<<"x"<<"|"<<"y"<<"|"<<"z"<<"|"<<endl;
    cout<<"|"<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(7)<<setw(2)<<"a"<<"|"<<"b"<<"|"<<"c"<<endl;
    cout<<"-------------------- "<<endl;
    return 0;
}
2013-10-11 21:53
ITÄÐyear
Rank: 3Rank: 3
µÈ¡¡¼¶£ºÂÛ̳ÓÎÏÀ
Íþ¡¡Íû£º1
Ìû¡¡×Ó£º82
ר¼Ò·Ö£º106
×¢¡¡²á£º2013-6-9
ÊÕ²Ø
µÃ·Ö:0 
#include<iostream>
#include<string>
#include<iomanip>
using namespace std;
int main()
{
     double a,b,c;
     string x,y,z;
     cout<<"ÇëÊäÈë¿ÆÄ¿£º";
     cin>>x>>y>>z;
     cout<<"ÇëÊäÈë¶ÔÓ¦³É¼¨£º";
     cin>>a>>b>>c;
     cout<<endl;
     cout<<"        ³É¼¨µ¥       "<<endl;
     cout<<"-------------------- "<<endl;
     cout<<"  "<<x<<"  "<<y<<"  "<<z<<endl;
     cout<<"  "<<setiosflags(ios::fixed)<<setiosflags(ios::right)<<setprecision(2)<<setw(2)<<a<<"  "<<b<<"  "<<c<<endl;
     cout<<"-------------------- "<<endl;
     return 0;
}
ÊÕµ½µÄÏÊ»¨
  • hujihong520 ÓÚ 2013-10-12 13:03 ËÍÏÊ»¨  1¶ä   ¸½ÑÔ£ºÎÒºÜÔÞͬ
2013-10-12 08:44
a462410594
Rank: 2
µÈ¡¡¼¶£ºÂÛ̳ÓÎÃñ
Ìû¡¡×Ó£º75
ר¼Ò·Ö£º64
×¢¡¡²á£º2011-11-17
ÊÕ²Ø
µÃ·Ö:0 
ÎÒÒ²ÕýÔÚѧc++¡£ÓõÄÊÇvs 2008µÄ£¬±àÒëÓдíʱ£¬ÊÇÒÔÖÐÎÄÀ´ÌáʾµÄ£¬·½±ãºÜ¶à£¬½¨ÒéÄãÒ²ÓÃÓÃ
2013-10-12 16:53
¿ìËٻظ´£ºÎұ಻ÁË£¬Äĸö´í£¬°ÝÍиßÊÖ°ïæ¸ÄÕý
Êý¾Ý¼ÓÔØÖÐ...
 
¡¡¡¡¡¡



¹ØÓÚÎÒÃÇ | ¹ã¸æºÏ×÷ | ±à³ÌÖйú | Çå³ýCookies | TOP | ÊÖ»ú°æ

±à³ÌÖйú °æȨËùÓУ¬²¢±£ÁôËùÓÐȨÀû¡£
Powered by Discuz, Processed in 0.029956 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved