| | |
having problems with structure.
Thread Solved |
•
•
Join Date: Nov 2007
Posts: 7
Reputation:
Solved Threads: 0
Hello,
well this portion of code is basically just the structures from the program. everytime i compile the program i get an error at the INFOstructure.
i am using these structure in a program that read from a file and prints the data to the screen. my problem is that for some reason my structures are wrong.
thanks in advance for helping,
David
well this portion of code is basically just the structures from the program. everytime i compile the program i get an error at the INFOstructure.
i am using these structure in a program that read from a file and prints the data to the screen. my problem is that for some reason my structures are wrong.
thanks in advance for helping,
David
C Syntax (Toggle Plain Text)
#include <stdio.h> #include <string.h> #define STR_SIZE 25 #define ARR_SIZE 10 #define MAX 15 typedef struct { char month [MAX]; int day; int year; }DATE; typedef struct //this is the structure that is giving me problems. for some reason the { // its keeps saying no semicolon or union after struct. char firstname[MAX]; char lastname[MAX]; DATE birthday; SSN social[9]; GRADE stugrade; }INFO; typedef struct { char social; }SSN; typedef struct { int grade; }GRADE;
![]() |
Similar Threads
- problems with reading random access line from a file (C++)
- Huge problems with Tiger and firewire drives (OS X)
- having problems to complete implement a simple calculator program in c (C)
- Defining structure for a scenarios (C++)
- Having trouble trying to use a global structure (C)
- promise ultra133 TX2 controller card problems? (Windows 95 / 98 / Me)
- problems with tables in firefox (HTML and CSS)
- Discrete Math or Data structure (Computer Science)
Other Threads in the C Forum
- Previous Thread: static variable with recursion
- Next Thread: help with program using structures and printing to screen
| Thread Tools | Search this Thread |
* ansi api array arrays bash binarysearch calculate centimeter changingto char character convert copyanyfile copypdffile createcopyoffile createprocess() csyntax directory dynamic fflush file floatingpointvalidation fork forloop frequency function getlasterror getlogicaldrivestrin givemetehcodez graphics gtkgcurlcompiling gtkwinlinux hardware highest histogram homework i/o ide inches initialization intmain() iso km license linked linkedlist linux linuxsegmentationfault list logical_drives looping loopinsideloop. lowest match matrix microsoft motherboard mqqueue mysql oddnumber odf open opendocumentformat openwebfoundation pdf pointer pointers posix power program programming pyramidusingturboccodes read recursion recv recvblocked repetition reversing scanf scheduling segmentationfault send shape single socketprogramming stack standard strchr string suggestions test unix urboc user variable whythiscodecausesegmentationfault win32api windows.h windowsapi






