| | |
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?
Views: 1472 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for C
#include * append array arrays bash binarysearch changingto char character cm copyanyfile copypdffile createprocess() database directory drawing dynamic execv feet fgets file floatingpointvalidation fork framework function functions getlogicaldrivestrin givemetehcodez global grade graphics gtkwinlinux histogram homework i/o ide include infiniteloop initialization input interest intmain() iso keyboard kilometer lazy license linked linkedlist linux list looping loopinsideloop. lowest matrix meter microsoft mqqueue oddnumber odf open openwebfoundation overwrite pause pdf pointer pointers posix power process program programming pyramidusingturboccodes radix read recursion recv recvblocked reversing segmentationfault single socket socketprogramming spoonfeeding standard strchr string student suggestions system test testing threads unix urboc user whythiscodecausesegmentationfault win32api windowsapi






