segmentation fault is given whY?
struct node {int key;node * next};
node * head,*tmp;
head=tmp;
for(int i=0;i<nPoints;i++)
{
...
Type: Posts; User: mayfda
segmentation fault is given whY?
struct node {int key;node * next};
node * head,*tmp;
head=tmp;
for(int i=0;i<nPoints;i++)
{
...
#ifndef TREE_NODE
#include "TreeNode.h"
#endif
#ifndef SEARCH_TREE
#include "SearchTree.h"
#endif
what does this code mean?
main.cpp and node.class
i want make them together using makefile is ther any one who knows it ?#
ObjectPath = ./lib/
#
# Header files
#
IncludeFiles = ./include/*.h
can you explain it in a more detailed way?
is there any way to write a float to a ch string such as
double me=254,1948;
i want to write this it to
char * temp=new char [200];
is there any way to do this?
i found the problem it is becouse of wrong pharantese organization:)
int main()
{
char * temp=new char[200];
temp[0]='1';
temp[1]='9';
temp[2]='5';
temp[3]='3';
cout << atoi(&temp[1]);
cout<<atoi(temp[x]);
i tried x=1
invalid conversion from `char' to `const char*'
still it is same althoug i did the things you say?
hi
char * temp=new char[200];
temp[0]=1;
temp[1]=9;
temp[2]=5;
temp[3]=3;
then if i call
cout<<(atoi(temp)) it prints 0.
i am trying to write a client program.while compilng this program i receave such an error
"u_long undeclared" altough sys/types.h is included what should i do?
where can i find sys/types.h?