in list.h
the line
struct Node;
replace it with the structure body.
Type: Posts; User: Kyro
in list.h
the line
struct Node;
replace it with the structure body.
yup, this code
/* Place in the interface file */
struct Node
{
ElementType Element;
Position Next;
Position Last;
can you post the headers "fatal.h" and "list.h". I have a feeling that you have just declared the structures but haven't actually defined them.
ie. You told the compiler a structure name but...
what XSquared said.
But as for y it's crashing, i'd say because u need to pass cat.age's address.
scanf takes the address of an object, so
scanf("%i",&(cat.age));
take a look at the code below
compare it to the code you've written.
int main()
{
int a[5][5] =
{
#include <iostream>
#include <string>
int main()
{
std::string name;
std::string lastname;
cout << "Enter first name" << endl;
cin >> name;
OK takin from stroustrup himself
"Except by using an initializer list, there is no way to specify explicit arguments for a constructor in an array declaration."
he also goes on to write code...
oh sorry didn't read that one. Must be a VC++ thing, i cause i didnt' have to write a copy constructor, just a constructor :S
wouldn't use copy constructor, it would use the constructor. Each element would just be constructed a single variable.
for(row = 0; row < 5; row++)
{
low = a[row][col]; // don't think this should be here
if ( a[row][col] < a[row][col])
low = a[row][col];
}
well first u should initialise...
well first u can't use keywords for variable identifiers, so u wouldn't beable to use int as a float variable.
int is the keyword for declaring an integer variable.
it seems that u've missed...
to make it easier to start of with, i suggest breaking up the program into several loops, not just 1 loop and a nested loop.
first loop would do the input for the array, no summing up.
another...
can u post ur original class definition?
if the static data member is private u can only access it once outside the class, thats for initialising the memeber.
yes, static members are created when the program is first run like globals. Can u just post some of your code?
although my knowledge in this area is limited i do know some stuff.
A process is a program running. But a thread is a part of a programm running.
A thread is like a cut down version of a...
was tryin to find a previous post that explained ur question but i can't seem to find it.
anyway, the header files only contain (function wise anyway) only function prototypes. Thats all the...
loop are explained here
http://www.cprogramming.com/tutorial/lesson3.html
can u say what is wrong with it, other than not accessing the std namespace for fstream, cout and endl it runs fine.
well
for(i = 0; i < 10; ++i)
{
}
is the same as
with a few changes ur original code works
char cs[4];
long lv1=12345;
long *lv2;
memcpy(cs, &lv1, 4);
lv2=(long*)(cs);
scanf("%s", &DataInput);
// don't need '&' since it's an array
scanf("%s", DataInput);
well then yes it would mean that he has dynamic libraries. Its like Dx, i have the Dx SDK with all the .lib files, but on the bottom of most game boxes now it says "requires directx". that doesn't...
i dunno if it's just me, but i'm alittle confused. U mean, u compile the app and ur friend runs it or u both compile it?
u would use static libraries over dynamic libraries if the program depends...
oh gee, i'm half asleep, it doesnt work on the array because data->sdSensor[n_sensor].ssName is type unsigned char[]. U can't pass an unsigned char[] or unsigned char* to strlen. sorry about that.
...
first one, u can't convert unsigned char[] to char*
in other words u can't have
char *pc = 'l';
unsigned char *upc = pc;