Search:

Type: Posts; User: mayfda

Search: Search took 0.01 seconds.

  1. Thread: link list

    by mayfda
    Replies
    2
    Views
    879

    link list

    segmentation fault is given whY?
    struct node {int key;node * next};
    node * head,*tmp;
    head=tmp;

    for(int i=0;i<nPoints;i++)
    {
    ...
  2. Thread: ifndef

    by mayfda
    Replies
    3
    Views
    2,225

    ifndef

    #ifndef TREE_NODE
    #include "TreeNode.h"
    #endif

    #ifndef SEARCH_TREE
    #include "SearchTree.h"
    #endif

    what does this code mean?
  3. Thread: Make file?

    by mayfda
    Replies
    1
    Views
    987

    Make file?

    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
  4. ??

    can you explain it in a more detailed way?
  5. is there any way to write a float to a ch string

    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?
  6. Thread: atoi?

    by mayfda
    Replies
    6
    Views
    1,664

    upppps

    i found the problem it is becouse of wrong pharantese organization:)
  7. Thread: atoi?

    by mayfda
    Replies
    6
    Views
    1,664

    nop

    int main()
    {
    char * temp=new char[200];
    temp[0]='1';
    temp[1]='9';
    temp[2]='5';
    temp[3]='3';

    cout << atoi(&temp[1]);
  8. Thread: atoi?

    by mayfda
    Replies
    6
    Views
    1,664

    hmm

    cout<<atoi(temp[x]);
    i tried x=1
    invalid conversion from `char' to `const char*'
  9. Thread: atoi?

    by mayfda
    Replies
    6
    Views
    1,664

    ?!?

    still it is same althoug i did the things you say?
  10. Thread: atoi?

    by mayfda
    Replies
    6
    Views
    1,664

    atoi?

    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.
  11. Thread: sys/types.h

    by mayfda
    Replies
    2
    Views
    2,162

    sys/types.h

    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?
Results 1 to 11 of 11