Char(169) not printing

Dec 7, 2013 at 4:44am
i know I'm not giving much information here and just a minor code. On line 23 (char)(179) doesn't seem to print on the 6th index. I think the error might be in this code or there could be some wrong logic implemented in there coausing the char179 not to print. So can the forum members, look at this and tell me if they find something fishy here. I have looked over this code ten times and yet it looks perfect to me. In fact have been literally starting at my pc tv while standing up :O

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
for(int i=0;i<8;i++)
			{
				if(i<6)
				{
				cout<<"\n";
				cout<<(char)(179)<<carimages[i];
				Printing_Let_rowbyrow( usertypes,i);
				cout<<" ";
				cout<<(char)(179);
				
				}
				else if (i>=6)
				{
					cout<<endl;
					
					cout<<(char)(179);
					int length=carimages[0].length();
					for(int in=0;in<length;in++)
					{
						cout<< " ";
					}
					Printing_Let_rowbyrow(usertypes,i);
					cout<<(char)(179);
					
					
				}
				
			}
Last edited on Dec 7, 2013 at 4:46am
Dec 7, 2013 at 4:48am
Also note the first five index seem to run fine, but on index 6, that's when the problem occurs.
Last edited on Dec 7, 2013 at 4:48am
Dec 7, 2013 at 4:22pm
Anyone willing to check please
Dec 7, 2013 at 5:20pm
cout<<(char)(179)

This doesn't print? But...
1
2
3
4
5
6
7
8
cout<<endl;
					
cout<<(char)(179);
int length=carimages[0].length();
for(int in=0;in<length;in++)
{
	cout<< " ";
}


All this does?
Last edited on Dec 7, 2013 at 5:21pm
Dec 7, 2013 at 8:41pm
Yes, that's correct, but note, onky on index 6 is when this happens. When it goes to index 7... It's prints out normally. Generally, on index 6 is when the peoblem occurs.
Topic archived. No new replies allowed.