0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
||||||
1 | ||||||
Описать структуру STUDENT29.10.2009, 18:49. Показов 8375. Ответов 78
Метки student, student c++, описать структуру, описать структуру c++, описать структуру student c++, описать структуру student, описать структуру с именем student, структура student, структура student c++, структуры данных, структуры данных c++ (Все метки)
Помогите с программой плз
Не работает почему-то
0
|
29.10.2009, 18:49 | |
Ответы с готовыми решениями:
78
Описать структуру STUDENT Описать структуру Student Описать структуру Student Описать структуру Student |
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 18:59 [ТС] | 3 |
1>------ Build started: Project: 123, Configuration: Debug Win32 ------
1>Compiling... 1>stdafx.cpp 1>Compiling... 1>AssemblyInfo.cpp 1>123.cpp 1>.\123.cpp(6) : warning C4627: '#include <iostream.h>': skipped when looking for precompiled header use 1> Add directive to 'stdafx.h' or rebuild precompiled header 1>.\123.cpp(7) : warning C4627: '#include <string.h>': skipped when looking for precompiled header use 1> Add directive to 'stdafx.h' or rebuild precompiled header 1>.\123.cpp(8) : warning C4627: '#include <stdlib.h>': skipped when looking for precompiled header use 1> Add directive to 'stdafx.h' or rebuild precompiled header 1>.\123.cpp(9) : warning C4627: '#include <stdio.h>': skipped when looking for precompiled header use 1> Add directive to 'stdafx.h' or rebuild precompiled header 1>.\123.cpp(59) : fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source? 1>Generating Code... 1>Build log was saved at "file://c:\Users\1\Documents\Visual Studio 2008\Projects\123\123\Debug\BuildLog.htm" 1>123 - 1 error(s), 4 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== это пишет...
0
|
эволюционирую потихоньку
468 / 466 / 91
Регистрация: 30.06.2009
Сообщений: 1,401
|
|
29.10.2009, 19:09 | 4 |
он же тебе пишет: А ты не забыл добавить #include "stdafx.h" ?
Добавлено через 54 секунды хотя у меня и без него всё скомпилилось
0
|
эволюционирую потихоньку
468 / 466 / 91
Регистрация: 30.06.2009
Сообщений: 1,401
|
|
29.10.2009, 19:13 | 6 |
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 19:14 [ТС] | 7 |
Да я увидел=) спс, теперь опять какая-то гадость прёт(
1>.\123.cpp(12) : fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory Мб у меня библиотеки какиеть не стоят? у мну стандартная версия с++ скачанная с микрософта
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 19:19 [ТС] | 9 |
Сообщение от
[B 1>.\123.cpp(36) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(36) : error C2065: 'cin' : undeclared identifier 1>.\123.cpp(37) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(37) : error C2065: 'cin' : undeclared identifier 1>.\123.сpp(38) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(38) : error C2065: 'cin' : undeclared identifier 1>.\123.cpp(41) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(42) : error C2065: 'cin' : undeclared identifier 1>.\123.cpp(51) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(52) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(53) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(58) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(59) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(59) : error C2065: 'endl' : undeclared identifier 1>.\123.cpp(62) : error C2065: 'cout' : undeclared identifier 1>.\123.cpp(62) : error C2065: 'endl' : undeclared identifier я с этой прогой повешусь(
0
|
эволюционирую потихоньку
468 / 466 / 91
Регистрация: 30.06.2009
Сообщений: 1,401
|
||||||
29.10.2009, 19:23 | 11 | |||||
теперь добавляй после библиотек using namespace std;
не повесишься, у тебя ещё в переди много будет от чего стреляться и вешаться, так что успеешь. вот попробуй мой вариант
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 19:30 [ТС] | 13 |
TanT с вашим вариантом выдает это:
123>1.obj : error LNK2028: unresolved token (0A0002CB) "extern "C" int __stdcall CharToOemA(char const *,char *)" (?CharToOemA@@$$J18YGHPBDPAD@Z) referenced in function "char * __cdecl Rus(char *)" (?Rus@@$$FYAPADPAD@Z) 123>1.obj : error LNK2019: unresolved external symbol "extern "C" int __stdcall CharToOemA(char const *,char *)" (?CharToOemA@@$$J18YGHPBDPAD@Z) referenced in function "char * __cdecl Rus(char *)" (?Rus@@$$FYAPADPAD@Z) 123>C:\Users\1\Documents\Visual Studio 2008\Projects\1\Debug\1.exe : fatal error LNK1120: 2 unresolved externals это он типо русский не понимает?
0
|
эволюционирую потихоньку
468 / 466 / 91
Регистрация: 30.06.2009
Сообщений: 1,401
|
|
29.10.2009, 19:41 | 14 |
н-да, не понимает. а чего у нас за компилятор?
Добавлено через 1 минуту в твоём варианте вообще только описание функции было, а самой функции я не увидел.
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 19:53 [ТС] | 15 |
а строка set locate(LC_ALL, "Russian"); поможет?
Добавлено через 8 минут блин я смотрю как вы быстро подбираете варианты исправленя ошибок и понимаю что я совсем не шарю в программировании=)
0
|
эволюционирую потихоньку
468 / 466 / 91
Регистрация: 30.06.2009
Сообщений: 1,401
|
|
29.10.2009, 19:59 | 16 |
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
||||||
29.10.2009, 20:09 [ТС] | 18 | |||||
так ради интереса вставил строку set locate
1>.\123.cpp(15) : error C2146: syntax error : missing ';' before identifier 'locate' 1>.\123.cpp(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>.\123.cpp(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 1>.\123.cpp(15) : error C2078: too many initializers 1>.\123.cpp(15) : error C2440: 'initializing' : cannot convert from 'const char [8]' to 'int' 1> There is no context in which this conversion is possible теперь то в чём дело? Добавлено через 1 минуту Поверь мне я совершаю их гораздо больше=) причём не в силах понять откуда они Добавлено через 1 минуту недумаю что из менят продвинутый прогер получится с такими проблемами в ОАП=)
0
|
1183 / 468 / 87
Регистрация: 23.06.2009
Сообщений: 6,390
|
|
29.10.2009, 20:11 | 19 |
Код
// установить вручную шрифт Lucida Console в свойствах окна консоли // и запомнить это для всех окон с этим именем // записать в начале программы строку #include <windows.h> // записать в начале функции main ( после строки с символом { ) // две следующих строки SetConsoleCP(1251); SetConsoleOutputCP(1251); Добавлено через 1 минуту кто знает,может завтра училок рвать будешь а для этого нужно каждую строчку,каждое слово,каждый символ книг тщательно понять
0
|
0 / 0 / 0
Регистрация: 26.05.2009
Сообщений: 50
|
|
29.10.2009, 20:12 [ТС] | 20 |
0
|
29.10.2009, 20:12 | |
29.10.2009, 20:12 | |
Помогаю со студенческими работами здесь
20
Описать структуру STUDENT Описать структуру Student Описать структуру с именем STUDENT Описать структуру с именем student Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |