| | |
Using .length() with multidimensional char array ? (Help)
![]() |
•
•
Join Date: May 2004
Posts: 10
Reputation:
Solved Threads: 0
Hi all,
Quite a basic question for most of you; I am trying to obtain length of a string < char name[MAX_ENTRIES][MAX_NAME_SIZE] > for use in a for loop that will perform isalpha.
for (int j=0; j < &name[i].length(); j++)
I am getting error 2228: left of '.length' must have class/struct/union type upon compile.
Can anyone please offer me some guidance?
This is a simple win32 console application. See attached code.
Quite a basic question for most of you; I am trying to obtain length of a string < char name[MAX_ENTRIES][MAX_NAME_SIZE] > for use in a for loop that will perform isalpha.
for (int j=0; j < &name[i].length(); j++)
I am getting error 2228: left of '.length' must have class/struct/union type upon compile.
Can anyone please offer me some guidance?
This is a simple win32 console application. See attached code.
![]() |
Similar Threads
- Linked List with Char Array problem (C++)
- Char Array ib Java? (Java)
- Problem with a string (char array) and self made strcpy (C++)
- sending address of multidimensional char array to a function (C)
- adding data into an char array (C++)
- two-dimensional char array (Java)
Other Threads in the C Forum
- Previous Thread: New Type
- Next Thread: How to use alloc's memory allocation functions?
| Thread Tools | Search this Thread |
* adobe ansi api array asterisks binarysearch calculate centimeter changingto char character cm convert copyimagefile cprogramme creafecopyofanytypeoffileinc createcopyoffile csyntax database directory feet fflush fgets file floatingpointvalidation fork forloop frequency givemetehcodez grade gtkgcurlcompiling gtkwinlinux hacking highest histogram inches input intmain() iso kernel keyboard kilometer km linked linkedlist linux linuxsegmentationfault list locate looping loopinsideloop. lowest match microsoft mqqueue mysql number oddnumber odf opendocumentformat openwebfoundation owf pattern pdf performance posix probleminc process program programming radix recv recvblocked repetition research reversing scanf scheduling segmentationfault sequential single socket socketprograming socketprogramming stack standard string systemcall threads turboc unix urboc user variable voidmain() wab whythiscodecausesegmentationfault windows.h windowsapi





