-
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?)
-
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