if u r using turbo c++ compiler then y dont u use
# include <dos.h>
void main ()
{
sound (7);
delay (1000);
nosound();
}
i dont know if ur PC emit 7 hz frequency...
User Profile
Collapse
-
look all u need to so is to write
outfile<<endl;
after cout<<endl;
given below
for (d1 = 0; d1 <= 9; d1++)
{
for (d2 = 0; d2 <= 9; d2++)
{
cout << setw(5) << firstArray[(d1 * 10) + d2];//write to screen
outfile << setw(4) << firstArray[(d1 * 10) + d2];//write to file
}//close nested for
...Leave a comment:
-
yes thats right "a pointer which does not point to anything is called null pointer"
secondly if more than one pointer pointing to one memory location and you delete one of these pointers then other pointing pointing to a memory which does not exist.this is called dangling pointer...Leave a comment:
-
i have different opinion from gnanapoongothai size of arrays can be increased or decreased through pointers (ie dynamic array)
phiefer3 is right that major difference between array and link list is accessibility of array and link list
another thing you have to make alink between previous and next index of link list while in case of arrays no such process...Leave a comment:
-
yes u can do so in order to open a file
"r" for read
for writing you can use "w"
for reading and writing you can use "w+"...Leave a comment:
-
-
Difference between bollean lgebra and calculus
Can Anyone Tell Me That What Is The Relation Between Bollean Algebra Or Binary Digits And Calculus Help Me Plzzzz -
delay
hi
can anyone plz tell me that DELAY ( ) function is in which header file plz
thanx -
Gotoxy
hi
can anyone tell me the name of the header file for gotoxy function in visual c++
i know k turbo c main iss ki header file dos.h hootee hai but i dontknow in vc++ -
also
in every case youy terminate the statement with } rather than ;
you must have to use ; before } remove these error it will work
inshaallahLeave a comment:
-
HI
well paranthieses of main function is missing '}'
after when you return 0 to maion functionLeave a comment:
-
hi
well would u like to tell me that what do u want from this code i mean i m still doubtfull about your code
thanksLeave a comment:
-
pre increment and post increment please help me out
hi everyone well i m little bit confused about the use of pre an post increment infact my thinking contradict with the logic of programe
lets consider an example
x=5;
y=x++;
z=x;
after the execution of these statments value of y will b 5 while value of z will be 6
WHY?
value of x++ and x=x+1is equal it first assign a value of x to y then increment in x. why?
expression on the right must be... -
-
well i can help you just give some xplzination about ur programe or xample and what do u mean about deblank do u want to remove a printed word during execution reply i will check tomorrow...Leave a comment:
-
Help Crazy
i m begginer here i dont know how to post a question or how to answer a question plz help me.
No activity results to display
Show More
Leave a comment: