Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~8K People Reached
About Me

Student (pursuing B.Tech in computer science)

Interests
Playing computer games, playing football
PC Specs
OS: Windows XP with Service Pack2 Intel Centrino mobile technology 1.73Ghz 120GB of Hard disk with 1.49GB…
Favorite Tags
Member Avatar for amitahlawat20

Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ?? I want to do programming in ASP on my personal computer.:confused:

Member Avatar for techtix
0
75
Member Avatar for amitahlawat20

Can someone tell me from where can I download a Personal Web Server for Windows XP SP2, if not , then an alternative for that ??:confused: I want to do programming in ASP on my personal computer.

Member Avatar for madmital
0
127
Member Avatar for amitahlawat20

I have got an assignment question : Constructors cannot be virtual , however destructors can. Justify the statement in reference to memory leak. Please help me out figuring the answer.

Member Avatar for Ancient Dragon
0
75
Member Avatar for amitahlawat20

I am not able to figure out how to calculate the determinant of a matrix whose size and elements are to be taken from user. Could someone help me !!

0
73
Member Avatar for amitahlawat20

My instructor at my engineering institute has given the following assignment question: Create a database of scientists and labourers and maintain the same by making use of inheritance. We haven't been taught the database connectivity with program execution, so that's not to be used. I wrote the following code: [code] …

Member Avatar for Ancient Dragon
0
136
Member Avatar for amitahlawat20

I am facing a problem in void pointers in c++. Have a look at the following code: [code=cplusplus] #include<iostream.h> int main() { void *ptr; int x=3; float y=2.35f; char c='A'; ptr=&x; cout<<endl<<*ptr; //line 1 ptr=&y; cout<<endl<<*ptr;// line 2 ptr=&c; cout<<endl<<*ptr;//line 3 cout<<endl; return 0; } [/code] I am getting the …

Member Avatar for sahil_itprof
0
149
Member Avatar for amitahlawat20

Could someone please why do we say that the syntax of enhanced for loop (for-each) in java in streamlined. Also, my java compiler does not compile programs containing the enhanced for loop. It gives errors like: for(int x:collection) { } ^ ; expected Could someone suggest solutions to this?

Member Avatar for jwenting
0
85
Member Avatar for amitahlawat20

I am not able to understand why in the following program it is mentioned in my book: The value of ~a is ANDed with 0x0f (0000 1111) in binary in order to reduce its value to less than 16, so it can be printed by use of the binary array. …

Member Avatar for Phaelax
0
58
Member Avatar for amitahlawat20

Could someone please tell me how to overload ++ operator in the postfix form. ++ sholud increment the instance variable avar of following class: class A { int avar; public: A() { avar=0; } A(int a) { avar=a; } void display() { cout<<endl<<avar; }

Member Avatar for Lerner
0
63
Member Avatar for Moporho

I have assignment and need help determining if I am correct. The question reads: a.Write a function that determines whether a number is prime b.use the function to determine and print out all prime numbers between 2 and 10,000. [B][U]How many numbers to you have to test before being sure …

Member Avatar for Moporho
0
5K
Member Avatar for arlene1

I'm extremely new to c++- this is a homework question- I do not understand how to write my program for this problem: Write a function named yrCalc() that has an interger parameter representing the total number of days since the turn of the last century (1/1/1900) and reference parameters named …

Member Avatar for amitahlawat20
0
177
Member Avatar for wannabeIT

I don't understand why this program is making me input two more times (after the program is finished) before it terminates. All other programs that I do usually terminates while this code idles. For those who are confused, I have to enter extra characters and hit "enter," twice before the …

Member Avatar for Lerner
0
118
Member Avatar for rohoni
Member Avatar for amitahlawat20
0
92
Member Avatar for amitahlawat20

could any one tell me the exact syntax and semantics of cin.get() and cin.ignore() ?

Member Avatar for henpecked1
0
80
Member Avatar for amitahlawat20

#include<iostream.h> class A { int avar; public: A() { avar=0; } A(int a) { avar=a; } void dis() { cout<<endl<<"avar = "<<avar; } void operator ++ (); }; void A::operator ++ () /*[B][U] from compilation message it is known that this is prefix form , how do I specify the …

Member Avatar for sarehu
0
76
Member Avatar for amitahlawat20

#include<iostream.h> #include<string.h> class person { protected: char name[20]; int code; public: person(char *a,int c) { strcpy(name,a); code=c; } void dis() { cout<<endl<<"name : "<<name; cout<<endl<<"code : "<<code; } }; class account:virtual public person { protected: long pay; public: account(char *a,int b,long c):person(a,b) { pay=c; } void dis() { person::dis(); cout<<endl<<"pay …

Member Avatar for bugmenot
0
483
Member Avatar for amitahlawat20

I am not able to figure out the code required for accepting a string from user , but the memory for it should be dynamically allocated and referenced using pointer. Have a look at the following: char *p=new char[length_of_string+1]; This statement would work to dynamically allocate the string ,but still …

Member Avatar for Narue
0
90
Member Avatar for amitahlawat20

// runtime error encountered , cannot resolve symbol i ,please help!!! class promote { public static void main(String args[]) { byte b=42; char c='a'; short s=1024; int i=50000; float f=5.67f; double d=.1234; double result=(f*b)+(i/c)-(d*s); System.out.println( (f*b) + " + " + (i/c) + " - " + (d*s) ); System.out.println("result …

Member Avatar for masijade
0
98
Member Avatar for nani_amb

hi.. i'm having trouble with my project.. i keep getting "Unhandled Exception" [code=c++] # include <conio.h> # include <stdio.h> class bank { float x; public: void deposit(); void withdraw(); void disp_det(); }; void bank::deposit() { float more; printf(" enter the amount to deposit: "); scanf("%f", more); x += more; } …

Member Avatar for amitahlawat20
0
114
Member Avatar for aminit

Hello all: I create a simple source file in VC++ , I tried something simple,there is two strings: string1:MICROSOFTCPP string2:HELLO I want to write a code to make string2 is equal with string1,so it must be string1:MICROSOFTCPP string2:[COLOR="Green"]HELLO[/COLOR][COLOR="Red"]HELLO[/COLOR]HEL so it seem the string2 its repeat itself until it's length is …

Member Avatar for amitahlawat20
0
117
Member Avatar for amitahlawat20

[code=cplusplus] #include<iostream.h> #include<string.h> int main() { int x; cout<<endl<<"enter x:"; cin>>x; int temp=x; int count=0; while(temp!=0) { count++; temp=temp/10; } char *p=new char[count+1]; for(int i=0;i<count;i++) { *(p+i)='\0'; } for(i=count-1;i>=0&&x!=0;i--) { *(p+i)=x%10; x=x/10; } *(p+count)='\0'; cout<<endl<<"converted string : "; for(i=0;i<count;i++) cout<<(int)*(p+i); // int type cast used , if not used then …

Member Avatar for Narue
0
125
Member Avatar for amitahlawat20

[code=cplusplus] #include<iostream.h> class mat { int **matrix; int row,col; public: mat(int r,int c); void get_element(int a,int b,int value); int &disp_element(int a,int b); int getrow() {return row;} int getcol() {return col;} friend mat operator + (mat &m1,mat &m2); friend mat operator - (mat &m1,mat &m2); ~mat() { delete matrix; } }; …

Member Avatar for Narue
0
77
Member Avatar for amitahlawat20

class matrix { int **p; int d1,d2; public: matrix(int x,int y); //constructor allocates block of specified size /*I am not specifying contructor code*/ void get_element(int i,int j,int value) { p[i][j]=value; } int put_element(int i,int j) { return p[i][j]; } // [U][B]return statement encountering access violation during runtime , Help!!![/B][/U] };

Member Avatar for mitrmkar
0
97
Member Avatar for nickthedivil

Hey I know i am over looking somthing small but can i get some help on line 23 [code](strcmp(chartryname, charname)==0 && (chartrypassword, charpassword) ==0){ [/code] I know this will not work its just to show what i am trying to do. I need to check two pairs of strings how …

Member Avatar for amitahlawat20
0
108
Member Avatar for amitahlawat20

/* unable to return value from following function due to if - else block within function..*/ mat operator + (mat &m1,mat &m2) //mat is a class for matrix object { int r1=m1.getrow(); //getrow returns number of rows in matrix int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of columns in matrix …

Member Avatar for Joatmon
0
103
Member Avatar for amitahlawat20

[code=c++] /* unable to return value from following function - adds two matrix class objects */ mat operator + (mat &m1,mat &m2) // mat is a class for matrices { int r1=m1.getrow(); // getrow returns number of rows int r2=m2.getrow(); int c1=m1.getcol(); //getcol returns number of cols int c2=m2.getcol(); if((r1!=r2)||(c1!=c2)) …

Member Avatar for Ancient Dragon
0
83