General C++ Programming - September 2015 (Page 12)

Loop Modification
 
a) The following code implements a for loop, a do while loop, and a while loop. There are stubs for four additional loops. You are to add the code necessary to ...
[2 replies] Last: basic and necessary concepts in almost, if not all programming langua... (by Radar)
by emsiwx
Check the http return code
 
Hello, I would like to ask you for a help.... I am using TIdHttp component to get files from the web. What I need is to include the check if the file i...
[no replies]
by Ceset
Pipe communication Related
 
Hi all My question is related to pipe communication. If we open up a terminal or cmd and write a command then press enter, if command is valid, we should rece...
[1 reply] : Funny, there was no need to think complicatedly. All i needed was '\n'... (by Ceset)
CPPUNIT TEST ASSERT..not showing all output
 
#include <cppunit/TestFixture.h> #include <cppunit/extensions/HelperMacros.h> #include "Point.h" #include "TestPoint.h" #include <iostream> #include...
[no replies]
Class function, help
 
I have a very small question regarding calling a class function. So I have this class which has 2 private values of an int x and double y. I have an overl...
[1 reply] : Without the code it is not possible to determine the problem. Please ... (by coder777)
by Andym
Header File
 
I know this is a really simple question but Ive been searching for the answer to this for about an hour now. Ive done it before...a few years ago....cant find ...
[6 replies] Last: well, after closing my eyes, I realized that there were spelling error... (by Andym)
Making your own Symbols
 
So in Minecraft PE version 0.11 - 0.12 has inlined functions/symbols (IOS). So we cant mod it, the only thing to mod MCPE IOS is making your own symbols and try...
[no replies]
by tnt980
Help With My Code
 
Project You should write a program that prompts the user for three floating point numbers of type double (using cout to prompt the user and write to the...
[8 replies] Last: Highly doubt it. Also looking back at your code and your professor's i... (by YFGHNG)
Logical errors in a Logical program
 
#include<fstream.h> //for file Input Output #include<conio.h> // for clrscr() and getch() #include<direct.h> // for mkdir() #include<stdlib.h> // for exit() #i...
[1 reply] : Could you please use code tags around your code? The <> button on th... (by ats15)
by A1693
g++ compiler error
 
I have a function here that compiles perfectly with VC++ 2013. It's function is to return a string whose whitespaces have been removed. I understand there are...
[3 replies] Last: yeah, I was accessing a string from a custom class vector. I fixed th... (by A1693)
What will the value return?
 
If this program was replaced with the following array: [34, 17, 26, 44, 12, 81, 72, 20, 62, 44] what value will find_small_index return? #include <cstdlib> ...
[3 replies] Last: Have you considered looking at existing sort algorithms ? (by Ericool)
help please
 
expected intializer before void?? #define KeypadDirectionRegister DDRD #define KeypadPortControl PORTD #define KeypadPortValue PIND #define LEDDirectionRe...
[2 replies] Last: Rule of thumb. Always check for completed brackets, braces, and parent... (by YFGHNG)
Reading in from a file
 
Hello cplusplus users! I am trying to read from a file and display the contents as output. My code is as follows: #include <iostream> #include <fstrea...
[3 replies] Last: ?hmm dunno , ok nevermind for the close() int totalboxes = 0; //..... (by Ericool)
C++ program that filters characters from an input
 
I am trying to create a program which all input will be provided by a command line argument. The first argument is the name of a text file containing the inpu...
[3 replies] Last: are you missing 'y' as vowel ? (by Ericool)
get unexpected txt format output from c++ code
 
Dear all, I am using linux ubuntu to run my code. The code generates a log.txt file which includes the log(j) and log(dist). However some parts of the txt f...
[3 replies] Last: note also that Linux and Windows does not have the same EOL (by Ericool)
by rauf97
Pythagorean
 
Hello.I can find pythagorean numbers in c++ but i don`t know that how can i print n times for example if(n==3) it prints (3,4,5) (6,8,10) (5,12,13),can someone ...
[1 reply] : #include <iostream> using namespace std; void myMethod(size_t maxV... (by Ericool)
Can I program in Binary? (1,2)
 
Hello dear members Before asking anything I want to say, I searched a lot of sites and forums but all in vain, so please give me a perfect answer.Some of the...
[22 replies] Last: Thanks for your participation. I inferred that the best way to underst... (by omer123)
Ordering Numbers
 
hi , i need a logical help my program should be about: int W; it means there will be 2 lines , in every line there will be W numbers unordered from 1 to W , ...
[4 replies] Last: @Tommy98 To me, the maximum steps, would be the amount of numbers bei... (by whitenite1)
Please help with templates...
 
Here is what I understand about classes. A class is a blueprint for objects made from the blueprint. Much like the USS George Washington is a Nimitz class...
[4 replies] Last: @OP I generally like your analogy of the blueprints of the aircraft c... (by doug4)
C++ coding (spelling check)
 
1) Create a few tweet abbreviations that can be decoded. Add support for abbreviations. 2) For abbreviations that do not match the supported abbreviations, c...
[8 replies] Last: > I use the next_permutation to check for the spelling Yes, +1. This ... (by JLBorges)
September 2015 Pages: 1... 1011121314... 21
  Archived months: [aug2015] [oct2015]

This is an archived page. To post a new message, go to the current page.