Search:

Type: Posts; User: Salem

Page 1 of 20 1 2 3 4

Search: Search took 0.11 seconds; generated 16 minute(s) ago.

  1. How did you manage to write nearly 1000 lines of...

    How did you manage to write nearly 1000 lines of code, only to discover that it doesn't work.

    You have badly mis-matched braces in your code, and this will cause the error you see.

    You need to...
  2. Do you have any books on learning C++? Data...

    Do you have any books on learning C++?

    Data Encapsulation in C++ - Tutorialspoint
  3. Replies
    2
    Views
    103

    Ask here perhaps?...

    Ask here perhaps?
    https://opcfoundation.org/forum/

    If you're asking about a specialist "foo" feature (like a library), it's best to search "close to home" as it were.

    This is a general C/C++...
  4. Replies
    4
    Views
    105

    You only need ONE variable for your list. ...

    You only need ONE variable for your list.

    You're confusing yourself with all that first, second, third stuff.


    struct node *head = NULL;

    head = newNode(10, head);
    head = newNode(20,...
  5. Thread: Reading a file

    by Salem
    Replies
    1
    Views
    86

    > printf("Day = %s\n", &product.day); >...

    > printf("Day = %s\n", &product.day);
    > printf("Customer = %s\n", &product.customer);

    Well you don't normally use & when printing stuff.
  6. Replies
    1
    Views
    64

    scanf(" %c %d %f",&s1.name,&s1.rollno,&s1.marks);...

    scanf(" %c %d %f",&s1.name,&s1.rollno,&s1.marks);
    scanf(" %c %d %f",&s2.name,&s2.rollno,&s2.marks);
    scanf(" %c %d %f",&s3.name,&s3.rollno,&s3.marks);

    Put a space before each %c in scanf,...
  7. Apart from trying somewhere else as well ;) C -...

    Apart from trying somewhere else as well ;)
    C - Travelling Through Maze Recursively & Inserting Nodes In All S - C And C++ | Dream.In.Code
  8. > Salem, it's my topic on other site too (why you...

    > Salem, it's my topic on other site too (why you left a link to this forum in that thread?).
    It's for the benefit of everyone who might care enough to help you.
    Like for example,
    - not wasting...
  9. You mean like for ( int i = 0 ; i < 10 ; i++...

    You mean like


    for ( int i = 0 ; i < 10 ; i++ ) {
    head=front(head,i);
    }


    Work on a function to print your list.
  10. How to display all files, subfiles and d - C++...

    How to display all files, subfiles and d - C++ Forum
  11. Replies
    3
    Views
    120

    Too much guessing on your part. Convert COBOL...

    Too much guessing on your part.

    Convert COBOL to C


    It seems your C is pretty weak as well.

    Interoperability between different languages usually requires that you are pretty competent at...
  12. The number in () is it's width in characters....

    The number in () is it's width in characters.
    COBOL - Data Types - Tutorialspoint
  13. > // I don't understand this line. there is no &...

    > // I don't understand this line. there is no & operator
    Well fun(array); and fun(&array[0]); are the same thing.

    Arrays, when passed as a function parameter decay to being a pointer to the...
  14. So initialise the array properly in main then ...

    So initialise the array properly in main then


    int main()
    {
    int array [5] = { 1, 10, 100, 1000, 10000 }; // array declration

    function (array); // call function

    ...
  15. > function (value) Try function (array) ;

    > function (value)
    Try
    function (array) ;
  16. Replies
    6
    Views
    180

    How much COBOL do you know?

    How much COBOL do you know?
  17. Replies
    6
    Views
    180

    Sure.

    Sure.
  18. > does it valid function that pass the structure...

    > does it valid function that pass the structure ?
    No, because it's basically the same as your first attempt.



    void function ( struct record myvar ) {
    // do something with myvar.id and...
  19. > .I don't know which variable is for rows and...

    > .I don't know which variable is for rows and columns of result matrix.
    ...
    > if((rowsA==rowsB) && (columnsA==columnsB))
    But if they're the same, does it matter?

    matrixSum(a,b,sum, rowsA,...
  20. Replies
    14
    Views
    365

    > I have corrected errors so How to call the...

    > I have corrected errors so How to call the function in main
    Round and round we go,
    algorithms to creating list
  21. Replies
    6
    Views
    180

    > // MQPR-Message-l PIC S9(8) COMP-5 VALUE 0....

    > // MQPR-Message-l PIC S9(8) COMP-5 VALUE 0.
    > char m_mqprMessageL[sizeof(int)];
    ...
    > // MQPR-CommitScope PIC S9(4) COMP-5 VALUE 0.
    > char m_mqprCommitScope[sizeof(int)];
    Reading COBOL...
  22. > Does it a valid function ? if not then what's...

    > Does it a valid function ? if not then what's wrong in the function ?
    The 'struct record' is incomplete.
    Is record the name of the struct, and the variable name unknown?
    Or is record the name of...
  23. Replies
    14
    Views
    365

    Or a pointer is like your address on a letter,...

    Or a pointer is like your address on a letter, not your whole house.
  24. Maybe if ( strchr("+-*/",ch) == NULL ) { ...

    Maybe


    if ( strchr("+-*/",ch) == NULL ) {
    // ch is invalid
    }
  25. > The taste case was on a 2D array with 1000x1000...

    > The taste case was on a 2D array with 1000x1000 with the number of iteration of 1000.
    > The malloc array took 91.3s where as the vector array took 131.5 s
    Right, and having allocated a 1000x1000...
Results 1 to 25 of 497
Page 1 of 20 1 2 3 4