Search:

Type: Posts; User: eater

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,245

    Simple Pointer Program

    I know that there are things on the internet but nothing seems to be helping right now. I am simply trying to reverse this string uses pointers and no strlen or reverse functions from the string...
  2. Thread: Simple Question

    by eater
    Replies
    8
    Views
    964

    u mean like into separate functions and calls?

    u mean like into separate functions and calls?
  3. Thread: Simple Question

    by eater
    Replies
    8
    Views
    964

    #include int main(void) { ...

    #include<stdio.h>

    int main(void)
    {
    char b[6];
    int z[6];
    int i = 0;

    int a= 1;
    int binary;
  4. Thread: Simple Question

    by eater
    Replies
    8
    Views
    964

    I understand that you would have to do it like...

    I understand that you would have to do it like that but see, I am converting a characters to integers of binary and I need it to be able to read the binary numbers as a sequence of integers...
  5. Thread: Simple Question

    by eater
    Replies
    8
    Views
    964

    Simple Question

    if I have a for loop like this:


    for (i = 0; i < 6; i++)
    {
    z[i] = a[i]-48;
    scanf("%d", z[i]);

    }
    printf("%d", z);
  6. Replies
    4
    Views
    1,488

    Here is the code that I have been trying to work...

    Here is the code that I have been trying to work with. I dunno, this should be really simple because all I want to do is take in a string (100110) and convert the string then to integers that look...
  7. Replies
    4
    Views
    1,488

    Ok so I don't think I was as clear as I would...

    Ok so I don't think I was as clear as I would have liked. Thanks for the help though. I think the point was that we don't use the atoi function because I thought of that as well. Here is the actual...
  8. Replies
    4
    Views
    1,488

    Converting a string to an integer

    So I need to write some code to take in a 6 bit binary "integer" that is actually a string of characters and I need to convert it into in an binary integer so that I can perform further functions on...
  9. Replies
    6
    Views
    1,239

    Alright guys I got it. Thanks a ton for the help.

    Alright guys I got it. Thanks a ton for the help.
  10. Replies
    6
    Views
    1,239

    I dont understand what I would put as the...

    I dont understand what I would put as the returning value inside of a[] for the second one though?
  11. Replies
    6
    Views
    1,239

    That worked but now it prints half my numbers in...

    That worked but now it prints half my numbers in the out file and half in the terminal?
  12. Replies
    6
    Views
    1,239

    Real quick!!! Output prob.

    Hey guys I need my program to write the sorted array into an output file in addition to printing it. It prints just fine but it returns an empty output file. What am I missing? I know this is...
  13. Replies
    16
    Views
    3,286

    I actually got it early....really early this...

    I actually got it early....really early this morning. I was actually able to return both a MAX and MIN value from the same function as I initially tried to do. The only problem with my code stood...
  14. Replies
    16
    Views
    3,286

    dbzx ur in my class aren't you? do you know how...

    dbzx ur in my class aren't you? do you know how to do this?
  15. Replies
    16
    Views
    3,286

    ugh I have been trying to figure this out for far...

    ugh I have been trying to figure this out for far too long. is there anyone who knows how I should fix this?
  16. Replies
    16
    Views
    3,286

    Well I thought it did so I changed my code to...

    Well I thought it did so I changed my code to look like this but it doesnt output correctly. Did I change my code correctively. I believe my main function was already designated to a return an...
  17. Replies
    16
    Views
    3,286

    Hey guys so disregard everything I have done...

    Hey guys so disregard everything I have done previosly I have made some serious headway on my program at the cost of my sleep and/or health. haha. So at this point the entire program should run...
  18. Replies
    16
    Views
    3,286

    k so I set multiply = to 1 and I added an address...

    k so I set multiply = to 1 and I added an address operator but its still giving me a bus error? thanks for your patience/



    #include<stdio.h>
    #define COL 6
    #define ROW 4
    int mult(int...
  19. Replies
    16
    Views
    3,286

    I'm sorry, which variable has not already been...

    I'm sorry, which variable has not already been initialized vart? And I tried taking the address of ma[i][j] but it still returns a bus error
  20. Replies
    16
    Views
    3,286

    The second code compiles without errors but there...

    The second code compiles without errors but there is a bus error. What should I do? And will this perform the correct operation?
  21. Replies
    16
    Views
    3,286

    Actually I think this code will probably be...

    Actually I think this code will probably be better and more simple:



    #include<stdio.h>
    #include<stdlib.h>
    #define COL 6
    #define ROW 4
    int mult(int ma[][6]);
  22. Replies
    16
    Views
    3,286

    multiplying a matrix inputed from a file

    Hey everyone,

    I am creating a program that opens a file that contains a 4 x 6 matrix and then stores it in a two dimensional array. It then prompts the user to enter a number which the program...
Results 1 to 22 of 24