| | |
Using .length() with multidimensional char array ? (Help)
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
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 * append array arrays asterisks bash binarysearch calculate changingto char character cm copyimagefile creafecopyofanytypeoffileinc createprocess() database directory dynamic execv feet fgets file floatingpointvalidation fork forloop framework function getlogicaldrivestrin givemetehcodez global grade gtkwinlinux hacking histogram ide include incrementoperators input intmain() iso kernel keyboard kilometer km license linked linkedlist linux list lists locate looping loopinsideloop. lowest matrix meter microsoft mqqueue number oddnumber odf opensource openwebfoundation overwrite owf pdf performance pointer posix probleminc process program programming radix recursion recv recvblocked research reversing scripting segmentationfault sequential single socket socketprogramming standard strchr string systemcall testing threads turboc unix urboc user variable wab whythiscodecausesegmentationfault windowsapi





