Search:

Type: Posts; User: zetaXX

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    1,970

    NVM Im stupid I was not assigning the function...

    NVM Im stupid I was not assigning the function BomboCrea to a variable, thx anyways ^^
  2. Replies
    9
    Views
    1,970

    Still not working :(

    Still not working :(
  3. Replies
    9
    Views
    1,970

    Help with this code please!

    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...
  4. Replies
    2
    Views
    722

    Help with lists please

    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;...
  5. Replies
    8
    Views
    1,349

    The file would be a .txt and it would be like...

    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?...
  6. Replies
    8
    Views
    1,349

    File management, help please!

    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
    ...
  7. Replies
    15
    Views
    1,721

    Alright I just needed (int *) between malloc and...

    Alright I just needed (int *) between malloc and equal sign, thx!
  8. Replies
    15
    Views
    1,721

    Alright, sorry about taking too long, changes are...

    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{
  9. Replies
    15
    Views
    1,721

    Ok ok, I did but I get the same error in the...

    Ok ok, I did but I get the same error in the function
  10. Replies
    15
    Views
    1,721

    but I need to V to be an array not a pointer lol!...

    but I need to V to be an array not a pointer lol!
    I cant uderstand you I think xD
  11. Replies
    15
    Views
    1,721

    So I have to use malloc on my struct? I mean ...

    So I have to use malloc on my struct?
    I mean

    v = (int*)malloc ( n*sizeof(int) );It is right?
  12. Replies
    15
    Views
    1,721

    And how do I do it?

    And how do I do it?
  13. Replies
    15
    Views
    1,721

    problem with structure

    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...
  14. How do I assign the value from a function to a variable?

    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...
  15. Replies
    8
    Views
    995

    Could you explain me how should I do it? I mean I...

    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?
  16. Replies
    8
    Views
    995

    I need some help with C

    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...
Results 1 to 16 of 17