Search:

Type: Posts; User: Tricica

Search: Search took 0.00 seconds.

  1. @john.c and @Structure @Salem Sorting the...

    @john.c and @Structure @Salem

    Sorting the entire line as a string make so much sense and i can follow the logic in your codes well. But what if i needed to know the original placement of each...
  2. All I could think of is repeating this for loop ...

    All I could think of is repeating this for loop


    for(i=1; i<=num-1; i++) {
    fscanf(fptr6, "%s", r);
    if(strstr(r, "Al")) {
    if(strstr(r, "[0,0]")) {
    ...
  3. Hello, This is excellent! but it isn't exactly...

    Hello, This is excellent! but it isn't exactly what i require as a output... Your code sorts the file in ascending order from 0 - 19 but the order i require isn't as simple. It needs to be 0 - 1 - 10...
  4. Hello, the actual input here is: Au[10,0]...

    Hello, the actual input here is:

    Au[10,0]
    Au[11,0]
    Au[12,0]
    Au[0,0]
    Al[1,0]
    Al[0,0]
    Al[10,0]
    Al[5,0]
  5. Complex Organization of an Output file based on specific guidelines

    Hello, I'm looking for a way to organize a file with specific guidelines.

    The Text file outputs the following:
    Au[10,0]
    Au[11,0]
    Au[12,0]
    Au[0,0]
    Al[1,0]
    Al[0,0]
    Al[10,0]
  6. Hello, I've created a fully functioning code...

    Hello, I've created a fully functioning code based on your assistance. But I now must adapt it a bit to serve its purpose. Wondering if you still had any tips to assist me.




    #include...
  7. Wow awesome, this function is exactly what i...

    Wow awesome, this function is exactly what i needed to get the value of the columns thank you. Just a few questions if you have any time to answer them.
    SO i've never made a function in C before so...
  8. Replies
    4
    Views
    4,924

    Hello, you have helped me tremendously with this...

    Hello, you have helped me tremendously with this forum. I do have another question if you would be able to assist? would be greatly appreciated. Link is below. Its a add on to what i was doing here....
  9. How to count the amount of columns or elements in my text file.

    Hello all: I am trying to write a code that reads in a text file and then tell me how many column the file has as a integer. The file is a MxN type, where M (rows) is always going to be 81 and N...
  10. Replies
    4
    Views
    4,924

    Hey! thank you for the tip! I extracted what i...

    Hey! thank you for the tip! I extracted what i need to exactly! For now this will suffice so i can move on with other calculation. But i do want to put it into a loop so it looks cleaner but im not...
  11. Replies
    4
    Views
    4,924

    Reading, Storing and Writing a file in C

    Hello,

    So this is the task i am trying to complete. Take a text file and read it into C. read specifically the last 3 columns of the file and store them as arrays for later calculation. How can i...
Results 1 to 11 of 11