Search:

Type: Posts; User: Hypercase

Search: Search took 0.00 seconds.

  1. Thread: Namespace

    by Hypercase
    Replies
    2
    Views
    912

    Namespace

    I am using Borland C++ 5.02 and my operating system is Windows 2000.
    Im having trouble compiling the following code:-


    #include <iostream>
    using namespace std;
    int main()
    {
    cout <<...
  2. Thread: text files

    by Hypercase
    Replies
    4
    Views
    1,114

    getfile keeps reading the same line. I tried it...

    getfile keeps reading the same line. I tried it in a loop and it still reads only the first line. Could u plz give me a small example.
  3. Thread: text files

    by Hypercase
    Replies
    4
    Views
    1,114

    text files

    I have created an input stream to read from a text file. I am able to read the first line using Infile.get(array,characters,'\n');
    How do i read the second line? How do i get the program to read the...
  4. Thread: file search

    by Hypercase
    Replies
    3
    Views
    1,215

    file search

    hi,
    how do i go about making a program that searches for a particular file.
    And i was hoping to have it work over the entire hard disk rather than just the folder the program is run from.
    I'm...
  5. Replies
    1
    Views
    1,360

    Large Numbers

    I,ve been trying to write a program that calculates the factorial of a number.
    The program works quite well, but for the fact that i'm unable to store the value of the factorial.
    80! has over a...
  6. Replies
    8
    Views
    1,442

    Too many variables

    How do i delete a variable.

    If I have a variable declared:



    <data type> <variable name>;


    and if my prog is long and i have used the variable and dont require it any longer.
  7. Replies
    5
    Views
    1,305

    If it was Windows XP and Borland C++ 5.02, how...

    If it was Windows XP and Borland C++ 5.02, how would it be done.
  8. Replies
    5
    Views
    1,196

    The alternatives suggested by jlou dont seem to...

    The alternatives suggested by jlou dont seem to work.
    I'm still using Seekg(0), and clear(), however i write the input as cin>>dec>>i;
    This seems to have ended the problem.
    But could you plz...
  9. Replies
    5
    Views
    1,196

    Invalid input

    I'm having problems validating my input values.
    To ensure only numeric input i did:


    while(cin.good())
    {
    cout<<"Please enter a number: ";
    cin>>i;
    cout<<cout<<i;
    }
  10. Thread: int to char

    by Hypercase
    Replies
    6
    Views
    1,372

    int to char ??y :confused:

    Why would you want to do that? :confused:
    Anyway hope this helps:-


    #include <iostream>

    int main()
    {
    int int_char;
    char C;
  11. Replies
    2
    Views
    2,013

    Program Performance

    I have written a prog in C/C++, no OOPs concepts.
    How do I find how much processing power, and memmory my program uses while it runs?
    I'm using a Borland C++ 5.02 compiler.
    -Cheers
  12. Replies
    6
    Views
    2,050

    I dont think its really efficient to call a func...

    I dont think its really efficient to call a func to run just on line of code.
    You display of the answer could be included in the calculation function.
  13. Thread: Bit Display.

    by Hypercase
    Replies
    11
    Views
    2,177

    Thanx Vicious, that was very helpful.

    Thanx Vicious, that was very helpful.
  14. Thread: Bit Display.

    by Hypercase
    Replies
    11
    Views
    2,177

    Thanx for the program, i hav another one working...

    Thanx for the program, i hav another one working too. Its just that I wanted to know what was wrong with the code I posted above.
    Also by doing "testvalue >> loop " I'm changing the testvalue which...
  15. Thread: Bit Display.

    by Hypercase
    Replies
    11
    Views
    2,177

    Bit Display.

    mask = 0x80;
    for(i = 0; i < 8; i++)
    {
    if((testvalue & mask)!= 0)
    {
    cout<<"1";
    }
    else
    {
    cout<<"0";
  16. Thread: Bit Usage

    by Hypercase
    Replies
    20
    Views
    3,270

    Thanx. Is there any way i can get the system to...

    Thanx.
    Is there any way i can get the system to store an integer in 3 bytes.
    And how do i do consecutive reads on a two dimensional array.
    eg:- If i had an array[8][9] how can i read it 6 values...
  17. Thread: Bit Usage

    by Hypercase
    Replies
    20
    Views
    3,270

    Thanx for the help. But how do i manipulate...

    Thanx for the help.
    But how do i manipulate individual bits, is there an prog that can be created to change the individual bits,could i target a particular bit in the 4 bytes for an integer and...
  18. Thread: Bit Usage

    by Hypercase
    Replies
    20
    Views
    3,270

    Bit Usage

    I was working on a project, and how do i use individual bits,
    i thought of using bools, but they take up a byte.
    Is there i can declare and manipulate individual bits.
    An int is stored in 4 bytes,...
  19. Replies
    9
    Views
    3,095

    Insertion sort

    Hi,
    I'm programming in C(basic stuff mostly).
    I've got a selection sort and a bubble sort going.
    But what's an insertion sort and binary sort ? :( could you please explain these sorting...
Results 1 to 19 of 19