Search:

Type: Posts; User: wayne08

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,318

    ok so i had defined a function with return type...

    ok so i had defined a function with return type void. that gave an error..

    now i tried a function with return type int. got just a warning.

    so it is that the compiler provides an implicit...
  2. Replies
    4
    Views
    1,318

    Function Prototype Doubt

    A quick simple question...

    I've read at somewhere that function prototypes are not compulsory in C n are in C++ .
    But i tried a program without a function prototype n yeah i got errors..
    ...
  3. @MK27 - yes i read the article.. that is what i...

    @MK27 - yes i read the article.. that is what i have done. thanks. however, it doesnt say on encrypting the file.

    @laserlight - i read about mcrypt but i'm not sure what i am to do to use it. Is...
  4. my file is not readable as such anyway.. i am...

    my file is not readable as such anyway..

    i am writing simple structures having 3 float values to the file.

    and i can print the values back also

    what i want is that if i enter the WRONG KEY,...
  5. Replies
    9
    Views
    1,802

    accepting code is to accept the elemets of...

    accepting code is to accept the elemets of array..

    for(i=0;i<MAX;i++)
    cin>>a[i];


    display is similarly display..


    its not a proper code to be written ..just a conceptual question. and...
  6. Encrypting/Decrypting file holding binary data

    How to encrypt/decrypt a file that has binary data in it..

    its a sort of database file. a number of records of fixed length stored in it. i've used fwrite to write each record (structure).

    i...
  7. Replies
    9
    Views
    1,802

    No ..parameter is an obvious way or an if...

    No ..parameter is an obvious way or an if statement in the function..but thats not to be used..

    i'll give a sort of snippet..

    class abc
    {
    int a[10];
    public:
    xyz()
    ...
  8. Replies
    9
    Views
    1,802

    yeah..its just a question my prof asked.. said...

    yeah..its just a question my prof asked..

    said what concept of c++ can be used if we want to do so..
  9. Replies
    9
    Views
    1,802

    I dont want to use the function for different...

    I dont want to use the function for different data types.. instead want to use it for different operations..

    in case it can be done using function templates then plz tell..
  10. Replies
    9
    Views
    1,802

    A tricky(maybe simple) question

    Okay this might have a simple answer but its not clicking..

    How to use the same member function say xyz() to perform 2 different tasks?

    NO..not talking about Function Overloading. The same...
  11. Replies
    5
    Views
    6,285

    cool..i'll try..thanks..

    cool..i'll try..thanks..
  12. Replies
    5
    Views
    6,285

    thanks..i'll consider what u say but as of now...

    thanks..i'll consider what u say but as of now i'm short of time..

    its like im creating a student database. i accept the name,roll no.,marks etc as the variables in the structure and then write...
  13. Replies
    5
    Views
    6,285

    Garbage values in File

    Hello..

    I'm creating a text file in C. I'm able to read and write into it correctly. However, when i open the file in Notepad or in command prompt edit, it shows garbage values.

    What is the...
Results 1 to 13 of 13