tanks for the input, ive had a mess about but it still wont work with anything. Say the whille loop returns the string values
i have a dog
lots of cats
dogs and bears
my structure with an...
Type: Posts; User: pastitprogram
tanks for the input, ive had a mess about but it still wont work with anything. Say the whille loop returns the string values
i have a dog
lots of cats
dogs and bears
my structure with an...
hello, i seem to be having a problem with my if statement for my basic program. I have a while loop that goes through a file and assigns certain values to a string str. The while loop works and...
i see, you could be right however i was advised towards str-begin using syntax like
string mystring = "45 dogs in a house";
strbegin ("45", mystring);
but for some reason it doesnt like...
hello, im normally used to c++, but i now am trying to complete some basic tasks using 'c', i apologise now im not very good!.
I have a string and i want to see if a specific criteria appears in...
sorry i think im asking silly questions but i dnt think i understood the last 1.
So i should define by array as
char Name [5][20]; // Five entries with twenty chars long?
would i have to...
Ah rite well i was trying to assign it to a part of the array like below
int i;
int NameArray [5]; // holds 5 names
while (fgets(line, sizeof line, Usernamefileinput) !=NULL)
{
thank you for your help. I understand the looping part which will do exactly what im hoping! however im struggling with the reading part. Whenever i read each name and print it out it works fine,...
thank you for the replies, however i am still a little stuck as to how to go about this task.
I have managed to do as follows which prints out all 7 usernames and passwords from each file on the...
hello, i have a question on arrays....i think. I have a file and it contains a list of 5 first names and 5 second names. I need to print out on screen every possible combination of names on screen so...
hi, i have a input file for my program and its full of the same typ of structure, ive put an example below. I would idealy like to carve out the data inbetween <gg> and </gg> but so far im having...
thats where im getting things wrong wen it comes to working my way through the loop. Im not sure im implimenting my loop correctly as it keeps infinatley running. I have decided to get the overall...
thanks for your advice, but is there no way to impliment a loop for the code i already have that will run through my string and split it up?
thanks, ive had a bit test with some changes and now I have the code below. Ive magae to get it to strip out the very first part of my string but it only does the first part so im guessing this is...
thank you for your replies, ive had a go at the following but i think im struggling a bit with putting it into a loop until the entire string is cut up
string subString = "";...
hi, im wondering how to go about cutting up strings into smaller strings based on keywords. For example i have the following string
...
thanks, been browsing the msdn website and seem to have found somthing very usefull! Not totaly sure i fully understand what it is trying to tell me but i think it is definatly of use!
...
hi, im curious of how to retieve windows created, last accessed and modified times and dates from files on the windows OS. At the mintue i am streaming from my files reading data and so on but i...
thanks for the reply but if i reach a blank character in the middle and i try to push it on it just terminates my string and i end up with the rest of the characters missed off the end
thank you for your reply, ive been researching this all morning and found that the reason its not reading it all is because its sometimes reaching a blank space and i think its treationg it as a null...
hi, im having a few problems at the minute which involve reading a certain amount of bytes from a file. I have a program that will store an int value( could be anything depnding on the file.) However...
i shall give it ago and see what happens! Could solve the problem I have as it seems to lock up now when it eventually does compile like its in some sort of infinate loop thing so hopefully this will...
hi, thanks for the reply. By null terminated does that mean ending with '/0'. If so im not sure how I can add that to the end of my buffer as its filled by input from a file not standard input from...
hi, im trying to output my files contents in binary to a memo window in my program but im having some problems in the fact that it will only print out the first couple of bytes of the file into my...
thank you for your reply and u were very much right, that is nothing like i thought it was going to be! If im honest im totally baffled as to what that is and unfortunatly I havnt been able to make...
hi, could anyone advise me on how to change the text color? i thought it would be straight forward but i have a listview created in borland c++ and i would like to programtically change so of the...