Results of Comment Search

Search:    Place:    Show:

Title User Message Date Posted
Re: Re: Re: Re: Re: Ending the input. purohit3105 ok I am now using strlen(variable); but it doesn't work on int arrays. I don't see how I can I get their lengths. And I am even on the right track?? Mar 07, 2009 - 6:37:04 pm UTC
Re: Re: Re: Re: Ending the input. hansonw1 There are a lot of errors in your program - I think you need to learn a bit more about C++ before plugging in stuff from tutorials. (sizeof doesn't do what you think it does) Why are you using char a... Mar 07, 2009 - 3:57:54 pm UTC
Re: Re: Re: Ending the input. purohit3105 I still seem to be getting an error. I think its because I am not reading the input properly. Any cryptic clues?? :P Mar 07, 2009 - 3:25:00 am UTC
Re: Ending the input. jargon var i: longint; a: ansistring; begin readln(a); i := length(a); end. #include #include using namespace std; int i; char a[1000]; int main() { cin >> a; //gets(a) for more speed i =... Mar 06, 2009 - 8:44:58 pm UTC
Ending the input. purohit3105 How do I read and store the values into a char array? I can't seem to get a for loop working and ending when the user presses 'Enter'. Can someone help me? Mar 06, 2009 - 8:37:25 pm UTC
Re: Re: Question - What am I outputting wrong? SourSpinach Just read my last post! Yes, your program is outputting wrong answers. No, initialization probably won't make a big difference, but you should ALWAYS do it. As I said, you're probably going out of bo... Feb 19, 2009 - 3:15:47 am UTC
Re: Question - What am I outputting wrong? Bob Does my program really output 6 for 10 and 56, and 1000 for -1 and 10000 - it doesn't happen in the school comp, my home comp, on my free pascal, or on TP7 (or is it outputting something else, but the... Feb 19, 2009 - 12:54:10 am UTC
Re: Re: Question - What am I outputting wrong? Bob Is initialization the only way to fix this (cuz I already did that) Feb 18, 2009 - 9:51:20 pm UTC
Re: Question - What am I outputting wrong? Saravannan I'm sure people have pointed this out to you before. But if you want people to debug your code, at least make it readable. Go back and look at other people's code for programs you already solved and s... Feb 14, 2009 - 7:30:01 pm UTC
Re: Question - What am I outputting wrong? SourSpinach Your code is extremely long, I don't think anyone wants to look through that and see exactly what's wrong. Firstly, you mention that one case of 10000 and -1. But does your program work at home on th... Feb 14, 2009 - 5:12:05 pm UTC