niklaesh

Forum Replies Created

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • in reply to: #3376

    niklaesh
    Member

    Hello

    Matlab comes with few toolboxes whcih can conver the code into C code or C++ code.
    Matlab has a companion named Simulink which can produce C language code. http://www.mathworks.com/products/simulink/?BB=1

    You can use matlab compiler toolbox to convert your conde in C++ code. For product support visit this webpage and you can have an idea how to convert the code.
    http://www.mathworks.com/support/tech-notes/1600/1622_files/1622_R13.html#Convert_M_to_C

  • in reply to: Result is only TRUE. #3377

    niklaesh
    Member

    @Gramdtante wrote:

    Hello,you are not trying to print the result, as you can see variable res stores the result of the multiplication, but your are printing the result anywhere….You showResult function should look like

  • in reply to: How do I use char* variable type in C? #3266

    niklaesh
    Member

    Hello
    try this code.

    As you have declared a pointer which points a character.

    Now you are getting a value from the user and trying to store it in pointer type variable. scanf() function takes the address of the variable i.e. pointer to that variable and store the input. As you have already declared the pointer and you code scanf(“%s”, &yourName); is trying to save that input value in the address of that pointer. Which is logically incorrect. Your code looks fine and no error but it has a logical mistake that is why it compiles fine but gives error at runtime. You code should look like scanf(“%s”, yourName);
     

  • in reply to: #3246

    niklaesh
    Member

    The free() function deallocates the memory allocated by the functions malloc(), alloc(), calloc() etc… If you have forgot to call the free() function to free the memory, the values present at that memory location will be there untill another program or Operating System ower writes them.
    After the process is terminated all the controls and memory remain there with the values stored in them, but the pointers which point to those memory locations no longer exist. So if the process or the program is terminated that memory automatically gets free which is being used by that program or process. Even if the process or program is still running but that pointer, which points to the memory location we allocated using the malloc() function, does not exists, that memory location can be used for some other operation.
    Whe free the memory from time to time just for better memory management so that later we can use the same memory space for some other operations. ahsun2007-07-28 19:01:15

  • in reply to: hardware interaction #3196

    niklaesh
    Member

    Hello,
    U can make a program that displayes some graphics on the LCD. Or it outputs data using some LAser Light devices.

  • in reply to: What’s your favorite software? #3189

    niklaesh
    Member

    Internet Explorer for web browsing.
    Cown Jet-Adio for MP3s music and movies.
    Chatting – Yahoo Messenger
    Also Gaim for multi yahoo and multi msn sessions
    File Compression – WinRAR
     

  • in reply to: getche() nd getchar() #3183

    niklaesh
    Member

    As far as i know, getche() function echos the character on the screen. and getchar() returns teh next character.
    When u press Enter Button it returns ASCII value 10 and ASCII value 10 is the orignal n character.
    And you know on the STDIO when u press enter button it means a n character.
    This is my idea. Any one else migh have the correct answer.

  • in reply to: how to swap a string #3175

    niklaesh
    Member

    Bloodrager he didnt mention that he wanted to get input from the user. I made the programme according to the cituation he placed in the post.
    Any how thanks for correcting me about “< " ">“, actualy that is mys style of coding. I will try to adopt the changes.
    Thanks

  • in reply to: #3173

    niklaesh
    Member

    @msaqib wrote:

    I need to import data from Excel sheet and transform it and then load it into Access database. Do you have any idea how to do it. I searched alot of websites but could not get the reasonable answer. I got a script to do it but i doesnt work for me. Here is the script. Please any one correct it.

    I think you just need to change the drivers and it will work fine. Use the ODBC drivers and it will work.

  • in reply to: Windows, Mac or Linux? #3120

    niklaesh
    Member

    What is ‘Best’ ? In what respect ?
    If a user can find one task which can only be done by one but not by the others, then that one is the “best” for that moment, for that user. As always, “The Best Is Yet To Be.”

Viewing 10 posts - 1 through 10 (of 10 total)