thanku v m.
Type: Posts; User: tu_user
thanku v m.
What is the diference btw a pointer & a pointer variable?
I mean I was confused by the following statement while reading an article,
int x, y;
*yPtr = 7;
yPtr =&y;
Okeys thankx but u answered only one part of the question. But y? c++ prefers 0 over NULL?
Well its just a general programming question. I was going through a topic in which it was clearly written that c++ prefer 0 and not NULL. I wanted to ask that if there is any solid difference btw 0...
Thanku v m. It works well now.
see the code again. Can I make it even better?
#include<iostream>
#include<conio.h>
#include<ctime>
using std::cout;
using std::cin;
Yeah right DougDbug. Thanku. I got it now. Actually I am new to c++ so it will take some time, know what I mean? Anyways I have finally arrived to a conclusion that there is nothin called perfect...
I agree with u major_small. To be precise I agree with all of you. The problem is that I am a beginner so I usually come across such problems. I wanted to generate random numbers ie,...
It still not works.:(
I am not getting random value within my described limit. y? is that?
#include<iostream>
#include<conio.h>
using std::cout;
using std::cin;
using std::endl;
void genNum(void);// prototype
Well I was trying to generate some random numbers here but it seems that the values generated by the following code are not within my defined limit?
#include<iostream>
#include<conio.h>
...
Thanku. Its a very complicated topic.
what is seed? and diff btw rand() and srand()?
what is eexactly the diff btw rand() and srand()?
okeys. It means that my result 52-48 is very much random.
In my other post with the subject frequency? , the result comes out to be 52 for heads and 48 for tails. It means that it is not 100% randomized result. If had been correctly randomized the result...
Thanku Salem.
#include<iostream> /* include header files */
#include<conio.h> /* */
#include<iomanip> /* */
using std::cout;
using std::cin;
using std::endl;
using...
Thanku v m. So nice of u.
#include<iostream>
#include<cstdlib>
int qualityPoints(int); // prototype
int main()
{
int average; // declare variable
cout<< "Enter your average"; // prompt the user for input
cin>>...
// euclid.cpp - Compute Greatest Common Divisor of two positive integers
// using the Euclidean Algorithm
#include <iostream>
#include<cstdlib>
// Get a positive integer from user...
thanku
yeah i think so. Version 4.9.8.0 is great.
yeah thankx. The code is okeys. The prob was with my compiler. I downloaded version4. its not bets. The one i was usin was beta so it stuck. Well thanku v m for ur help.
#include <conio.h>
#include <iostream>
#include<cstdlib>
bool prime(int n)
{
int i;
if (n % 2 == 0)
return (n==2);
if (n % 3 == 0)
return (n==3);
#include <conio.h>
#include <iostream.h>
int prime(int n)
{
int i;
if (n % 2 == 0)
return (n==2);
if (n % 3 == 0)
return (n==3);
if (n % 5 == 0)