잡담

에러도안뜨고경고도안뜨는데 이건무슨경우

by ツッコミ posted Mar 01, 2010
?

단축키

Prev이전 문서

Next다음 문서

ESC닫기

크게 작게 위로 아래로 댓글로 가기 인쇄

어셈블리인포

#include "stdafx.h"

using namespace System;
using namespace System::Reflection;
using namespace System::Runtime::CompilerServices;
using namespace System::Runtime::InteropServices;
using namespace System::Security::Permissions;

[assembly:AssemblyTitleAttribute("비만인지알아보기0.5ver")];
[assembly:AssemblyDescriptionAttribute("")];
[assembly:AssemblyConfigurationAttribute("")];
[assembly:AssemblyCompanyAttribute("")];
[assembly:AssemblyProductAttribute("우앙")];
[assembly:AssemblyCopyrightAttribute("Copyright (c)  2010")];
[assembly:AssemblyTrademarkAttribute("")];
[assembly:AssemblyCultureAttribute("")];

 

[assembly:AssemblyVersionAttribute("1.0.*")];

[assembly:ComVisible(false)];

[assembly:CLSCompliantAttribute(true)];

[assembly:SecurityPermission(SecurityAction::RequestMinimum, UnmanagedCode = true)];

주 프로그램소스

#include "stdafx.h"
#include "Form1.h"
#include "iostream"
using namespace 우앙;
using namespace std;

typedef unsigned short USHORT ;
[STAThreadAttribute]
int main(array<System::String ^> ^args)
{
 
 Application::EnableVisualStyles();
 Application::SetCompatibleTextRenderingDefault(false);

 
 Application::Run(gcnew Form1());

 cout<<"********************************************************************************";
 printf("tt비만인지 알아보는시스템 ver 0.1 test by 배추벌레nnnnn");
 cout<<"********************************************************************************";

 USHORT name=0;
 USHORT Yname;//대입값
 double weight=0;
 double Yweight;//대입값
 double high=0;
 double Yhigh;//대입값
 double fat;

 cout<<"당신의 나이를 입력하세요.";
  cin >> name;

 Yname=name;
 if (name == Yname)
  cout <<"n";
 cout << "당신의 나이: "<<Yname<<"nn";

 cout <<"당신의 몸무게를 kg단위로 숫자만 입력해주세요(예:60kg >> 60): ";
   
  cin >> weight;
  Yweight = weight;

  cout << "당신의 몸무게 :"<<Yweight<<"nn";

  cout <<"키를 m단위로 숫자만 입력해주세요(예:175cm>>1.75): ";

  cin >> high;
   Yhigh = high ;
  
  cout << "당신의 키:"<<Yhigh <<"nn";

  cout << "잠시만기다려주세요.nn";

  fat = Yweight / Yhigh / Yhigh;//비만지수계산

   cout <<"당신의 비만지수:"<<fat<<"nnn";


   cout <<" ┌─────┬────────┐n";
   cout <<" │저체중    │20미만t       │n";
   cout <<" │정상      │20~24t       │n";
   cout <<" │과체중    │25~29t       │n";
   cout <<" │비만      │30이상t       │n";
   cout <<" └─────┴────────┘n";
   cout <<"위 표를보고 체크해주세요!nnn";

 

 return 0;
}

stdafax헤더 cpp

#include "stdafx.h"

 

Form 헤더

 

aloowdrop false

autovalidate enablepreventfocuschange

contextmenustrip (null)

doublebuffered false

enabled true

imemode nocontrol

language Korean

lacalizable true

locked true

 

autoscalemode font

autoscroll false

autoscrollmargin 0,0

autoscrollminsize 0,0

autosize true

location 0,0

maximumsize 0,0

minimumsize 0,0

 

padding 0,0,0,0

size 542,462

startposition windowsdefaultlocation

windowstate normal

 

backcoler control

backgraoundimage (null)

cursor default

font 굴림,9pt

forecolor controltext

righttoleft no

formborderstyle sizable

righttoleftlayout false

text 비만인지알아보기

usewait cursor false

 

accessibledescription (null)

accessiblename (null)

accessiblerole default

 

controlbox true

helpbutton false

icon true

ismdicontainer false

mainmenustrip (null)

maxmizuembox true

minimizebox true

opacity 100%

showicon true

showintaskbar true

sizegripstyle auto

topmost false

transparencykey white

 

causesvalidation true

 

stdafx 헤더

#pragma once

 

 

실행하면

제목 없음.JPG 

이거밖에안뜸 슈ㅣ바뮤

 

마 머때무네이러능

왜 에러도안뜨고 경고도안뜨는데 메인이 씹히는거야