Search:

Type: Posts; User: Alander

Search: Search took 0.01 seconds.

  1. Help with getting a minimized SQUARE matrix with list of positions

    Hi,

    I got a square matrix (0 1 2 3)
    [0, 20, 47, 35]
    [20, 0, 30, 34]
    [47, 30, 0, 12]
    [35, 34, 12, 0]

    i got a list of positions (0 1 3)
  2. Hi, i solved the problem, however, is it possible...

    Hi, i solved the problem, however, is it possible to read back the binary data value by value instead of reading it as an entire structure???

    any help appreciated
  3. Structure struct EmployeeData { ...

    Structure


    struct EmployeeData
    {
    int code; /* Employee Code */
    char * name; /* Employee Name */
    int age; /* Employee Age */
    double basicPay; /* Basic pay of Employee */...
  4. error C2172: 'fwrite' : actual parameter is not a pointer : parameter 1???

    Full code


    if(file != NULL){
    while(head != NULL){

    fwrite(head->code,sizeof(head->code),1,file);

    fwrite(head->name, sizeof(head->name),1,file);
  5. Replies
    18
    Views
    2,380

    This is wrong if (found == TRUE) deleteNode...

    This is wrong

    if (found == TRUE)
    deleteNode (pList, pPre, pCur);


    It Should be


    if (found == TRUE)
  6. Replies
    18
    Views
    2,380

    #include #include "Prototype.h"...

    #include <stdio.h>
    #include "Prototype.h"
    #include "definition.h"



    struct EmployeeData* deleteElement(struct EmployeeData *pList)
    {
    int empCode, found;
    struct EmployeeData *pCur, *pPre;
  7. Replies
    18
    Views
    2,380

    Hi, i tried alot of things based on ur pseudo and...

    Hi, i tried alot of things based on ur pseudo and its not working.. can you point me to a tutorial or something with some sample codes? its getting frustating :(
  8. Replies
    18
    Views
    2,380

    Hi, i could delete now but not the 1st element as...

    Hi, i could delete now but not the 1st element as pointed out by u guys can anyone tell me guide me??



    void removeElement(int n, struct EmployeeData ** list)
    {
    struct EmployeeData *previous...
  9. Replies
    18
    Views
    24,698

    wrong post ignore sorry

    wrong post ignore sorry
  10. Replies
    18
    Views
    2,380

    Hi, how do u deal with those.. i tried alot of...

    Hi, how do u deal with those.. i tried alot of things but it just give me the same exception :(
  11. Replies
    18
    Views
    2,380

    This are my structures struct EmployeeData...

    This are my structures



    struct EmployeeData
    {
    int code; /* Employee Code */
    char * name; /* Employee Name */
    int age; /* Employee Age */
    double basicPay; /* Basic pay of...
  12. Replies
    18
    Views
    2,380

    Hi, i understand that there is a memory leak in...

    Hi, i understand that there is a memory leak in my application but i cannot find out where is the leak... can anyone help me??
  13. Replies
    60
    Views
    6,997

    i learnt C++ then VB then C# then J2SE, then J2ME...

    i learnt C++ then VB then C# then J2SE, then J2ME then C, i would say C is harder than any of those
  14. Replies
    18
    Views
    2,380

    Linked List Reference Pointer problems

    Hi All

    I am loading a linked list from file pushing to the list from a reference pointer

    However when i load the file for 2nd time (for debugging purpose to see if it rejects duplicates) one of...
  15. Replies
    3
    Views
    1,054

    Hey thanks, heres the correct code.. cheers ...

    Hey thanks, heres the correct code.. cheers



    do{
    printf("Enter the full file path that you would like to save the file to \n");
    printf("e.g. C:\\Temp\\Employee.csv\n");
    printf("NOTE...
  16. Replies
    3
    Views
    1,054

    String searching

    char fileName[100];
    int a;

    do{
    printf("Enter the full file path that you would like to save the file to \n");
    printf("e.g. C:\\Temp\\Employee.csv\n");
    printf("NOTE THE .CSV...
  17. Replies
    160
    Views
    1,221,139

    Sticky: http://cslibrary.stanford.edu/ This site is...

    http://cslibrary.stanford.edu/

    This site is pretty good, all the books are in .pdf.. pretty comprehensive
  18. Replies
    13
    Views
    1,943

    You could also use an enum to declare your...

    You could also use an enum to declare your months, instead of having arrays..
  19. Replies
    6
    Views
    1,722

    Hey thanks swoopy :)

    Hey thanks swoopy :)
  20. Replies
    6
    Views
    1,722

    void calSinglePay(int empNo, struct PersonalData*...

    void calSinglePay(int empNo, struct PersonalData* user){

    struct PersonalData* currentEmp;
    struct PersonalData* empData;
    int exist = 0;
    int rate = 0;

    struct CompData calculatedData;...
  21. Replies
    6
    Views
    1,722

    oh thanks, i got another problem that i do not...

    oh thanks, i got another problem that i do not understand... i supposed its another address issue..

    Code1

    void calSinglePay(int empNo, struct PersonalData* user){

    struct PersonalData*...
  22. Replies
    6
    Views
    1,722

    Information overwritten in linked list

    void calAllPay(struct PersonalData* user){

    struct PersonalData* currentEmp = user;
    int rate = 0;
    struct CompData* calculatedData;
    calculatedData = malloc(sizeof(struct CompData));
    ...
  23. Replies
    3
    Views
    4,631

    erm is there an alternative way to do this in...

    erm is there an alternative way to do this in visual studio?
  24. Replies
    3
    Views
    4,631

    Convert String to time

    Hi, i have a problem over here..

    I am doing C programming on Visual Studio 2005, Console Application..

    I know that this can be done, but however, the compiler does not recognize some methods...
Results 1 to 24 of 24