That makes sense :)
Ur previous
int* c = const_cast<int>(a); //OK
had me confused for a while :)
Type: Posts; User: heljy
That makes sense :)
Ur previous
int* c = const_cast<int>(a); //OK
had me confused for a while :)
Oops, I did made a mistake when posting the code to the forum, but I did used FILE in my code.
Hmm..what does const_cast do?
Is it specifically only for casting const data?
I am did something like this:
struct myStruct {
File *file
.
.
.
};
status someMethod (const File *file, int a) {
Thanks for the info!
suppose I do this:
int main () {
someclass** myclass;
myclass = new someclass* [50];
.
.
So how we assign referenace is basically
int value;
int & ref = value;
instead of pointers like this
int value;
int *pt = &value;
I was assigned to write a function for a hashtable.
The declaration looks like this:
Status lookup(const File* file, const int pageNo, int & frameNo);
I am new to C++ but have written in C...
Guess you can do that by using:
fopen, fclose, fgets, fprintf.
Thats because I am not very active here I guess =P
Guess I should be!! *Motivated now :D*
Thanks alot PutoAmo and Hairyian!!
Hairyian, thats a very detail breakdown of it!! =))
Now that casting comment is very informative! I did not know that =P
Thanks once again!
Hi Guys, got a question here about malloc and free calls...
Say I want to allocate a dynamic array of struct, I go something like
tydef struct somestruct mystruct;
mystruct *pt =...
Thanks for that! Makes sense now....
Another question of mine is what library do we include? Since MFC is Microsoft's, can we just get the library freely, without the IDE to use it?
I am going...
How would that make it different from Win32 then? From what I know, I thought that win32 is an API for creating Window Application??
So MFC is built on top of Win32?
So we have to include the...
What exactly is MFC??
I see it all around the forums and its also included in Visual C++ .net that I am using now.
What so special about it??? :confused:
I bought it for from school for about $100....
But I saw one at ebay for about $50 + Shipping.
Since we can install it on multiple computers, why would they stilll have that activation thing...
Just a off topic here...
Does anyone here knows if Visual Studio .net Academic can be installed on more than 2 computers?? I have 2 desktop, and a notebook....
Thanks! :)
I posted this in the linux forums, but no one seems to know about this :(
So here I go:
I am doing a project to stimulate the scheduing policy of an OS under Unix Solaris.
Its something...
I am doing a project to stimulate the scheduing policy of an OS under Unix Solaris.
Its something like that:
A process, say A will communicate to another process, which is the OS, and then...
Oops, here's the file:
HEY SHIRO!!!!!!
ITS WORKING!! :D
Thanks alot dude!
Guess experience really counts here :P
Once again thank you very much for pointing that out (I spent about 1 hour figuring out whats...
I am trying to write an simple program to encrypt/decrypt the contents of a text file.
This is the function that I am using:
/*
* Encrypt/Decrypt a file by conducting an XOR operation on the...
hmm...that sounds right :)
Thanks!
So the key would be a single byte as well??
I will try that out, thanks :)
Hey guys,
Got a quick question.
I am planning on writing a very very simple encryt/decrypt program just for the sake of it. :D
Now I understand that the simplest way is just to XOR the file...