Click here to Skip to main content
15,923,376 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuestion about enum in C/C++ Pin
George223-Sep-03 1:48
George223-Sep-03 1:48 
GeneralRe: Question about enum in C/C++ Pin
567890123423-Sep-03 3:22
567890123423-Sep-03 3:22 
GeneralRe: Question about enum in C/C++ Pin
George223-Sep-03 16:51
George223-Sep-03 16:51 
GeneralRe: Question about enum in C/C++ Pin
Mike Dimmick23-Sep-03 4:03
Mike Dimmick23-Sep-03 4:03 
GeneralRe: Question about enum in C/C++ Pin
George223-Sep-03 16:49
George223-Sep-03 16:49 
GeneralRe: Question about enum in C/C++ Pin
Mike Dimmick24-Sep-03 9:11
Mike Dimmick24-Sep-03 9:11 
GeneralRe: Question about enum in C/C++ Pin
George224-Sep-03 22:05
George224-Sep-03 22:05 
GeneralVectors Pin
bhangie23-Sep-03 0:56
bhangie23-Sep-03 0:56 
Hi there
I create a vector of size(10)
using a for loop to insert values into the vector
for(int i = 0; i < 10; ++i)<br />
 v.push_back(i + 0.1);<br />
<br />
//Display<br />
for(int i = 0; i < 10; ++i)<br />
 cout << v[i] << "\n";


Only display zero's on screen, When i dont put in an initial size the vector diplays what i want.
is it possible and to use v.size() rather than 10
in the for loops, but also displays zero's and warings
at compile time.
Am i doing something wrong!
Help!Big Grin | :-D

Regards bhangie
GeneralRe: Vectors Pin
YaronNir23-Sep-03 0:58
YaronNir23-Sep-03 0:58 
GeneralRe: Vectors Pin
jhwurmbach23-Sep-03 1:26
jhwurmbach23-Sep-03 1:26 
GeneralRe: Vectors Pin
bhangie23-Sep-03 1:31
bhangie23-Sep-03 1:31 
GeneralRe: Vectors Pin
bhangie23-Sep-03 1:36
bhangie23-Sep-03 1:36 
GeneralRe: Vectors Pin
jhwurmbach23-Sep-03 1:48
jhwurmbach23-Sep-03 1:48 
GeneralIcon sizing problem Pin
YaronNir23-Sep-03 0:56
YaronNir23-Sep-03 0:56 
GeneralRe: Icon sizing problem Pin
RobJones23-Sep-03 6:05
RobJones23-Sep-03 6:05 
GeneralRe: Icon sizing problem Pin
YaronNir23-Sep-03 6:11
YaronNir23-Sep-03 6:11 
GeneralRe: Icon sizing problem Pin
RobJones23-Sep-03 7:10
RobJones23-Sep-03 7:10 
GeneralChanging the DC's offset Pin
Zizilamoroso23-Sep-03 0:28
Zizilamoroso23-Sep-03 0:28 
GeneralRe: Changing the DC's offset Pin
vcplusplus23-Sep-03 3:14
vcplusplus23-Sep-03 3:14 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso23-Sep-03 3:29
Zizilamoroso23-Sep-03 3:29 
GeneralRe: Changing the DC's offset Pin
vcplusplus23-Sep-03 7:21
vcplusplus23-Sep-03 7:21 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso24-Sep-03 0:08
Zizilamoroso24-Sep-03 0:08 
GeneralRe: Changing the DC's offset Pin
vcplusplus24-Sep-03 1:56
vcplusplus24-Sep-03 1:56 
GeneralRe: Changing the DC's offset Pin
Zizilamoroso24-Sep-03 5:25
Zizilamoroso24-Sep-03 5:25 
GeneralSAS Window: Winlogon.exe Application error. Pin
rohit.dhamija22-Sep-03 23:42
rohit.dhamija22-Sep-03 23:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.