Anonymní profil _c_ – Programujte.com
 x   TIP: Přetáhni ikonu na hlavní panel pro připnutí webu

Anonymní profil _c_ – Programujte.comAnonymní profil _c_ – Programujte.com

 

Příspěvky odeslané z IP adresy 85.160.91.–

C / C++ › #pragma once vs #ifndef a #d…
2. 3. 2008   #67613

To Earl Cash : Já taky ne, to až když jsem využil f-ci VS navrhování tříd, tak to tam VS dalo...

Matematika › Úhel dopadu = úhel odrazu -…
2. 3. 2008   #67610

Jak spočítám úhel odrazu, znám-li úhel dopadu(vyjádřený vůči vodorvné rovině) a plochy, od kterých se předmět odráží jsou horizontální nebo vertikální?
Potřeboval bych tytto vědomosti a ve škole jsme se to ještě neučili....

Pokud by to bylo trochu polopaticky – nevadilo by.

C / C++ › desitinné číslo
2. 3. 2008   #67600

1.Nechápu proč máš ve f-ciSoucet urcenou navr.hodnotu int a pretypovavas na double?
2. co znamena

float cin >> a;
?
3 Proč definuješ d jako int a potom jako double?
4.Nechapu vyznam "Reakce",ale možná jsi dal jen útržek kódu..

Upravený kód
#include <iostream>


#include <math.h>

int Soucet(int x, int y)

{

return ((x*x)+(y*y));

}



int main()

{

using std::cout;
using std::cin;
int a, b, c;
cout << "strana a=";
cin >> a;

cout << "strana b=";

cin >> b;

c=Soucet(a,b);

double d = sqrt((double)c);

cout << "x=" << d <<"\n";

cout << "\nKonec...\n\n";

cin.get();

return 0;

}



C / C++ › #pragma once vs #ifndef a #d…
2. 3. 2008   #67597

Aha, děkuji za odpověď. ASi budu používat once....

C / C++ › #pragma once vs #ifndef a #d…
2. 3. 2008   #67590

Co používat? #pragma once nebo #ifndef a #define?
Osobně se mi víc zamlouvá once, ale v žádné literatuře ani na interentu jsem o něm neslyšel...

_c_
C / C++ › Multi-threaded DLL a vector…
2. 3. 2008   #67574
_c_
C / C++ › Multi-threaded DLL a vector…
2. 3. 2008   #67556

EDIt: A DirectX SDk mam

_c_
C / C++ › Multi-threaded DLL a vector…
2. 3. 2008   #67555

Tak jsem si to prostudoval,ale tam pisi,ze se to ma kompilovat ala multi-threaded DLL.Ale ja bych to rad zkompiloval jako Multi-threaded - rad bych se zbavil závislostí na CRT - dle jedne rady zde na programujte.com, myslim, ze primo od vas.

_c_
C / C++ › Multi-threaded DLL a vector…
2. 3. 2008   #67525

Snazim se prekompilovat SDL na Multi-threaded.Avsak pri kompilaci dostanu chyby v knihovne cstdio,mktera by podle me mela byt bez chyb

2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(39) : error C2143: syntax error : missing '{' before ':'

2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(39) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(41) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2143: syntax error : missing '{' before ':'
1>SDL_yuv_sw.c
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(42) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(43) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(44) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(45) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(46) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(47) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(48) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(49) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(49) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(49) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(49) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(50) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(50) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(50) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(50) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(51) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(52) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(53) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(54) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(55) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(56) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstdio(56) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2143: syntax error : missing '{' before ':'
1>SDL_yuv.c
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(19) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : error C2059: syntax error : ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : error C2143: syntax error : missing '{' before ':'
2>D:\Program Files\Microsoft Visual Studio 9.0\VC\include\cstring(21) : fatal error C1003: error count exceeds 100; stopping compilation


Nepomohl by nekdo?

C / C++ › Výměna kompilátoru u VS 9.0…
2. 3. 2008   #67522

Nevím, co dělám špatně, ale asi tak po 20 zkompilováních mi můj program začne hlásit, že se nepodařilo najít MSVCR90.dll - přitom ji mám..Ale stačí založit nový projekt, vložit do něj existující soubory azase můžu 20x kompilovat....

 

 

Hostujeme u Českého hostingu       ISSN 1801-1586       ⇡ Nahoru Webtea.cz logo © 20032024 Programujte.com
Zasadilo a pěstuje Webtea.cz, šéfredaktor Lukáš Churý