Na maanden lang ziek te zijn geweest ,toch weer begonnen met de software
uiteindelijk staat er dit in huis.ccp
het inlezen van de coordinaten gaat nu goed ,alleen de over gang naar de volgen functie geeft problemen
Hoewel de functie geen output heeft geerft het declarenen van load een probleem NL error4430
maken we er Void load van dan heeft de linker een probleem met
void load als
bool abcopy voor beide error lnk2019 unresolved extrernal symbol
wie kan mij zeggen wat de oplossing hiervoor is
Voor xhuis.h
Voor code stdafx.h
uiteindelijk staat er dit in huis.ccp
het inlezen van de coordinaten gaat nu goed ,alleen de over gang naar de volgen functie geeft problemen
Hoewel de functie geen output heeft geerft het declarenen van load een probleem NL error4430
maken we er Void load van dan heeft de linker een probleem met
void load als
bool abcopy voor beide error lnk2019 unresolved extrernal symbol
wie kan mij zeggen wat de oplossing hiervoor is
Code:
*****************************************************************************/
#include "stdafx.h"
//#include <QCoreApplication>
//#include <QDataStream>
#include "xhuis.h"
#include "math.h"
#include <iomanip>
#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <tchar.h>
//jw #include <vector>
#define QString
#define str1
#define str2
bool Xhuis::s_bCancel = false;
bool Xhuis::s_bFullReport = false;
double Xhuis::vaccel = 0.01;
using namespace std;
using::cout;
using::setw;
using::endl;
//jw using::vector
void load();
bool abcopy(double xb[IBX],double yb[IBX], int IP);
//jw Qstring str;
int main()
{
int I;
int IP;
std::ifstream file("D:/test/Coor/E180.COO");
std::string name;
std::string nb:
std::string line;
double xb[IBX], yb[IBX];
double Value1, Value2;
getline(file, name);
std::cout << std::setw(10) << name << std::endl;
getline(file, nb);
std::cout << std::setw(5) << nb << std::endl;
for (I = 0; getline(file, line); I++)
// Read a line of input from the file
{
std::istringstream iss(line);
std::cout << setprecision(5) << showpoint << fixed;
if (iss >> Value1 >> Value2)
{
IP = I + 1;
if (I < 9)
{
std::cout << std::setw(6) << "XB(" "0" << IP << ") = " << Value1;
xb[IP] = Value1;
}
else
{
std::cout << std::setw(5) << "XB(" << IP << ") = " << Value1;
xb[IP] = Value1;
}
if (I < 9)
{
std::cout << std::setw(11) << "YB(" "0" << IP << ") = " << Value2;
yb[IP] = Value2;
}
else
{
std::cout << std::setw(10) << "YB(" << IP << ") = " << Value2;
yb[IP] = Value2;
}
}
std::cout << std::endl;
}
load();
abcopy(xb,yb,IP);
return 0;
}
void Xhuis::load()
{
//------ primary dimensioning limit parameters
//------ derived dimensioning limit parameters
// nax=800;//number of points in stored polar
// npx=8;//number of polars and reference polars
// nfx=128;// number of points in one reference polar
// ncom = 73;
// imx number of complex mapping coefficients cn
m_bTrace = false;
sccon = 5.6;
gacon = 6.70;
gbcon = 0.75;
gbc0 = 0.60;
gbc1 = 0.40;
gccon = 18.0;
dlcon = 0.9;
ctcon = 0.01485111754659538130244; //(ctcon = 0.5/(gacon**2 * gbcon))
angtol = 40.0;
enz.....enz..
Voor xhuis.h
Code:
#pragma once
/**
*@file This class defines the Xhuis object.
*/
#ifndef Xhuis_H
#define Xhuis_H
#define QString
/**
class Xhuis
//jw The class which defines the Xhuisl object.
};
#endif
Voor code stdafx.h
Code:
//
#pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
//jw #include <string>
// TODO: reference additional headers your program requires here
//Xhuis Direct Parameters - refer to Xhuisl documentation
#define IQX 302 /**< 300 = number + 6 */
#define IQX2 151 /**< IQX/2 */
#define IWX 50 /**< number of wake panel nodes */
#define IPX 6 /**< 6 number of qspec[s] distributions */
#define ISX 3 /**< number of sides */
#define IBX 604 /**< 600 number of buffer = 2*IQX */
#define IZX 350 /**< 350 = number */
#define IVX 302 /**< 300 = number . */
//Xhuis INVERSE parameters - refer to Xhuis documentation
#define ICX 257 /**< number of circle-plane points for complex mapping ( 2^n + 1 ) */
#define IMX 64 /**< number of complex mapping coefficients Cn */
#define IMX4 16 /**< = IMX/4 */