yeah i wish rep was back
Type: Posts; User: macman
yeah i wish rep was back
super quick note...
do not and i repeat do not use expressions like: [count + 1]
very uncool
instead use: [count++]
looks soo much better and mo professional
just my '2 cents'
cheers
the code that I gave u..gives exactly what u wanted..
array[0]=0
array[1]=1
array[2]=2
so i agree with treenef.. Some revision is needed me thinks..but thats cool..we are all here to learn....
yeah..that would work..
Its just depends on the amount of intergers..
mine works well for large numbers..but hey..theres a choice now
Cheers
Alex
Yeh..there probably is..i dunno tho..
to be honest..my code isnt complex..
neways
Hope I helped..
cheers
Alex
KK..i think ive got it...
u need summit like this:-
#include <iostream>
using namespace std;
int main () {
ignore this post - me dumb!
Cheers
Alex
I dont know what you guys over in the USA call it..
Im in 6th Form (UK School) and im 17.
Im not in university or anything..so we have tons of restrictions!
Im gonna ask the admins..however...
damn double post!
HI
right now im at school..At home I have the xcode compiler..however at school there arnt any compilers availible at all..Ive asked my teacher if I could get a compiler on my system..and He...
Another Great answer!
Thanx joshdick!
(some green also comming your way!)
Cheers
Alex
Ok..ive added the suggest line of code..The q to quit now works..however if I enter a name..nothing happens. I think it could be something with the position of the inserted line of code..hummmm
...
Thanx The Brain For The suggestion. I actually shoved that in just before reading your post
Anyways..U can have some green as well..for being a good person! (And also making me sure that the code...
Excellent..Thankyou So Much r1ck0r!
Man I feel Dumb..it was so simple!
Ill Give u some green for your help!
Cheers
Alex
Hi
Below is a script that im making. Its going to be a simple phone directory. You Enter A Name and it will give you that persons phone number..
Neways..I was wondering how you would impliment...
Hi
Thanx for the reply
So I can still use the gets() aslong as the character count is in order.
Thanx for the heads up..and ill look into that string container!
Cheers
Totally Cool.
Thanx For The Help Welshy..your effort is mucho appriciated!
Anybody Else Have Any Ideas?
Cheers
Alex
Hi
Damn That Was a fast reply..thanks!
if i was the use cin i wouldnt get the spaces would I?
e.g
If I wanted to enter: i like c++
Hi
Right Now im just experimenting with c++. This basic program has keyboard input..and converts it to uppercase (just for the fun of it):-
//String Experiment and ideal of array...
Thanx for the revamped code pianorain!
Ill keep this in mind..its good to start of nice habbits!
Cheers
And samGwilliam, im sorry if ive sort of swamped your thread...
kk..cool
so the break implimentation in my code "the cout thread"
..is still ok?
or is it the start of "spaghetti code!"
Cheers
can u please explain further?
Cheers
i dont think a break would hinder the program at all
maybe add a couple of milliseconds on the processing time
does the addition of the break sort it out?
cheers
Alex
Hi
dont u need to use the "break" to terminate a loop
e.g
Code:
So basically..
using the flush..is "old school?"
Is there anyneed for it at all?..or is just left over from c?
..ahhhh..wait
so where theres no cin..then i should flush?
Cheers For The...