Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Extract a string from another, C++ Pin
C_Zealot19-May-07 17:14
C_Zealot19-May-07 17:14 
AnswerRe: Extract a string from another, C++ Pin
bob1697219-May-07 20:56
bob1697219-May-07 20:56 
GeneralRe: Extract a string from another, C++ Pin
C_Zealot19-May-07 20:58
C_Zealot19-May-07 20:58 
AnswerRe: Extract a string from another, C++ Pin
Stephen Hewitt20-May-07 15:50
Stephen Hewitt20-May-07 15:50 
QuestionProblem with Pointers at 2D Array p[][2] [modified] Pin
Immunity1819-May-07 13:17
Immunity1819-May-07 13:17 
AnswerRe: Problem with Pointers at 2D Array p[][2] Pin
Immunity1819-May-07 13:25
Immunity1819-May-07 13:25 
GeneralRe: Problem with Pointers at 2D Array p[][2] Pin
bob1697219-May-07 19:59
bob1697219-May-07 19:59 
AnswerRe: Problem with Pointers at 2D Array p[][2] Pin
bob1697219-May-07 21:16
bob1697219-May-07 21:16 
/* This is probably unrelated to your error, but you have a syntax
error in your code snippet. See below...
*/

void new_array(long p[] , int nCount , double *dp[][2])
{
double min , s;
find_values( p,nCount ,&min , &s);


for (int i = 0 ; i < nCount ; i++) {
*dp[i][1] = p[i];

if ( p[i] > min ) {

if ( p[i]*0.85 > min) {
*dp[i][2] = p[i]*0.85 ;
} else {
*dp[i][2] = p[i];
}
} else {

// ****************************************
// *** Your missing a parenthesis below ***
// ****************************************
if (p[i]*1.15 {
*dp[i][2] = p[i]*1.15;
} else {
*dp[i][2] = p[i];
}
}
}
}
GeneralRe: Problem with Pointers at 2D Array p[][2] Pin
Immunity1819-May-07 23:50
Immunity1819-May-07 23:50 
GeneralRe: Problem with Pointers at 2D Array p[][2] Pin
David Crow21-May-07 3:56
David Crow21-May-07 3:56 
QuestionGif me a Lesson in Data types (int string float double) [modified] Pin
Immunity1819-May-07 11:23
Immunity1819-May-07 11:23 
AnswerRe: Gif me a Lesson in Data types (int string float double) Pin
CPallini19-May-07 11:31
mveCPallini19-May-07 11:31 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
Immunity1819-May-07 11:39
Immunity1819-May-07 11:39 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
CPallini19-May-07 12:01
mveCPallini19-May-07 12:01 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
David Crow21-May-07 4:02
David Crow21-May-07 4:02 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
Immunity1819-May-07 11:41
Immunity1819-May-07 11:41 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
CPallini19-May-07 11:59
mveCPallini19-May-07 11:59 
GeneralRe: Gif me a Lesson in Data types (int string float double) Pin
Immunity1819-May-07 12:02
Immunity1819-May-07 12:02 
QuestionRe: Gif me a Lesson in Data types (int string float double) Pin
David Crow21-May-07 4:04
David Crow21-May-07 4:04 
AnswerRe: Gif me a Lesson in Data types (int string float double) Pin
Immunity1821-May-07 10:07
Immunity1821-May-07 10:07 
Questionreturn multiple values from fuction faulse Pin
Immunity1819-May-07 8:54
Immunity1819-May-07 8:54 
AnswerRe: return multiple values from fuction faulse Pin
Star0919-May-07 9:25
Star0919-May-07 9:25 
GeneralRe: return multiple values from fuction faulse Pin
Immunity1819-May-07 9:27
Immunity1819-May-07 9:27 
GeneralRe: return multiple values from fuction faulse Pin
Star0919-May-07 9:48
Star0919-May-07 9:48 
GeneralRe: return multiple values from fuction faulse Pin
CPallini19-May-07 9:53
mveCPallini19-May-07 9:53 

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.