Search:

Type: Posts; User: pastitprogram

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    980

    tanks for the input, ive had a mess about but it...

    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...
  2. Replies
    3
    Views
    980

    basic if statements

    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...
  3. Replies
    4
    Views
    1,080

    i see, you could be right however i was advised...

    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...
  4. Replies
    4
    Views
    1,080

    getting chars from a string

    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...
  5. Thread: arrays

    by pastitprogram
    Replies
    14
    Views
    1,331

    sorry i think im asking silly questions but i dnt...

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

    by pastitprogram
    Replies
    14
    Views
    1,331

    Ah rite well i was trying to assign it to a part...

    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)
    {
  7. Thread: arrays

    by pastitprogram
    Replies
    14
    Views
    1,331

    thank you for your help. I understand the looping...

    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,...
  8. Thread: arrays

    by pastitprogram
    Replies
    14
    Views
    1,331

    thank you for the replies, however i am still a...

    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...
  9. Thread: arrays

    by pastitprogram
    Replies
    14
    Views
    1,331

    arrays

    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...
  10. Replies
    1
    Views
    1,151

    splitting up files

    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...
  11. Replies
    10
    Views
    2,219

    thats where im getting things wrong wen it comes...

    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...
  12. Replies
    10
    Views
    2,219

    thanks for your advice, but is there no way to...

    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?
  13. Replies
    10
    Views
    2,219

    thanks, ive had a bit test with some changes and...

    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...
  14. Replies
    10
    Views
    2,219

    thank you for your replies, ive had a go at the...

    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 = "";...
  15. Replies
    10
    Views
    2,219

    cutting up strings

    hi, im wondering how to go about cutting up strings into smaller strings based on keywords. For example i have the following string

    ...
  16. Replies
    4
    Views
    1,501

    thanks, been browsing the msdn website and seem...

    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!




    ...
  17. Replies
    4
    Views
    1,501

    windows time

    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...
  18. Replies
    6
    Views
    1,060

    thanks for the reply but if i reach a blank...

    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
  19. Replies
    6
    Views
    1,060

    thank you for your reply, ive been researching...

    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...
  20. Replies
    6
    Views
    1,060

    problems reading from a file

    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...
  21. Replies
    5
    Views
    1,127

    i shall give it ago and see what happens! Could...

    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...
  22. Replies
    5
    Views
    1,127

    hi, thanks for the reply. By null terminated does...

    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...
  23. Replies
    5
    Views
    1,127

    problems printing out

    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...
  24. Replies
    2
    Views
    1,322

    thank you for your reply and u were very much...

    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...
  25. Replies
    2
    Views
    1,322

    text issues

    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...
Results 1 to 25 of 99
Page 1 of 4 1 2 3 4