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...
Type: Posts; User: wayne08
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...
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..
...
@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...
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,...
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...
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...
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()
...
yeah..its just a question my prof asked..
said what concept of c++ can be used if we want to do so..
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..
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...
cool..i'll try..thanks..
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...
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...