Search:

Type: Posts; User: MKashlev

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,597

    thanks!

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

    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,835

    what is sstream header in silentstrike's code?

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

    number of digits in number?

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

    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,379

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

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

    thanks
  7. Replies
    6
    Views
    12,379

    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,910

    thanks...

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

    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,827

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

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

    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,910

    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,827

    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,261

    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,593

    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,512

    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,512

    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,571

    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,571

    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,571

    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,929

    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,929

    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,929

    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