Search:

Type: Posts; User: dbzx

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    4,089

    the thing is im running out of time, my test is...

    the thing is im running out of time, my test is tomorrow. and i tried doing this already. this is what i came up but im getting segmentation fault error.



    while (i<=size)
    {
    ...
  2. Replies
    7
    Views
    4,089

    how would i do that? because i am totally lost...

    how would i do that? because i am totally lost with this stuff.
  3. Replies
    7
    Views
    4,089

    what is dynamic memory allocation

    hi everyone,
    I have a hard time understanding structs, dynamic memory allocation, and linked list.
    Please explain to me what is going on in the following code.

    Also the question ask to me to...
  4. Replies
    5
    Views
    1,172

    nvm i figured it out, but thanks anyways.

    nvm i figured it out, but thanks anyways.
  5. Replies
    5
    Views
    1,172

    comparing strings in linked list

    basically, im trying to get my program to print list of students with a specified year. for example, if the specified year = junior, then the program will print all the junior students in the list.
    ...
  6. find the last occurence of char in string WITHOUT the use of strrchr()

    Hi, I am trying to write a function that locate the last occurence of a string without using string library. Also, i would like to use pointers but I am getting "Segmentation Fault" every time i run...
  7. counting distinct characters in string using pointers

    Hi all,
    I am trying to write a function that uses pointers to count the chars 'a', 'b', and 'c' in an input string.

    heres my code. Thanks in advance


    void count_abc(char *str, int *a, int...
  8. Replies
    1
    Views
    6,749

    using bitwise & to convert to octal

    okay, so I have no idea on how this would work. Im suppose to use convert binary to decimal then decimal to octal. i got the binary to decimal part but the decimal to octal part confuses me. the...
  9. Replies
    16
    Views
    3,236

    umm yes. and im stuck on the same part. i can get...

    umm yes. and im stuck on the same part. i can get the max value but not the min.
  10. Thread: fibonacci prime

    by dbzx
    Replies
    5
    Views
    10,748

    fibonacci prime

    Hey guys,

    My program basically accepts an index(less than 46) and determine whether it's fibonacci number is prime or not . i am basically done with my program which determine whether the but its...
  11. Thread: Some weird issue.

    by dbzx
    Replies
    7
    Views
    3,912

    i finally found out the reason. i changed the...

    i finally found out the reason. i changed the first 2 functions which return 0 to void functions because all it does it print stuff. anyways, thanks for all the input.
  12. Thread: Some weird issue.

    by dbzx
    Replies
    7
    Views
    3,912

    yes i am 100 percent positive. like i said, this...

    yes i am 100 percent positive. like i said, this program works with no issues on the IDE, Dev C++, just for some reason the Unix Server is being retarded....
  13. Thread: Some weird issue.

    by dbzx
    Replies
    7
    Views
    3,912

    thanks for the input but that didnt solve the...

    thanks for the input but that didnt solve the problem. and it seems like after a certain choice, it will give me a different sum. (eg. choice 1 then 4, sum will be 77, choice 2 then 4 = 77, choice 3...
  14. Thread: Some weird issue.

    by dbzx
    Replies
    7
    Views
    3,912

    Some weird issue.

    So my program basically allows the user to enter a positive integer and then a menu will pop up like this:

    Enter a positive integer: 11
    1. Is the given number an even or an odd...
  15. Replies
    1
    Views
    1,246

    decimal to base 8 algorithm

    I am trying to create a function inside my program that calculates a number in base 8(eg. 11 in base 8 is 13), but I dont know how this conversion works. I just need the method conversion, the code...
  16. Replies
    10
    Views
    22,095

    okay so i fixed it up but for some reason its not...

    okay so i fixed it up but for some reason its not printing.
    please help,


    #include <stdio.h>

    int main()
    {
    int a, b, max, min, results, count;
    max = 2000000000;
  17. Replies
    10
    Views
    22,095

    Division using repeated subtraction

    Okay so I am suppose to write a program that divides two numbers without using the operator "/"
    So i try writing the program using repeated subtraction, but I dont know if I am doing this right at...
  18. Replies
    11
    Views
    1,575

    just convert both of them to binary and do as...

    just convert both of them to binary and do as ulillillia told and after the result convert it to decimal.

    sorry for more questions but how would i know what the binary of each number is? and how...
  19. Replies
    11
    Views
    1,575

    okay i get the binary part. what bout changing it...

    okay i get the binary part. what bout changing it to decimal? how would i know what number wud it return?
  20. Replies
    11
    Views
    1,575

    &, &&, |, || operations question

    Okay so I know there are four operations, but I dont get how these work. Can someone please explain how these work in binary terms and decimal terms?

    Well for binary terms, I kind of get it but...
  21. Replies
    3
    Views
    1,724

    thanks, that really did the work.

    thanks, that really did the work.
  22. Replies
    3
    Views
    1,724

    help making triangle

    so I am trying to make a triangle in which :

    1. The number of elements in a row is equal to the row number
    2. Each element is the product of the row number by the column number.

    Example...
  23. Replies
    7
    Views
    1,662

    breaking out of a loop problem

    So my homework is:

    1. Your program will accept a sequence of positive integers (no greater than 2000000000, though your program does not need to check) until it sees an input of 100 for the second...
Results 1 to 23 of 24