Search:

Type: Posts; User: Hybodus

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    2,144

    basic linked list program problem

    I want to create a link list that has two record,
    and insert another record in between the two.
    However my program is not working properly in the sense that the linked list did not really re-link...
  2. Replies
    2
    Views
    19,500

    Wow thank you. I have no idea what I was thinking.

    Wow thank you. I have no idea what I was thinking.
  3. Replies
    2
    Views
    19,500

    Converting ASCII to Binary in C++

    Hi guys I'm trying to write a program to convert ASCII code into binary but it is not working properly.



    #include <iostream>
    #include <cmath>

    using namespace std;

    int main()
  4. Replies
    2
    Views
    1,761

    putback() not putting back?

    Hi I am trying to run a program that will find the word "Son" in a text file and change it into the word "Gun, but apparently it is not working because the function putback() doesn't seem to be...
  5. Help! Visual Studio 6 Newb I'm stuck on first program

    Hello Guys, I just downloaded visual studio 6 but it appears that it is not working well.

    I started my first program based on this guide: Introduction to Visual C++ 6

    Followed all the...
  6. Replies
    2
    Views
    1,881

    Generating random number from set

    The problem asks me to write a c statement that will assign an int variable a random number from [25, 50, 75, 100]

    I am thinking of using rand() but I'm not sure how

    perhaps?
    for (int i = 0;...
  7. Writing a beginner program using argc and argv

    The assignment requires me to: Write a function Length with parameters argc and argv that returns the average length of the program's command line argument.

    So here is what I did:


    int Length...
  8. Replies
    2
    Views
    2,053

    Some questions regarding argc and argv in C

    Consider the following code:


    #include <stdio.h>

    int main (int argc, char* argv[])
    {
    int i;
    for (i = 0; i < argc; i++)
    {
  9. Replies
    3
    Views
    2,013

    Thanks alot!

    Thanks alot!
  10. Replies
    5
    Views
    1,046

    Hey thanks guys for the responses. But the main...

    Hey thanks guys for the responses. But the main problem I have is that since "s+k" == "&s[k]" (or at least I hope they are equivalent), why is the printf function able to print out the string instead...
  11. Replies
    3
    Views
    2,013

    Tracing through a recursive program in C

    Say we have the program:



    #include <stdio.h>

    void binary_representation (int n)
    {
    if (n != 0)
    {
  12. Replies
    5
    Views
    1,046

    String confusion in C, Beginner question X(

    Suppose we have written the code:



    void printString (char *s);

    int main
    {
    char *t = "num123";
    printString(t);
  13. Replies
    1
    Views
    4,446

    Function prototype declared as pointer

    For example the problem asks me to:

    Write a complete C function named findItem, the prototype of which is given below, that returns the pointer to the first occurrence of an integer value item...
  14. Replies
    12
    Views
    3,588

    Thanks

    Thanks a lot you guys, I'm new to C and passing-by-reference is a big challenge for me as well as pointers...arrays and alot of things. And sorry for the confusion there but the problem is quite...
  15. Replies
    12
    Views
    3,588

    Sorting and printing out array entries

    The problem wants me to create a main function that allows users to enter a list of numbers, then create a function that finds the largest entry in magnitude then switch the largest entry that I...
Results 1 to 15 of 17