General C++ Programming - October 2014 (Page 20)

Android development in C++
I want to start developing Android apps in C++, but I do not know what I could use to compile the source code into an apk. I know that C++ is probably not the b...
Oct 16, 2014 at 1:35pm
[4 replies] Last: If I have to, I will do it, but I prefer to use C++ then learn anoth... (by mutexe)
Segmentation fault while setting classes local variables
Hi, When I set a local variable to a value it causes a segmentation fault. This happens in the GameObject class in the setGame method. I have no idea what ...
Oct 16, 2014 at 1:34pm
[6 replies] Last: Oh damn what a simple mistake can't believe I missed that Thanks for ... (by danielmccarthy)
VirtualQueryEx and ReadProcessMemory - Why this code works so slow ?
Hello I would greatly appreciate any help regarding this. This code works fine but it takes about 10 minutes to search through all processes, which is too slow....
Oct 16, 2014 at 12:51pm
[5 replies] Last: Can you post the complete code? (by gsoc)
Direct Access Files
I am extremely new to C++ (and programming in general really) and am working on a project that has me stumped (not hard to do ha). The project involves Direct A...
Oct 16, 2014 at 12:44pm
[2 replies] Last: Sorry, I'm just desperate. I deleted the post from the Beginners forum... (by HiTechRedneck3)
Mastermind Program
I need a program that has the user play the game "Mastermind" the only thing is it can only include the following: #include <iostream> ...
Oct 16, 2014 at 11:27am
[2 replies] Last: I can't figure out how to make this a loop (by John Colquitt)
by Noori
sorting
How to sort and array with integers in c++/ LETS SAY int arr ={1,2,3,4,5};
Oct 16, 2014 at 9:08am
[2 replies] Last: Easiest way to sort something in C++ is to use std::sort. #include <... (by Peter87)
Arrays and Vectors
Hello everyone, I was having a little bit of trouble with my program. The purpose of the program is to have a user enter up to 50 test scores from 0-100. If the...
Oct 16, 2014 at 9:03am
[6 replies] Last: try to do it int readArray(int MAX_SCORE, int score ) { int nsc... (by alptp)
a little addition missing in my program
the question was find a number that:(y is the number) y%2=1 y%3=1 y%4=1 y%5=1 y%6=1 y%7=0 this is what i wrote : #include "stdafx.h" #include "ios...
Oct 16, 2014 at 8:59am
[no replies]
by rian
C++ program capturing information after crash
Hi, I am writing a C++ program that does various sequential stand alone tasks for a certain event. All the tasks are very modular and do not have any depende...
Oct 16, 2014 at 8:56am
[4 replies] Last: Check this out: http://www.cplusplus.com/reference/csignal/signal/ htt... (by MiiNiPaa)
by Myna
How to improve my geometry calculator in the following ways?
● When the user enters wrong input for radius, length, width, base, or height, the program will continue to prompt the same corresponding error messages. The...
Oct 16, 2014 at 6:03am
[1 reply] : Before the cout << "Geometry Calculator\n"; do: for(bool retry = fa... (by poteto)
c type string
Write a program that will allow the user to input a string and perform various editing functions on it NOTE: You must use C type strings for this assi...
Oct 16, 2014 at 5:54am
[4 replies] Last: Make each action (insert, delete, replace, search, etc.) a function. ... (by dhayden)
by Emkor
Quick help
int Menu() { int choice; cout << "\nSurface Area Calculator" << endl << endl << "S) Sphere" << endl << "C) Cone" << endl << "Q) Quit" ...
Oct 16, 2014 at 5:41am
[1 reply] : A nice trick is to search for the choice in the string "QSC". YOu can ... (by dhayden)
Reformatting the String Entered to Odd then Even
My c++ teacher gave me this question. Question: Given a line of words (total character number is less than 100, start from odd position 1,and end with newline c...
Oct 16, 2014 at 5:32am
[no replies]
Pure virtual function call before program even begins...
I recently made some big changes to the class structure in my program because I ran into a compatibility issue between two libraries I am using. I moved the lo...
Oct 16, 2014 at 5:26am
[15 replies] Last: What about the destructor? I can't call a pure virtual function from ... (by Disch)
Searching for substrings in string
Hi All, I'm given a school assignment and we have only covered on C language in school. For this assignment, we are supposed to use C++ and hence I'm prett...
Oct 16, 2014 at 3:56am
[no replies]
function
at the beginning of every year, khalid will enter the performance evaluation marks. based on the marks, he will receive a raise of his previous year's salary. h...
Oct 16, 2014 at 3:39am
[no replies]
explaining what exceptions::what is and my errors.
hi there guys. i'm having problems understanding this error! terminate called after throwing an instance of 'std::logic_error' what(): basic_string::...
Oct 16, 2014 at 2:24am
[2 replies] Last: #include <string> #include <iostream> int main() { std::string s... (by JLBorges)
Simple print out problem?
Hey all, I've been working on this program for a while. I'm pretty new to C++ and to say the least it isn't my favorite. Basically it is just a program th...
Oct 16, 2014 at 1:00am
[8 replies] Last: That works great! But the only problem is that part of problem is to m... (by danv543)
Vernam Cipher Problem
Hello, I am having a problem with my Vernam cipher code. I'm not very C++ savvy and I'm having a hard time fixing my errors. I don't think my lines transferred ...
Oct 16, 2014 at 12:50am
[4 replies] Last: They (that is, First_test() and Second_test()) should probably either ... (by Zhuge)
please help
int pid_front = 0; int pid_back = 0; So this is code for process arriving: case 'A': cout << "A process with PID " << ++pid_front << " has arr...
Oct 15, 2014 at 11:44pm
[16 replies] Last: I am still so lost. I know I need to keep track of the arrival and dyi... (by Stephanie)
October 2014 Pages: 1... 1819202122... 38
  Archived months: [sep2014] [nov2014]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.