15,965,983 members
Home / Discussions / C / C++ / MFC

# C / C++ / MFC

 resize image bitmap ????(VC++) aa_zz23-Jun-09 0:33 aa_zz 23-Jun-09 0:33
 Re: resize image bitmap ????(VC++) CPallini23-Jun-09 0:46 CPallini 23-Jun-09 0:46
 Re: resize image bitmap ????(VC++) Hamid_RT23-Jun-09 1:54 Hamid_RT 23-Jun-09 1:54
 Re: resize image bitmap ????(VC++) «_Superman_»23-Jun-09 4:09 «_Superman_» 23-Jun-09 4:09
 Re: resize image bitmap ????(VC++) Hamid_RT24-Jun-09 19:18 Hamid_RT 24-Jun-09 19:18
 solving n*n linear equations kimbz_00722-Jun-09 23:52 kimbz_007 22-Jun-09 23:52
 Re: solving n*n linear equations CPallini23-Jun-09 0:15 CPallini 23-Jun-09 0:15
 Re: solving n*n linear equations Stuart Dootson23-Jun-09 0:20 Stuart Dootson 23-Jun-09 0:20
 All I can suggest is that you try to learn a little more about arrays and strings in C - there's so much wrong here htat I don't know where to start....but I'll try. kimbz_007 wrote:char* eq[81]={"-36x+42yz+-35a","3x+4yz","yz+3x"}; This is an array of 81 string pointers. The first three (eq[0], eq[1] and eq[2]) have values. kimbz_007 wrote:char* varname[20]={"yz","x","a"}; This is an array of 20 string pointers. The first three (varname[0], varname[1] and varname[2]) have values. kimbz_007 wrote:strlen(eq[i][81]) This is attempting to find the string length of the 81st character of the 'i'th string. This has no meaning, as detected (via the compiler) by the type system, causing the first error. You probably mean strlen(eq[i]) kimbz_007 wrote:if(isalpha(eq[i][81]!=0)) This'll cause you grief - firstly, eq[i][81] is only defined if the 'i'th string has 82 characters or more - none of yours do. Also, you're determining if eq[i][81]!=0 is an alphabetic character. Again, even if the string was big enough, that is meaningless - I guess you've misplaced a closing bracket. kimbz_007 wrote:else if(s[i]=='-') kimbz_007 wrote:num[n]=-1*s[i+1}; You declared 's' as an integer variable, not an integer array. Those expressions are therefore meaningless and are also syntactically incorrect. As I said - try to learn a bit more about the basics of the language (strings, arrays, pointers). Or use a different language which can help abstract those details out of the way. Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
 Re: solving n*n linear equations kimbz_00723-Jun-09 0:27 kimbz_007 23-Jun-09 0:27
 Re: solving n*n linear equations Stuart Dootson23-Jun-09 0:30 Stuart Dootson 23-Jun-09 0:30
 run another exe in mfc using command prompt vvlnkishore22-Jun-09 23:52 vvlnkishore 22-Jun-09 23:52
 Re: run another exe in mfc using command prompt Madhu Nair23-Jun-09 0:02 Madhu Nair 23-Jun-09 0:02
 invalidate function in MFC duongcntt4b22-Jun-09 23:47 duongcntt4b 22-Jun-09 23:47
 [Message Deleted] jitendrapothuru22-Jun-09 22:32 jitendrapothuru 22-Jun-09 22:32
 Re: to maximise the dialog box and the fields in the dialog should also resize CPallini22-Jun-09 22:56 CPallini 22-Jun-09 22:56
 [Message Deleted] jitendrapothuru22-Jun-09 22:59 jitendrapothuru 22-Jun-09 22:59
 Re: to maximise the dialog box and the fields in the dialog should also resize CPallini22-Jun-09 23:07 CPallini 22-Jun-09 23:07
 Re: to maximise the dialog box and the fields in the dialog should also resize Stuart Dootson22-Jun-09 22:59 Stuart Dootson 22-Jun-09 22:59
 Re: [Message Deleted] Cedric Moonen23-Jun-09 0:04 Cedric Moonen 23-Jun-09 0:04
 Spider chart, star chart Ankata22-Jun-09 22:05 Ankata 22-Jun-09 22:05
 SetFilePointer() + WriteFile() Problems? krish_kumar22-Jun-09 21:31 krish_kumar 22-Jun-09 21:31
 Re: SetFilePointer() + WriteFile() Problems? CPallini22-Jun-09 21:51 CPallini 22-Jun-09 21:51
 Re: SetFilePointer() + WriteFile() Problems? krish_kumar22-Jun-09 22:41 krish_kumar 22-Jun-09 22:41
 Re: SetFilePointer() + WriteFile() Problems? CPallini22-Jun-09 22:53 CPallini 22-Jun-09 22:53
 Re: SetFilePointer() + WriteFile() Problems? Stuart Dootson22-Jun-09 22:29 Stuart Dootson 22-Jun-09 22:29
 Last Visit: 31-Dec-99 18:00     Last Update: 13-Aug-24 1:32 Refresh ᐊ Prev1...2931293229332934293529362937293829392940 Next ᐅ