,   CyberForum.ru

++


 
Gygocopter
10 / 10 / 5
: 05.02.2014
: 124
#1

, - C++

10.04.2014, 19:31. 367. 3
( )

C++
1
2
3
4
5
6
7
8
9
char str[]="Kak<dela>rab?";
char *p;
p=str;
for(int i=0;p[i];i++)
p[i]=toupper(p[i]);
cout<<&str[0]<<endl;//    ,     ?      ?
cout<<&p[0]<<endl;//     ...    ...
cout<<&p;//   ,    ?
_getch();
Similar
41792 / 34177 / 6122
: 12.04.2006
: 57,940
10.04.2014, 19:31     ,
:

C++
C++
C++
C++
C++ ++.
C++
C++
C++
C++ ( k, k- k- ; 2) )
C++
. C++
C++



:
.
Croessmah
 C ++
   Croessmah
12537 / 7099 / 797
: 27.09.2012
: 17,521
: 2
: 1
10.04.2014, 19:33     , #2
Gygocopter
// , ?
operator<<
C++
1
&str[0] == & *(str+0)
Gygocopter
?
void*
Gygocopter
// , ?
,
Gygocopter
10 / 10 / 5
: 05.02.2014
: 124
10.04.2014, 19:52  []     , #3
C++
1
2
3
4
int str[]={1,2,3,4,5,6};
int *p;
p=str;
cout<<p;//   ,     (   )?      ?( , - ...)    ,    ,   ?
3 , ( ), , - , , . ?
Croessmah
 C ++
   Croessmah
12537 / 7099 / 797
: 27.09.2012
: 17,521
: 2
: 1
10.04.2014, 20:34     , #4
Gygocopter
// , ( )?

Croessmah
operator<<
operator<<
http://www.cplusplus.com/reference/o...operator-free/
character sequence
Inserts the C-string s into os.
The terminating null character is not inserted into os.
The length of the c-string is determined beforehand (as if calling strlen).
Yandex
10.04.2014, 20:34     ,

: 07:53. GMT +3.
- , ,
-
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
@Mail.ru