nope i don't know how to do it. i posted that code because, i believe an extended approach from my previous work is probably expected of me.
Type: Posts; User: soundwave
nope i don't know how to do it. i posted that code because, i believe an extended approach from my previous work is probably expected of me.
just 'fair enough' :D
so much for the help for 2moro... nevermind
i didn't intend to post that code perfectly. I typed it quickly.
it is C++ I am using therefore I am in the correct forum. ...I know cout is easier
please just show me the way if you don't want to give me code
alrite well, i dont know how to do this task
however i can show you the code i have done which was a similar task, for finding the coordinates of an element of a square.
printf("Please enter...
alright, sry to be another homework lout,
programmin is not my forte but is one of my modules... i am expected to do this program, however i am baffled. need it done today... so i AM open to...
k, this programs gettin there...
how do i store output in a file?
cheers
float ewidth,elength;
ewidth=width/5;
elength=length/5;
for(ewidth; ewidth < 25; ewidth++)
for (elength; elength < 25; elength++)
hmm...
float element, length, width;
cout <<"No. of element(1-25) = " ;
cin >> "%f", & element ;
cout <<"Input Length = ";
not sure if i actualy have to replace variables... what would you do now?
PS. jus gotta get this done tonite i can learn more later, if anyone wouldn mind completing for me:D
#include...
ty.
now i need to modify it to read the program input. and to include
no. of element
length of shape
width
store output in a file called square - is this called dynamic allocation?
ok i need to write a program to generate the co-ordinates of twenty five elements for a square shape. ( 5 by 5 )
i am also given the square as 1m by 1m.
this is what I (indeed a noob) has so...
I need to write a program to generate the co-ordinates of twenty-five elements for a square.
this square shape is 1m by 1m.
I need it to read the program inputs:
no. of element
the...
ok, so far I've got this, i think im on the right lines
can anyone help complete?
using namespace std;
int main()
ah you are right i think more simple than i thought. hmmm
Any ideas ppl please?
#include <iostream>
using namespace std;
int main()
{
int x,y;
int array[5][5];
all i have is the info above.. how do u think i shuld go about it?
chers
now then, ive been researching arrays for a while, but can't seem to find how to do this still..
I need to write a program to generate the co-ordinates of twenty-five elements for a square.
...
an IF statement solves it very easily indeed.
cheers guys
Hi everyone!
As i have left my programming module to the last minute, I have been programming now for a few hours(literally) and I must say I am pretty damn good at it!
This is a program I...