| | |
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 |
#include * ansi array arrays asterisks binarysearch calculate centimeter changingto char character convert copyanyfile copyimagefile copypdffile creafecopyofanytypeoffileinc createprocess() database dynamic execv fflush fgets file floatingpointvalidation fork forloop function getlogicaldrivestrin givemetehcodez grade gtkwinlinux histogram homework i/o ide inches include infiniteloop input interest intmain() iso keyboard km license linked linkedlist linux list looping lowest matrix meter microsoft mysql number oddnumber open opendocumentformat openwebfoundation pdf pointer posix power probleminc process program programming pyramidusingturboccodes radix read recursion recv recvblocked research reversing scheduling segmentationfault send sequential single socket socketprogramming stack standard strchr string suggestions systemcall test threads turboc unix urboc user variable whythiscodecausesegmentationfault win32api windowsapi





