Click here to Skip to main content
16,008,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
With
std::vector< double > v(10);
you create a vector of 10 elements with the value of 0.0
Later, with
v.push_back()
you add elements at the end of the vector.
When you display the first 10 items of the vector, you only show the zeros inserted at construction.
When you let your loop run to v.size(), (make i an unsigned int, or better still, std::vector< double >::size_type) it should display all you did put into the vector.

Hope this did clear things up for you



Who is 'General Failure'? And why is he reading my harddisk?!?
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 
GeneralRe: SAS Window: Winlogon.exe Application error. Pin
Mike Dimmick23-Sep-03 0:39
Mike Dimmick23-Sep-03 0:39 
GeneralRe: SAS Window: Winlogon.exe Application error. Pin
rohit.dhamija23-Sep-03 0:58
rohit.dhamija23-Sep-03 0:58 

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.