Thread: A simple C++ problem

  1. #16
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    For which value k does it output 75,62?

    Or what do you mean by 75,62??
    Last edited by Shakti; 01-14-2013 at 08:19 AM.

  2. #17
    Registered User
    Join Date
    Jan 2013
    Posts
    114
    I have found the problem. Its not in the sourcecode.I repeat.. Its not the source code. Its actually in the display window of the program.when upto k<298 the program works fine. but when k=299 it omits the first result 2. when 300 than it omits 2 and 3, and go on!! Is there any way so that I can expand the display window of the command. I am using windows 7 and codeblocks. if I remove the endl statement than it displays all the result. clearly my window has not enough space for 998 lines.

  3. #18
    Registered User
    Join Date
    Aug 2003
    Posts
    1,218
    Write everything to a file and you should get all the output.

  4. #19
    Registered User
    Join Date
    Jan 2013
    Posts
    114
    Quote Originally Posted by Shakti View Post
    Write everything to a file and you should get all the output.
    How, dont get it. I am an absolute beginner. how will I write everything in a file? please give a brief details.

  5. #20

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Simple program, simple problem
    By KAUFMANN in forum C Programming
    Replies: 5
    Last Post: 02-16-2011, 01:16 PM
  2. Simple program...simple problem?
    By deadherorising in forum C Programming
    Replies: 2
    Last Post: 03-12-2009, 08:37 PM
  3. Simple program, not so simple problem
    By nolsen in forum C++ Programming
    Replies: 2
    Last Post: 01-18-2008, 10:28 AM
  4. A simple problem?
    By Volair in forum C Programming
    Replies: 3
    Last Post: 11-19-2006, 03:14 PM
  5. Simple OO Problem
    By bstempi in forum C++ Programming
    Replies: 1
    Last Post: 04-30-2004, 05:33 PM