PDA

View Full Version : đây là lỗi gì trong cài đặt c++?


hoangtuthuychung2730
12-04-2010, 12:00 PM
đây là em viết:
#include "stdafx.h"


int _tmain(int argc, _TCHAR* argv[])
{
printf("helloo word");
return 0;
}
còn đây là lỗi:
1>------ Build started: Project: vinhdatinh, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>vinhdatinh.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Users\Admin\Documents\Visual Studio 2008\Projects\vinhdatinh\vinhdatinh\Debu…
1>vinhdatinh - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

đứa trẻ cát
15-04-2010, 09:30 AM
đây là em viết:
#include "stdafx.h"

int _tmain(int argc, _TCHAR* argv[])
{
printf("helloo word");
return 0;
}Sao bạn không làm trên emty project? Nhập đơn giản thôi mà bạn, mình dùng C++ 6.0, theo mình thì viết thế này:
#include<stdio.h>

int main(int argc, char* argv[])
{
printf("helloo word");
return 0;
}
1>------ Build started: Project: vinhdatinh, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>vinhdatinh.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Users\Admin\Documents\Visual Studio 2008\Projects\vinhdatinh\vinhdatinh\Debu…
1>vinhdatinh - 0 error(s), 0 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========Đoạn này sao giống nội dung cửa sổ Output trong C++ 9.0 vậy nhỉ? :-?

Mà nó bảo là chương trình không lỗi mà bạn. :|