Search:

Type: Posts; User: JorgeChemE

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Excuse me for double post. I thought it failed...

    Excuse me for double post. I thought it failed after submitting.
  2. How would you optimize this code? (Memory allocation for character input)

    This is maybe the last exercise I will do of my course (yet finished). We have 6 exercises that our instructor left in the last class, 6 exercises about memory allocation, this is the fourth one.
    ...
  3. How would you optimize this code? (Memory allocation for character input)

    This is maybe the last exercise I will do of my course (yet finished). We have 6 exercises that our instructor left in the last class, 6 exercises about memory allocation, this is the fourth one.
    ...
  4. I'm still solving the remaining exercises, 6, but...

    I'm still solving the remaining exercises, 6, but once finished, I will need good books to learn by myself. In fact, I would want to ask about resources to learn about: pointers, string management,...
  5. Insert the number or characters: 10 Insert the...

    Insert the number or characters: 10
    Insert the text: Unimaginatively
    tanigaminU

    The thing is to allocate the memory that the user insert through keyboard (my instructor seems to be a fanatic of...
  6. I am trying another cleaner code. What do you...

    I am trying another cleaner code. What do you think?


    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    char c;
    char *ptr;
  7. Thank you for your information. In the meantime I...

    Thank you for your information. In the meantime I study laser code, what if I want to get the string reverted? For example: Hi my name is Jorge -> egroJ si eman ym iH

    Using the same code, I tried...
  8. Thank you for your code Laser. I want to study...

    Thank you for your code Laser. I want to study it, however, I wonder I have not enough knowledge to understand some parts. I didn't study stderr so I have no idea what this function does.
  9. This is the code that does the work: ...

    This is the code that does the work:



    #include <stdio.h>
    #include <stdlib.h>

    int main()
    {
    int num, i=1;
  10. This is the best code I have until now, works...

    This is the best code I have until now, works good, do what should be doing. Since I am not enrolled in the course (finished) I am open to improvements.


    #include <stdio.h>
    #include <stdlib.h>
    ...
  11. I'm not conviced with the results... Program...

    I'm not conviced with the results... Program works with small words but if I put a num=10 and write a large word, crashes...
  12. Hi guys, After messing up the code, according...

    Hi guys,

    After messing up the code, according to your recommendations, I changed the loop "for" for "while". This is the code right now:


    #include <stdio.h>
    #include <stdlib.h>


    int main()
  13. Sorry, I forgot to remove using namespace std;....

    Sorry, I forgot to remove using namespace std;. This is C, I am trying to solve it in C. I will fix the code, see now.

    Thank you for the printf. I used the fflush(stdin) because the program...
  14. Dynamic memory allocation. Very simple question.

    Hi. I am trying to understand dynamic memory allocation. Now I am learning by myself, so any advice will be appreciated and taken into account in the code since nobody but me will see it.

    I am...
  15. Yes, I removed num_leidos, took the idea of one...

    Yes, I removed num_leidos, took the idea of one of my classes. This is exactly what I am doing, saving and loading the file in every function. After a hard work I will have the chance to submit the...
  16. Replies
    1
    Views
    1,792

    How to make a menu with this appareance?

    I know how to make a menu but I need something with a similar appearance to this:

    http://www.codewithc.com/wp-content/uploads/2014/04/menu1.png

    Thanks in advance

    Edited: What I don't know...
  17. Never mind, solved by myself, int num_leidos=1;...

    Never mind, solved by myself, int num_leidos=1; num_leidos= removed and substituted by &primero. Now prints all the records. You can ignore this post.
  18. ok, I have an update I made this changes: ...

    ok, I have an update I made this changes:



    typedef struct {
    unsigned int dia;
    unsigned int mes;
    unsigned int anio;
    } fecha;
  19. Problem reading a database from a file using pointers

    Hi, I hope someone can clarify me how can I read from a file using a pointer that I need to read all the pets that I am adding through a function. Before reading from a file, everything worked...
  20. Worked perfectly, thank you!

    Worked perfectly, thank you!
  21. Read and print from a file line by line and print >> at the end of each line

    Hi,

    I am making an easy program that reads a text from a file and prints the content line by line indicating each number of line and printing >> at the end of each line.

    This is the file:...
  22. This is a good and polite manner to say things...

    This is a good and polite manner to say things and I appreciate it. Just remember because I told you lots of times: this is not my field of knowledge, this is not what I must do to earn a salary and...
  23. Ok, thank you for all your support, is...

    Ok, thank you for all your support, is appreciated.
  24. Jim, I know how to use fgets but we are required...

    Jim, I know how to use fgets but we are required to submit this project to be evaluated, in class we only studied scanf and gets for this purpose, we also studied getch, getchar, getche, puts and...
  25. To protect my work I changed the code a little,...

    To protect my work I changed the code a little, the program is not about patients, is about a pets and a vet. Anyway, this is my code, ony this part of modifying pets:

    Structure:



    typedef...
Results 1 to 25 of 104
Page 1 of 5 1 2 3 4