General C++ Programming (Page 39)

The last digit problem
Question-> My solution is not accepted on Spoj because my so...
[3 replies] Last: You need to apply modulo 10 to the power (a^b) mod 10 = ( a^(b/2) * a... (by ne555)
by BasV
const context iterator
Hi everyone, I have a data class that I use in 2 ways: To save data, in which case other classes ...
[2 replies] Last: I'll try this, thanks! (by BasV)
Hi all, i am creating a program for simple calculation (+,-,*,/) and i need the user to give the 1...
[2 replies] Last: In your case statements, you are using double-quotes. These are strin... (by MikeyBoy)
Comparing multiple const char's at once
I have an array of const char's that are randomly selected in a loop from a list and id like to comp...
[1 reply] : You can do this: -Make a selection -Iterate over the already chosen... (by Mats)
A little help with insertion sort
Hello! Could someone please point out the mistake in my code? This is insertion sort and even though...
[2 replies] Last: Thank you! I need to pay more attention next time! (by antirsi96)
C++ problem....Please help?!
Hi all! I am writing a program. This program is a very small program which finds out the grade so...
[1 reply] : Hi ShehabKKhan, either add: using namespace std; or use std::cin in... (by InternetSmurf)
Recommendations for iterating over either row or column?
Suppose I want to represent an apartment building in terms of floors and rooms with a single data ob...
[7 replies] Last: > Is there a way, however, to say, "Give Me an iteratable collection ... (by JLBorges)
Help C++ if problem
Im doing an IT course and this my first programming scenario (UK) - Every Mile is 50p - Engine s...
[2 replies] Last: line 29 else (help=="N"||help=="n"); should not end with a semicol... (by Chervil)
How do start windows programming?
I am rather new to programming (some work in PHP, Jquery, Ruby, HTML, CSS, and now C++). With that s...
[1 reply] : Look into Qt ( You can Google tutorials for th... (by J4ke)
vector problem
I want to make a hacking simulation. The first "mission" requires you to put 3 words in the right or...
[2 replies] Last: line 43 does not do what you want... it only checks guess3. If you wa... (by Disch)
Complex recursion tracing
Hello. Anyone pls explain why I am getting 45 for this when func(12) is called int func(int x){ ...
[5 replies] Last: thanks all..I was not getting the return part..I was thinking it like ... (by csstudent123)
Rate of Rise Threshold
hi All I'm working on a project that includes a arduino, potentiometer, and a buzzer i need help ...
[7 replies] Last: You have quite a few misspellings in that code, and it wouldn't run an... (by Yay295)
instance of class A vs class B derived from class A
There are two ways to access the members of class A inside class B: 1) Making an instance of clas...
[1 reply] : Public inheritance implies an "is a" relationship. Composition (puttin... (by Disch)
How can I set up two objects to communicate with each other asynchronously?
Hello, Here is what I've got so far: // build: // clang++ -g -std=c++11 -Wall main.cpp -o main...
[4 replies] Last: Thanks a lot! I sure need the reading to understand the code and adapt... (by vincegata)
How to make this function faster?
inline long long cryption(long long msg, long long n, int DorE) //Encryption with two keys { ...
[5 replies] Last: Sweet, I found something someone posted. There is an actual algorithm... (by Idontownaplanet)
Program not outputting
I wrote a program to grade T or F test. It is running, but not outputting the information. #in...
[5 replies] Last: I just realized mine was off too. I needed to multiply the % by 100. I... (by Yay295)
by zf7
beginner tic tac toe game
This is my code, and the problem I am having well maybe what I need to add is instead of "Player 1" ...
[7 replies] Last: I'm using borland because that's the only compiler I have and my profe... (by zf7)
String to Double Function
Because MinGW C++ doesn't have the atod() or atoi() functions for some reason, I had to code a strin...
[1 reply] : If you don't have access to atod or atoi then it's conventional to use... (by Lachlan Easton)
by twesna
Looping Problems
So I am trying to write a program that asks the user for a name. If the user enter the right name th...
[9 replies] Last: Thank you i made a mistake in the setting when using visual 2010. It w... (by twesna)
Using .NET Inside C++
I'm trying to use some .NET Features inside C++, such as :
[4 replies] Last: I see., Thank you. (by AmitM9S6)
Pages: 1... 3738394041
  Archived months: [jun2014]

Cannot post in this page. To post a new message, go to the first page.