Search results

  1. P

    problem during creation of object file

    hi, I have a problem in understanding the creation of object file just look at the code below. in the code below i have defined struct node in another C file. I have no any declaration of struct node in this code . But when i am compiling this code to generate the object code it is...
  2. P

    not understanding the array declaration along with macro

    hi here is the code , can any one plzzz explain the below code. static const unsigned char BitsSetTable256[256] = { # define B2(n) n, n+1, n+1, n+2 # define B4(n) B2(n), B2(n+1), B2(n+1), B2(n+2) # define B6(n) B4(n), B4(n+1), B4(n+1), B4(n+2) B6(0)...
  3. P

    Array addition

    very simple int a[4][4] int sum=0; //for col1 + col2 for(int i=0;i<4;i++) { for(int k=0; k<2;k++) { sum=a[i][k]; } a[i][0]=sum; } hope you have got the idea. have fun!
  4. P

    how to make games in c++

    if u want to do game programing then u can learn some library like allegro . This library is open source u need to down load binaries of this library and configure it with your VISUAL C++ compiler and can start programing . just google "how to configure allegro with visual c++". And find some...
  5. P

    Post your C/C++ Programs Here

    Re: Post ur C/C++ Programs Here scanf() takes input from standard input(key board) and stores in some variables. %d is called format specifier for integer variable, it tells compiler that coming input from the keyboard is an integer . next is &a , this is the address of the variable...
  6. P

    problem in out put while using pointer in C++

    Hello nims11, Thank you very much for your reply.Still i have a doubt ,the thing is that when i have printed 1st time the constructor has finished its work ,so the out put at the first print statement should give the garbage out put ,but instead of that it is...
  7. P

    problem in out put while using pointer in C++

    #include<iostream> using namespace std; class test { public: int* i ; test(int k) { i=&k; } }; int main() { test p(2); cout<<"for 1st time *(p.i) :"<< *(p.i); cout<<"\n"; cout<<"for 2nd time *(p.i) :"<< *(p.i); cout<<"\n"; cout<<"for...
  8. P

    problem in making module in RHEL 5

    Hii i m trying to build a kernel module in RHEL 5 but during compilation errors are coming as it is not getting #include<linux/module.h> . so is there any way to this problem.....plz reply
Top Bottom