ok so instead of file..i should put in place ifstream?
well then wht bout all the other weird symbols...after cout..u know the where printf is
Type: Posts; User: Nikisha
ok so instead of file..i should put in place ifstream?
well then wht bout all the other weird symbols...after cout..u know the where printf is
this is not in c++ format is it? can someone help me translate this to c++....
#include<stdio.h>
#include<conio.h>
int main()
{
thanx..it compiles now
ok so when i take the & out..the value of r1 n r2 does not appear!
i wrote this program..sweat all over it...but its not working..can any one help me figure my mistake?
#include <string>
#include <iostream>
#include <cmath>
using namespace std;
well i guess it should be like this..i figured the relationship out but its still not working..
# include <iostream>
using namespace std;
int main()
{
int row, space, num;
well i guess its supposed to like this with out functions..but its not working:
# include <iostream>
using namespace std;
int main()
{
i have this other question regarding functions. well firstly i have to write this program..the output has to be a diamond shape...the user has to input the number of rows n the character the diamond...
ok so i inserted % in there
thnx it works now!:)
thnx for all ur suggstions..:)
i wrote my program..keeping all ur thoughts in mind
but the problem now is tht no mattter wht value i input, my program keeps returning it as an odd digit
here's...
has this got somthg to do wit ASCII?
well thnx so much for the hints n all but the thing is tht im totally confused wit this fuctions...we just started tht last week in class n the example my teacher gave me is totally different from...
can someone help me out wit this?
the question goes somthg like this:
write a fuction int (or ool) IsOddDigit (char ch) that takes a char (ch) and retruns a true if ch is one of the alphabetic...
o the
cout << space;
shouldnt be there!!
ok so this is wht i did so far but then how do i account for the spaces??
#include <iostream>
using namespace std;
int main ()
{
how to make a Triangle
i want somthg like this
*
***
****
******
thank u!!!:)
thnx!
i dont mean to sound like a sissy but can u break it down some more?:)
i made a mistake with the square ...it should look like a square!!
there is a hole in the middle
i want a square to disply as my out put
the user has to enter the width n a character
the out put should be somthg like this:
******
* *
* *
******
thnx soooo much!!!:D
i tried it n now my program works perfectly!!!!
ok so i worked the count thing out..but i still need help with the finding the lowest value
heres my program:
#include <iostream>
#include <iomanip>
using namespace std;
well i seen to get the hang of the highest, first and last values but i still cant figure out the lowest value
plus i just realized tht the program should calculate the numer of counts...i made a...
thnx ..it works!!
but then wht bout the highest n lowest values??:confused:
well here's my program so far:
#include <iostream>
using namespace std;
int main()