thanks alot! ;)
Type: Posts; User: MKashlev
thanks alot! ;)
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...
what is sstream header in silentstrike's code?
Is there any function that calculates the number of digits in an int?
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...
what is fp?
What header does rewind() belong to?
thanks
hey,
Does anybody know how to reset getline, that is, to make it read from the beginning of the file again?
thanks
thanks...
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...
what about signed long? How I initialize only positive longs?
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...
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...
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
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...
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>
all I get is segmentation fault. Any idea what this means?
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...
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'...
Linked List is not required, but suggested. If there is another way, i would be happy to hear it from you...
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
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...
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
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
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...