Click here to Skip to main content
15,892,927 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how can i convert CString to int? Pin
Michael Schubert8-Jul-09 3:22
Michael Schubert8-Jul-09 3:22 
GeneralRe: how can i convert CString to int? Pin
CPallini8-Jul-09 3:27
mveCPallini8-Jul-09 3:27 
GeneralRe: how can i convert CString to int? Pin
Michael Schubert7-Jul-09 21:51
Michael Schubert7-Jul-09 21:51 
JokeRe: how can i convert CString to int? Pin
CPallini7-Jul-09 22:31
mveCPallini7-Jul-09 22:31 
GeneralRe: how can i convert CString to int? Pin
Michael Schubert7-Jul-09 23:02
Michael Schubert7-Jul-09 23:02 
JokeRe: how can i convert CString to int? Pin
CPallini8-Jul-09 0:04
mveCPallini8-Jul-09 0:04 
AnswerRe: how can i convert CString to int? Pin
David Crow8-Jul-09 2:45
David Crow8-Jul-09 2:45 
QuestionHow can a referece to integer constant change value in a function? Pin
Member 39743477-Jul-09 19:30
Member 39743477-Jul-09 19:30 
Could someone pls explain the below question?

Q1 : In line1 the second parameter is referece to integer constant.

If so how is the value in 'x' changed to 4

Question:
#include<iostream>

#include<conio.h>

using namespace std;

int mani(int (&arr)[10], const int& x)//Line1
{
for (int i = 0; i < 1; ++i)
arr[i] = arr[i] + x;
return x; //returns 4
}

int main(){
int arr[10] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11};
cout<<mani(arr, arr[0]);
}

AnswerRe: How can a referece to integer constant change value in a function? Pin
Naveen7-Jul-09 19:56
Naveen7-Jul-09 19:56 
AnswerRe: How can a referece to integer constant change value in a function? Pin
clayman877-Jul-09 20:20
clayman877-Jul-09 20:20 
Questionfile open dialog Pin
Member 5903107-Jul-09 18:33
Member 5903107-Jul-09 18:33 
AnswerRe: file open dialog Pin
Chandrasekharan P7-Jul-09 18:48
Chandrasekharan P7-Jul-09 18:48 
GeneralRe: file open dialog Pin
Member 5903107-Jul-09 19:00
Member 5903107-Jul-09 19:00 
QuestionString Parsing in C++ (Simple Question) Pin
ksaw1237-Jul-09 18:32
ksaw1237-Jul-09 18:32 
AnswerRe: String Parsing in C++ (Simple Question) Pin
vipin_nvk7-Jul-09 19:05
vipin_nvk7-Jul-09 19:05 
GeneralRe: String Parsing in C++ (Simple Question) Pin
ksaw1237-Jul-09 19:19
ksaw1237-Jul-09 19:19 
GeneralRe: String Parsing in C++ (Simple Question) Pin
Chandrasekharan P7-Jul-09 19:27
Chandrasekharan P7-Jul-09 19:27 
GeneralRe: String Parsing in C++ (Simple Question) Pin
N a v a n e e t h7-Jul-09 20:19
N a v a n e e t h7-Jul-09 20:19 
AnswerRe: String Parsing in C++ (Simple Question) Pin
PrafullaVedante7-Jul-09 20:25
PrafullaVedante7-Jul-09 20:25 
AnswerRe: String Parsing in C++ (Simple Question) Pin
chandu0047-Jul-09 20:26
chandu0047-Jul-09 20:26 
AnswerRe: String Parsing in C++ (Simple Question) Pin
CPallini7-Jul-09 21:17
mveCPallini7-Jul-09 21:17 
AnswerRe: String Parsing in C++ (Simple Question) Pin
Stuart Dootson7-Jul-09 21:31
professionalStuart Dootson7-Jul-09 21:31 
QuestionRe: String Parsing in C++ (Simple Question) Pin
David Crow8-Jul-09 2:51
David Crow8-Jul-09 2:51 
QuestionMaximum UDP transmit rate is just 50 MB/s and with 100% CPU usage!?? Pin
clayman877-Jul-09 12:20
clayman877-Jul-09 12:20 
QuestionRe: Maximum UDP transmit rate is just 50 MB/s and with 100% CPU usage!?? Pin
harold aptroot7-Jul-09 15:28
harold aptroot7-Jul-09 15:28 

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.