NVM Im stupid I was not assigning the function BomboCrea to a variable, thx anyways ^^
Type: Posts; User: zetaXX
NVM Im stupid I was not assigning the function BomboCrea to a variable, thx anyways ^^
Still not working :(
First of all, sorry about the language of arguments and functions(they are on spanish :( ). The problem is the following: I need to this function to get a random number between the limits 1 and the...
Hi! Im trying to learn about lists in C but I cannot get it :frown:, here is part of an example taken from a book:
struct tlist{
long DNI;
char Name[25];
int Age;...
The file would be a .txt and it would be like this:
37 4 5 6 3 2 1 6 9 0 1 3 4 5 6 8 1 8
3 4 5 1 3 8 2 4 2 2 8 1 8 3 4 8 2 8
The first value would be the size of the array. What did I do?...
Hi, Im dealing with file management now, and I need some help here. Well what I need is to get the first integer from a file and assign it to a variable and the others integers to an array. Example
...
Alright I just needed (int *) between malloc and equal sign, thx!
Alright, sorry about taking too long, changes are made, thats my code
#include<stdlib.h>
#include<stdio.h>
#include<time.h>
#include <malloc.h>
struct Array{
Ok ok, I did but I get the same error in the function
but I need to V to be an array not a pointer lol!
I cant uderstand you I think xD
So I have to use malloc on my struct?
I mean
v = (int*)malloc ( n*sizeof(int) );It is right?
And how do I do it?
Hey! I just started with structs so it probably will be a stupid fail, but I dont give with the clue! Thats part of my code:
struct Array{
int v[];
int n;
};
Array...
Hi! Im starting with C so sorry about my low knowledge of this. Like I said in the title, how do I assign the value from a function to a variable? I mean I have this function:
int...
Could you explain me how should I do it? I mean I know how to use pointers, but where should I place them and in what way should I change the function and main?
Well guys Im starting with C and Im doing a really simple program, but its giving me some issues Maybe you will be able to help me, thats my code
#include <stdlib.h>
#include <stdio.h>
void...