Thread: whats wrong in this!!!!

  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    78

    whats wrong in this!!!!

    hi everyone can anyone please tell me why i am getting this errors


    my code
    Code:
    #pragma warning(disable:4786)
    #pragma warning(disable:4996)
    #include <vector>
    #include "common.h"
    #include "defFile.h"
    #include<uf.h>
    //#include <iostream.h>
    #include<fstream>
    #include <uf_part.h>
    #include <uf_curve.h>
    #include"runner_blade.h"
    using namespace std;
     struct SectionfromSection(struct TempActionSide,struct TempReactionSide,int N1,int N2)
    {
    //
    //
    //
    //
    //
    //return 0;
    };


    errors:




    1>d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\cod e_runner_blade\runner_blde\runner_blde\defgeometry .cpp(13) : error C2226: syntax error : unexpected type 'TempActionSide'
    1>d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\cod e_runner_blade\runner_blde\runner_blde\defgeometry .cpp(14) : error C2143: syntax error : missing ';' before '{'
    1>d:\backup_qi-287\geconfidential\rajesh\hitachi_runner_blade\cod e_runner_blade\runner_blde\runner_blde\defgeometry .cpp(14) : error C2447: '{' : missing function header (old-style formal list?)

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Are you trying to declare a function or a struct - if the former, then you need to tell the compiler WHAT struct you are intending to return. If the latter, then you need to NOT have a bunch of struct declarations in parenthesis at the beginning of your struct.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 9
    Last Post: 07-15-2004, 03:30 PM
  2. Debugging-Looking in the wrong places
    By JaWiB in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 11-03-2003, 10:50 PM
  3. Confused: What is wrong with void??
    By Machewy in forum C++ Programming
    Replies: 19
    Last Post: 04-15-2003, 12:40 PM
  4. God
    By datainjector in forum A Brief History of Cprogramming.com
    Replies: 746
    Last Post: 12-22-2002, 12:01 PM
  5. Whats wrong?
    By Unregistered in forum C Programming
    Replies: 6
    Last Post: 07-14-2002, 01:04 PM