Search:

Type: Posts; User: myphilosofi

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    2,570

    problems with the multiplication of the matrices....

    problems with the multiplication of the matrices. help! please. thanks!



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

    int inputexponent(){
  2. Replies
    22
    Views
    2,570

    i do think that would work. but the problem is...

    i do think that would work. but the problem is the theoretical question of what if it's more than that? it's not just i need the program to work, but also i need the code to be correct.


    is the...
  3. Replies
    22
    Views
    2,570

    thanks, i've realized that. :D is it really...

    thanks, i've realized that. :D

    is it really possible to store a string using fgets without first knowing the size of the string to be entered?

    i mean what do i put in the "size" in...
  4. Replies
    22
    Views
    2,570

    i have an idea for my problem: if i use malloc...

    i have an idea for my problem:

    if i use malloc in a loop so that it allocates memory in increments for an array, will it affect the elements of the array stored before?

    for example:


    int...
  5. Replies
    22
    Views
    2,570

    hmm. i don't think that's the best way. based...

    hmm. i don't think that's the best way.

    based on the attached image of the problem, i should use pointers to "store" the matrix since the limit of the matrix size is unknown or infinite.

    but i...
  6. Replies
    22
    Views
    2,570

    thanks tabstop! so this is what i'm planning...

    thanks tabstop!

    so this is what i'm planning to do:

    1.let user input numbers (required: separated by one or more spaces)
    loop as long as there is a space (since the exponent should just be an...
  7. Replies
    22
    Views
    2,570

    unfortunately, i can't ask the user to input the...

    unfortunately, i can't ask the user to input the size of the matrix.

    here is the exact problem: it is attached :D
  8. Replies
    22
    Views
    2,570

    or a sample code? thanks!

    or a sample code?

    thanks!
  9. Replies
    22
    Views
    2,570

    oh ok. thanks! but i haven't used a buffer...

    oh ok. thanks! but i haven't used a buffer variable before. do you have a link where there's an explanation on how to use a buffer variable?
  10. Replies
    22
    Views
    2,570

    an example code would really be helpful. thanks!

    an example code would really be helpful. thanks!
  11. Replies
    22
    Views
    2,570

    thanks! can i use malloc if the maximum size...

    thanks!

    can i use malloc if the maximum size of the matrix is not known since there really is no limit to the size of the matrix?
  12. Replies
    22
    Views
    2,570

    Pointer question

    Hi!

    How do I use pointers if i need to let the user input an unknown number of numbers or characters?

    I need to do this because i have to create a program that will be able to
    perform...
  13. Replies
    34
    Views
    7,693

    actually, my code is in pure english. maybe the...

    actually, my code is in pure english.
    maybe the "spanish" part you're referring to is the name
    of the currency which is "peso". and in our country we use centavos instead of cents.
  14. Replies
    34
    Views
    7,693

    here's the program that's already working. hope...

    here's the program that's already working.
    hope you could help on shortening it.
    please? thanks! :)




    #include<stdio.h>
    #include<string.h>
  15. Replies
    34
    Views
    7,693

    Question

    I've been trying to understand this but i can't fully come up with
    a full idea. I mean, i can't understand:
    "string ones(int num);" or how to use this.
    and also, how to separate the Billions,...
  16. Replies
    34
    Views
    7,693

    Hey, it's me again

    one of my classmates said to use "atol"

    does anyone have any idea how and why?

    thanks!
  17. Replies
    34
    Views
    7,693

    :)

    Hi! Thanks for all the replies!

    This is the code of my classmate that he shared with me.
    I just edited it so that it'll still work without the cents places.
    But i don't know what to do with the...
  18. Replies
    34
    Views
    7,693

    this is not mine but the one who made this said...

    this is not mine but the one who made this said this is right..but i can't understand it:



    #include<stdio.h>

    void pw(long,char[]);
    char *one[]={" "," one"," two"," three"," four"," five","...
  19. Replies
    34
    Views
    7,693

    here's another one: void cents(char...

    here's another one:



    void cents(char tenscent, char onescent, char salita[]){

    switch(tenscent){
    case '0': specialcase2(onescent, salita);return; break;
    ...
  20. Replies
    34
    Views
    7,693

    problem is, i don't know what to do if the user...

    problem is, i don't know what to do if the user enters commas and a decimal point..
    and my classmates say that scanf is not allowed. what should i do?
  21. Replies
    34
    Views
    7,693

    Here's what i've done so far..

    #include<stdio.h>
    #include<string.h>

    int main(void)
    {
    char numin[100];
    char ones[100];
    char tens[100];
    char hundreds[100];
  22. Replies
    34
    Views
    7,693

    Number to Word (Billions)

    Hi i would just like to ask how or what's the logic needed to make a c program converting a number to a word?

    example.
    1,000,000 = one million
    1000000 = one million
    1000000.00 = one million (or...
Results 1 to 22 of 22