PLEASE KINDLY HELP! AM SO CONFUSED

Pages: 12
@anup30,
I need to print the entire 1330 sets at once. the challenge I have now is generating the sets in alphabetic order like I explained above and not in numerical order. thks
fg109 actually gave you the solution in his last post.
you only need to convert the ints to chars.
(hint: you can do that similarly my first post - example program.)
OK but I tried that your example code, it didn't work. I will try the conversion now but if you can help I will appreciate,thks
convert 3 to C, 4 to D, ... so on.
just convert 3,4 and 5 I will convert the rest.thks
> just convert 3,4 and 5 I will convert the rest.

well, it means getting 100% solved problem.
it's already 80% solved. maybe you should try other 20% ?
i mean when you will be doing jobs in future, you will need problem solving skills developed in student life, to solved more complex problems completely on your own.

(hint: you can also do without int to char conversion. as you tried by nested loop before.)
pls help this last time. I have spent more than 3hrs on this stuff still can't get it right rather errors. I tried if-else statement, I was able to get C and D. for how long will I do this, is there no short code to do the swoopping for me? pls help, am stressed up already. thks
okie..

1
2
3
4
5
6
7
8
9
#include <iostream>

int main()
{
	for(int i=67; i<=85; i++)
		for(int j=i+1; j<=86; j++)
			for(int k=j+1; k<=87; k++)
				std::cout << (char)i << (char)j << (char)k << " "; 
}

thanks immensely
Last edited on
finally, I got it right. I am grateful to you anup30 and fg109. you guys are great programmers. thks and thks
Topic archived. No new replies allowed.
Pages: 12