Search:

Type: Posts; User: doubty

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,122

    issue with structs :(

    Hi Following is the code


    struct a{
    string k;
    int count;
    }

    a *create()
    {
  2. Thread: Strstr

    by doubty
    Replies
    1
    Views
    1,581

    Strstr

    Hi

    I have a string say " I am a Novice"

    lets say i want to find if "Nov" is there in the program, then what I do is

    use strstr function which returns me a pointer to the first occurence of...
  3. Replies
    1
    Views
    1,154

    Printing into a file

    Hi I have a particularly creepy problem :( eating my head from quitea few days.

    I have a large array of size say 3000, at the end of the program i have certain computations done and stored as...
  4. Thread: help! Imp

    by doubty
    Replies
    4
    Views
    971

    Please help :(

    Please help :(
  5. Thread: help! Imp

    by doubty
    Replies
    4
    Views
    971

    Hi, Grouping the subformulas means, joining...

    Hi,

    Grouping the subformulas means, joining the sperated subformulas( as in + ve elements and negative elements) back so that the number ofunique elements in the final formula is less or equal to...
  6. Thread: help! Imp

    by doubty
    Replies
    4
    Views
    971

    help! Imp

    My problem is as below:

    I have a formula say b= a/b+c*d/d+e*c/d-f*h/g etc (can be any such huge formula)

    and i need to rename the subformulas so that the formula size becomes smaller.Also it is...
  7. Thread: Help! Please

    by doubty
    Replies
    1
    Views
    876

    Help! Please

    Hi,

    Currently I am working on this problem and am thinking of the best way to solve it... please help me with some tips as to what would be a reasonable way of solving the problem efficiently.
    ...
  8. Hi Help with reading a file and string modification

    Hi All,

    I have a particular problem on hand and was thinking what would be a good way to solve the same.

    I have a text file with a lot of lines,say

    s=abcddddddeeeffffff...
  9. Thread: help

    by doubty
    Replies
    10
    Views
    1,150

    Thnks all.. it is wrking fine now...

    Thnks all.. it is wrking fine now...
  10. Thread: help

    by doubty
    Replies
    10
    Views
    1,150

    The contents of the init file

    Thanks all
  11. Thread: help

    by doubty
    Replies
    10
    Views
    1,150

    help

    int main()
    {
    FILE *file;
    file = fopen("C:/Users/dell/Desktop/File/init.txt","r");
    int xcount;
    char c[4],brown_spec[2],brown_conc[1];
    float *x=NULL;
    float ***brown;
    int...
  12. Replies
    3
    Views
    965

    Help reading a file

    Hi,

    I Have a text file which has a lot of lines,I want to extract the first 3 lines of the file(Which are integers) and assign them to 3 different int variables, and from the 4th line i need to...
  13. decalring variables dynamically based on read from file

    Hi,

    Can this be done in C:

    I Have a file which has certain number of lines as say

    x1=4
    x2=4

    etc etc, the number of lines are dynamic and not known until i read the file in , So I have a...
  14. Help crating a linked list of array of structs.

    Hi, I have a requiremnt which needs me to create a linked list of (array of structs).

    and so I created a struct array as:



    typedef struct{
    char Fa[30];
    int flag;
    int Time;
  15. Replies
    3
    Views
    60,600

    Check if string is null

    Hi,

    Can you tell me how to check if a string is null in C?

    I tried p != '\0' doent seem to wrk though!

    thanks
  16. Thread: Need Ideas!

    by doubty
    Replies
    7
    Views
    1,258

    Hi Adak, I think i should put my array of...

    Hi Adak,

    I think i should put my array of strings i.e char[][] into the struct right? also i think it has to bea an array of int?

    do you suggest that i switch based on the time point, the...
  17. Thread: Need Ideas!

    by doubty
    Replies
    7
    Views
    1,258

    Hi , please tell me if the approach is right....

    Hi ,

    please tell me if the approach is right.

    I create a Structure which has an int array as big as the array of strings, a int keeping an account of the time step, and a pointer.

    The...
  18. Thread: Need Ideas!

    by doubty
    Replies
    7
    Views
    1,258

    Need Ideas!

    Hi I have to code up this problem:

    I have a set of formulas ( stored in an array of strings) on whom i have to test if they are true at 100 different time points. i.e the array of strings is...
  19. Replies
    15
    Views
    2,747

    Hi, i have declared label as a global function...

    Hi,
    i have declared label as a global function hence it is nt shown, also the function parser works fine ( coz the code executes w/o any issues when the file operations are not done) , also the...
  20. Replies
    15
    Views
    2,747

    int main() { char inputexp[500]; FILE...

    int main()
    {
    char inputexp[500];
    FILE *file1;
    int filet,filex,filev;
    float filep;
    float brown[33][99][5];
    int count=0,new_count=0,g;
    clock_t start;
  21. Replies
    15
    Views
    2,747

    Hi, I tried some debugging, it is reading the...

    Hi,

    I tried some debugging, it is reading the file perfectly and storing the same into an array , however in the end of the mian function when returning Iam getting the error!!!!

    i.e "stack...
  22. Replies
    15
    Views
    2,747

    I tries this... but no avail.. still getting the...

    I tries this... but no avail.. still getting the same error :(
  23. Replies
    15
    Views
    2,747

    float brown[32][99][5] ; is how i declared my...

    float brown[32][99][5] ; is how i declared my array

    ya the range of [filex] is 0-32
    [filet] is 0-99
    [filev] is 0-5

    @tabstop, sorry typo,...
  24. Replies
    15
    Views
    2,747

    reading from an file into into an array!

    Hi I have a very very peculiar problem,

    I am trying to read a file with data in the following format

    1.0000 1 1 4 and storing into a 3d array as below:



    file1=...
  25. Replies
    15
    Views
    2,309

    Hi , I know you will kill me for this .....

    Hi ,

    I know you will kill me for this .. :):):)

    I was also checking out if i had strings in any other particular format and i hit upon this one:

    i have a very very peculiar requirement :
    ...
Results 1 to 25 of 39
Page 1 of 2 1 2