problems with the multiplication of the matrices. help! please. thanks!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int inputexponent(){
Type: Posts; User: myphilosofi
problems with the multiplication of the matrices. help! please. thanks!
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int inputexponent(){
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...
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...
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...
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...
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...
unfortunately, i can't ask the user to input the size of the matrix.
here is the exact problem: it is attached :D
or a sample code?
thanks!
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?
an example code would really be helpful. thanks!
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?
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...
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.
here's the program that's already working.
hope you could help on shortening it.
please? thanks! :)
#include<stdio.h>
#include<string.h>
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,...
one of my classmates said to use "atol"
does anyone have any idea how and why?
thanks!
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...
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","...
here's another one:
void cents(char tenscent, char onescent, char salita[]){
switch(tenscent){
case '0': specialcase2(onescent, salita);return; break;
...
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?
#include<stdio.h>
#include<string.h>
int main(void)
{
char numin[100];
char ones[100];
char tens[100];
char hundreds[100];
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...