Search:

Type: Posts; User: heljy

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: a const question

    by heljy
    Replies
    8
    Views
    1,059

    That makes sense :) Ur previous int* c =...

    That makes sense :)

    Ur previous

    int* c = const_cast<int>(a); //OK

    had me confused for a while :)
  2. Thread: a const question

    by heljy
    Replies
    8
    Views
    1,059

    Oops, I did made a mistake when posting the code...

    Oops, I did made a mistake when posting the code to the forum, but I did used FILE in my code.
  3. Thread: a const question

    by heljy
    Replies
    8
    Views
    1,059

    Hmm..what does const_cast do? Is it...

    Hmm..what does const_cast do?

    Is it specifically only for casting const data?
  4. Thread: a const question

    by heljy
    Replies
    8
    Views
    1,059

    a const question

    I am did something like this:

    struct myStruct {
    File *file
    .
    .
    .
    };

    status someMethod (const File *file, int a) {
  5. Replies
    2
    Views
    1,916

    Thanks for the info!

    Thanks for the info!
  6. Replies
    2
    Views
    1,916

    deleting dynamically allocated memory...

    suppose I do this:

    int main () {

    someclass** myclass;

    myclass = new someclass* [50];

    .
    .
  7. Replies
    3
    Views
    1,008

    So how we assign referenace is basically int...

    So how we assign referenace is basically


    int value;
    int & ref = value;

    instead of pointers like this

    int value;
    int *pt = &value;
  8. Replies
    3
    Views
    1,008

    Does it makes sense?

    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...
  9. Thread: File handling

    by heljy
    Replies
    5
    Views
    1,894

    Guess you can do that by using: fopen, fclose,...

    Guess you can do that by using:

    fopen, fclose, fgets, fprintf.
  10. Replies
    5
    Views
    3,696

    Thats because I am not very active here I guess...

    Thats because I am not very active here I guess =P

    Guess I should be!! *Motivated now :D*
  11. Replies
    5
    Views
    3,696

    Thanks alot PutoAmo and Hairyian!! Hairyian,...

    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!
  12. Replies
    5
    Views
    3,696

    Malloc and Free.....

    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 =...
  13. Thread: Mfc??

    by heljy
    Replies
    4
    Views
    1,104

    Thanks for that! Makes sense now.... Another...

    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...
  14. Thread: Mfc??

    by heljy
    Replies
    4
    Views
    1,104

    How would that make it different from Win32 then?...

    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...
  15. Thread: Mfc??

    by heljy
    Replies
    4
    Views
    1,104

    Mfc??

    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:
  16. Replies
    4
    Views
    1,377

    I bought it for from school for about $100.... ...

    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...
  17. Replies
    4
    Views
    1,377

    Visual Studio .net Academic...

    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! :)
  18. Replies
    0
    Views
    1,671

    Signals in Unix Solaris

    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...
  19. Replies
    0
    Views
    1,494

    Signals in Unix Solaris

    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...
  20. Oops, here's the file:

    Oops, here's the file:
  21. HEY SHIRO!!!!!! ITS WORKING!! :D Thanks...

    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...
  22. Hmm....help me take a look at this: File Encryptor

    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...
  23. Thread: File Encrytor

    by heljy
    Replies
    4
    Views
    1,346

    hmm...that sounds right :) Thanks!

    hmm...that sounds right :)

    Thanks!
  24. Thread: File Encrytor

    by heljy
    Replies
    4
    Views
    1,346

    So the key would be a single byte as well?? I...

    So the key would be a single byte as well??

    I will try that out, thanks :)
  25. Thread: File Encrytor

    by heljy
    Replies
    4
    Views
    1,346

    File Encrytor

    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...
Results 1 to 25 of 36
Page 1 of 2 1 2