Search:

Type: Posts; User: MKashlev

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,593

    thanks!

    thanks alot! ;)
  2. Replies
    3
    Views
    1,593

    huge string-pointer problem

    Hello,
    I have a big problem with pointers and strings -- it seems that I cannot compare string with another string. In the code snippet below, i am trying to compare normal. with whatever value is...
  3. Replies
    16
    Views
    2,824

    what is sstream header in silentstrike's code?

    what is sstream header in silentstrike's code?
  4. Replies
    16
    Views
    2,824

    number of digits in number?

    Is there any function that calculates the number of digits in an int?
  5. Replies
    3
    Views
    3,005

    how to replace a substring in a string

    How can I replace a substring within a string? For example, if a line consists of different words separated from each other by comma, such as in:
    file,tcp,ftp,SF,5,6,3,normal.
    How can I locate the...
  6. Replies
    6
    Views
    12,320

    what is fp? What header does rewind() belong to?...

    what is fp?
    What header does rewind() belong to?

    thanks
  7. Replies
    6
    Views
    12,320

    how to reset getline?

    hey,

    Does anybody know how to reset getline, that is, to make it read from the beginning of the file again?

    thanks
  8. Replies
    5
    Views
    1,879

    thanks...

    thanks...
  9. Replies
    5
    Views
    1,879

    your code was really helpful with ridding from...

    your code was really helpful with ridding from segmentation faults, but it extracted all values rather than nonnumerical values from data (I need only 2nd, 3rd, 4th, and 42nd columns). Values from...
  10. Replies
    7
    Views
    2,785

    what about signed long? How I initialize only...

    what about signed long? How I initialize only positive longs?
  11. Replies
    7
    Views
    2,785

    your idea is fine, but i need infinitely large...

    your idea is fine, but i need infinitely large integer because I am calculating the total number of nonnumerical values in each column of data (a 100MB file), and then replace those nonnumerical...
  12. Replies
    5
    Views
    1,879

    my program wont read vector array

    I am writing a program that would put all values not already in the array into the array. However, when I call array after all values have been inserted, the array does not cout any values.
    What is...
  13. Replies
    7
    Views
    2,785

    is there an infinitely large integer type?

    Is there an infinitely large integer file. I am writing a program that processes large files, and I need to make an infinitewly large array. How do I do this?

    thanks
  14. Thread: search array?

    by MKashlev
    Replies
    1
    Views
    1,252

    search array?

    hey guys,

    Do you know how to search the array for the word (string type) and if the word does not exist in the array, add it to the array?
    I did something like this (see code below), but I fear...
  15. Replies
    4
    Views
    1,585

    what is segmentation fault?

    What does segmentation fault mean?

    Why when i run the following code, there is a segmentation fault?:




    #include <string.h>
    #include<iostream.h>
    #include<fstream.h>
  16. Replies
    4
    Views
    1,508

    all I get is segmentation fault. Any idea what...

    all I get is segmentation fault. Any idea what this means?
  17. program that extracts certain words from the string

    hey guys,

    Can you please help me write a program that would divide lines into the fields. Each field is separated by comma. I only need to save nonnumerical fields in the array for each...
  18. Replies
    4
    Views
    1,508

    search for chars

    How would you search for second occurence of the same character on the line? For example:

    ftp,tcp,SF,attack,smurf

    How would you search for 3rd comma (before attack) and save the word 'attack'...
  19. Replies
    11
    Views
    3,447

    Linked List is not required, but suggested. If...

    Linked List is not required, but suggested. If there is another way, i would be happy to hear it from you...
  20. Replies
    11
    Views
    3,447

    Is it possible to use vectors if you don't know...

    Is it possible to use vectors if you don't know the actual number of values in each field?

    I would be happy if you could give me your code.
    Thanks for helping me out.

    ~Dmitry
  21. Replies
    11
    Views
    3,447

    need help w/ linked lists

    I am a high school student doing a summer project in AI.
    I am not experienced enough with linked lists and I need your help to put some values into linked list.

    I would like to make 4 linked...
  22. Replies
    4
    Views
    3,893

    a note:

    also, i need to come up with sequence for each field separately (2nd field- 1,2,3,...; 3rd field - 1,2,3,...; and so on).

    thx
  23. Replies
    4
    Views
    3,893

    how would you do that?

    How would you do that? I am pretty inexperienced in linked list, so can you please write a code? Your algorithm seems fine to me.

    Thx,

    ~Dmitry
  24. Replies
    4
    Views
    3,893

    How to use Linked List?

    I am a high school student doing a summer project in AI. I am not experienced in Linked Lists, and I need your help to put some values into the linked list.

    I would like to make 4 linked lists...
Results 1 to 24 of 24