User Profile

Collapse

Profile Sidebar

Collapse
ipazman420
ipazman420
Last Activity: Dec 14 '06, 09:28 PM
Joined: Nov 7 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ipazman420
    started a topic input streams...? reading files...?
    in C

    input streams...? reading files...?

    Okay, so I'm pretty new at this whole file reading thing, and I'm trying to make it so that the program reads a file, attaches a line number to the beginning of each line, and sends the output to another file. The thing is, there's this error that pops up, and I'm not exactly sure why.

    The code that I have is as follows:
    Code:
    #include <iostream>
    #include <fstream>
    using namespace std;
    int
    ...
    See more | Go to post

  • ipazman420
    replied to Strange problem?
    in C
    Woah, I just found what my problem was; I didn't put the function into the main program. Guess I just answered my own question. =P
    See more | Go to post

    Leave a comment:


  • ipazman420
    started a topic Strange problem?
    in C

    Strange problem?

    Okay, so I'm trying to make a program that takes one array and splits the odd components from the even components, and I'm supposed to show what comes out. The thing is, my program doesn't separate it for some reason. I'm trying to figure out where the problem could be in my coding... Here's what I have.
    Code:
    #include <iostream>
    using namespace std;
    
    void separator(int a[ ], int na, int odd[ ], int& no,
    ...
    See more | Go to post

  • ipazman420
    replied to Question on array?
    in C
    looks like you don't have any output.
    See more | Go to post

    Leave a comment:


  • ipazman420
    replied to Reversing digits
    in C
    Okay, thanks for the help Horace1; I've implemented what you suggested into my code.
    In response to seeminsuleri, I haven't gone so far as to learn linked lists yet, and I think my teacher gave me an upper bound of 5 digits.
    So here's what was assigned of me, and this is what I came up with:

    Write a function that takes an arbitrary integer value and returns the number with its digits reversed. For example, given the number...
    See more | Go to post

    Leave a comment:


  • ipazman420
    started a topic Reversing digits
    in C

    Reversing digits

    Hi, I'm rather new at C++, and I'm having problems wrapping my brain around this problem. What I'm supposed to do is as follows:

    Write a function that takes an arbitrary integer value and returns the number with its digits reversed. For example, given the number 12345 the function should return 54321. We assume that the reverse of 1000 can be 1 because leading zeros are omitted. Similarly, the reverse of 000123 is 321.
    ...
    See more | Go to post
No activity results to display
Show More
Working...