| | |
pass a structure as reference parameter.
Please support our C advertiser: Programming Forums - DaniWeb Sister Site
![]() |
plz explain how to do this the proper way.
am getting warning: 'struct names' declared inside parameter list
C Syntax (Toggle Plain Text)
main.c ===== struct names{ // definitions ----- ---- ---- } struct names x; function1(&x); file2.c ====== function1(struct names *x){ ---- ---- ---- }
am getting warning: 'struct names' declared inside parameter list
I guess it's
or put it this way
c Syntax (Toggle Plain Text)
struct names{ // .... } x;
or put it this way
c Syntax (Toggle Plain Text)
struct names{ // ... }; struct names x;
Get up every morning and take a look at the Forbes' list of richest people. If your name doesn't appear.... GET TO WORK !!!
You're missing a semi-colon after defining the struct.
Should be:
Should be:
struct names{ // definitions
-----
----
----
};![]() |
Similar Threads
- Weather Program (C++)
- Problems in Address book programming (C++)
- but.. (C)
- urgent help ith c++ program (C++)
- has anyone done this assignment i have a lot of errors need to compare (C++)
- urgent help with c++ function access(/cpp) (C++)
- What relation does **indirection operator have with Multidimensional Arrays (C++)
- help! a little malfunction in my program (C)
Other Threads in the C Forum
- Previous Thread: how do i right align my data?
- Next Thread: is fmod() recieving overflow?
| Thread Tools | Search this Thread |
adobe ansi api array arrays bash binarysearch centimeter char convert copyanyfile copypdffile cprogramme createcopyoffile createprocess() csyntax directory dynamic feet fflush file floatingpointvalidation fork frequency getlasterror getlogicaldrivestrin givemetehcodez global graphics gtkgcurlcompiling hardware highest homework i/o ide inches infiniteloop initialization interest kilometer km linked linkedlist linux linuxsegmentationfault list locate logical_drives match matrix meter microsoft motherboard multi mysql odf open opendocumentformat opensource openwebfoundation owf pattern pdf performance pointer pointers posix power probleminc program programming pyramidusingturboccodes read recursion recv repetition scanf scheduling segmentationfault send shape single socketprograming socketprogramming stack standard strchr string strings suggestions systemcall test testautomation unix urboc user voidmain() wab win32api windows.h






