wskazniki i tablice wielowymiarowe

wskazniki i tablice wielowymiarowe



oo WYZNACZNIKI2 (Running) - Microsoft Visual Studio (Administrator)

File Edit View Project

Build Debug Team Data Tools Architecture Test Analyze Window Help

i 9\

Si | *^ ” V Release - Win32

wskaznik2

: ^3 % ^3 A- ni l w

w '3 2 I □ Q ^ i > jj j j | s> 'i i ri

Hex -% l3 "■ v

• Process:

’ Thread: ~ ^ ^ Stack Frame:

▼ |


WYZNACZNIK32.cpp X

(Global Scope)

~ | v _tmain(int argc, _TCHAR * argv[])

3

24

25

26

27

28


*


$ So today is... Google


lueshirtstudio Customized Web Seifi


Pokaż źródło’ JL Ustawienia’


Wskaźni... x

it


02


%

*


void gotoxy(int x, int y);

std::ostream& (_cdecl kol)(void* str,int i);

std::ostream& (_cdecl kol)(char* str,int i);

std::ostream& (_cdecl kol)(int str,int i);

29r std::ostream& (_cdecl kol2)(double str,int i);

301

31 void funk2(double wskaznik[l][3]);


32


33 Eint _tmain(int argc, _TCHAR* argv[])


34

35

36

37

38

39

40    |

41

42

43

44

45

46

47

48

49 50|

51

52    I


53    |

54

55

56    |

57

58

59    |

60 611 62 63 I


641 65


E) C:\Users\rewertyn\documents\visual studio 2010\Projects\WYZNACZNIK32\Release\WYZNACZNIKI2.


1.21    3.^8    7.75

1.72 3.8625 8.056 5.29    6.5<»    10.198

U.98 13.8075 16.012


0021F818    0021F820    0021F828

0021F830    0021F838    0021F8WJ

0021 F8^»8    0021F850    0021F858

0021F860    0021F868    0021F870


0021F818

0021F830

0021F848

0021F860


exe


0021F818

0021F878


{


double tablica[4][3]={0}j //nasz wskaźnik

for(int i=0;i<4;i++){for(int j=0;j<3;j++){tablica[i][j]=i*i*i*l.53/(j+3.0f)+j*j+1.27*j+1.21;}}


kol("przed: tablica [i] [j]    ",4),kol("| ",2),kol(" &tablica[i][j]",4),kol(”    |",2),kol (" &tablica[i]”,4),kol(”

for(int i=0;i<4;i++){for(int j=0;j<3;j++){cout.width(5),kol2(tablica[i][j],3)«" ";}kol("    ,",2)<<endl;}

cout<<endlj

for(int i=0;i<4;i++){for(int j=0;j<3;j++){cout.width(5)>gotoxy(25+j*10,2+i),kol(&tablica[i][j],8)<<" ";}kol(" , ",2)<<endl;} cout<<endlj

for(int i=0;i<4;i++){for(int j=0;j<l;j++){cout.width(5),gotoxy(57+j*10,2+i),kol(&tablica[i],15)<<" }kol(" ,",2)<<endl;} cout<<endl;

for(int i=0;i<2;i++){for(int j=0;j<l;j++){cout.width(5),gotoxy(72+j*10,2+i),kol(&tablica+i,7)<<" }cout<<endl;} gotoxy(l,7);


//double tablica[4][3]={0}j //wskaźnik typu tablica

funk2(&tablica[0]); //przekazanie adresdu tablica[4][3] do wskaźnika : void funk2(double wskaznik[l][3]);


kol("po: tablica[i][j] ",4),kol("| ",2),kol(" &tablica[i][j]",4),kol("    |”,2),kol(” &tablica[i]",4),kol("

for(int i=0;i<4;i++){for(int j=0;j<3;j++){cout.width(5),kol2(tablica[i][j],3)«" ";}kol("    ,",2)<<endl;}

cout<<endl;

for(int i=0;i<4;i++){for(int j=0;j<3;j++){cout.width(5),gotoxy(25+j*10,ll+i),kol(&tablica[i][j]>8)<<" ";}kol(" , ",2)<<endl;} cout<<endl;

for(int i=0;i<4;i++){for(int j=0;j<l;j++){cout.width(5),gotoxy(57+j*10,ll+i),kol(&tablica[i],15)<<" }kol(" ,",2)<<endl;} cout<<endlj

for(int i=0;i<2;i++){for(int j=0;j<l;j++){cout.width(5),gotoxy(72+j*10,ll+i),kol(&tablica+i,7)<<" ”j}cout<<endl;} gotoxy(l,16);


____A.__/ '» - .


-12.216 -12.216 -12.216 0021F818 -12.216 -12.216 -12.216 0021F830 -12.216 -12.216 -12.216 0021F8<»8 -12.216 -12.216 -12.216 0021F860


0021F820    0021F828

0021F838    0 0 21F 8 40

0021F850    0021F858

0021F868    0021F870


0021F818

0021F830

0021F848

0021F860


0021F818

0021F878


Aby kontynuować, naciśnij dowolny klawisz



Wyszukiwarka

Podobne podstrony:
OO BlueYonder-NoShaiePoint - Microsoft Yrsual Studio (Administrator) File Edit View Project Build De
f1 2 śSj Project2 - Microsoft Visual Basic [design] File Edit View Project Format Debug Run lools Ad
f1 6 śSj Project2 - Microsoft Visual Basic [design] File Edit View Project Format Debug Run lools Ad
f6 1 śSj Projectl - Microsoft Visual Basic [run] File Edit View Project Format Debug Run lools Add
f6 2 śSj Projectl - Microsoft Visual Basic [run] File Edit View Project Format Debug Run lools Add
f6 1 śSj Projectl - Microsoft Visual Basic [run] File Edit View Project Format Debug Run lools Add
f6 2 śSj Projectl - Microsoft Visual Basic [run] File Edit View Project Format Debug Run lools Add
BJ Compilerlntegration - Microsoft VisuaIC++ 2010 Express (Administrator) File Edit View Project Bui
* Taxation - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Architecture Test
Bez tytułu(2) iloczyn - Microsoft Visual Studio File Edit View Project Build Debug Tools Test Window
HelloWorld - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Test Analyze Wind
* DataBaseFunctionalTests - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Ar
Help * DataBaseFunctionalTests - Microsoft Visual Studio File Edit View Project Build Debug Team Too
* DatabaseFunctionalTests - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Ar
* DatabaseFunctionalTests - Microsoft Visual Studio Analyze Window Help File Edit View Project Build
* DatabaseFunctionalTests - Microsoft Visual Studio File Edit View Project Build Debug Team SQL Tool
* DatabaseFunctionalTests - Microsoft Visual Studio File Edit View Project Build Debug Team SQL Tool

więcej podobnych podstron