General C++ Programming (Page 4)

Program Enters Infinite Loop if User Enters a String With Spaces
For my assignment that I created the other day, I had received a 100%. We had to create a series of ...
[5 replies] Last: We're going to need a bit more information than "would not run properl... (by Moschops)
by Kalcor
Min and max pairs between teams The link above is the question. I was able to g...
[1 reply] : Max is found when all of the "extra" players are all on the same team.... (by doug4)
by Kalcor
Simplifying this equation
Can someone simplify this equation so it could be understood? s ^= s ^=s ^= s ; assuming its p...
[10 replies] Last: @ JLBorges , @ Cubbi Thanks to you both for your always expert answe... (by TheIdeasMan)
by sed2
how to do a password without cin?
I would like to make a program that see if i type a keys sequence, but i don't want to use cin, beca...
[7 replies] Last: The second would also work. (Lines 19, 20 and 22 require C++11) (by JLBorges)
Get typename of a variable without any common libraries?
This may be asking much, but is it at all possible to get the typename of a variable without using c...
[1 reply] : No. #include <typeinfo> is required if we want to use the typeid o... (by JLBorges)
To Find Large Powers in
Hi guys, I have two numbers A and B where both can be in the range 0-100000. How can we find th...
[1 reply] : what is the actual c++ type of A and B? does the pow() function work?... (by jonnin)
by Azard
Printing text from text
Hello people ! I have a problem with a exercise I have to end. I have been searching for long so ...
[5 replies] Last: Thanks you ! Problem solved with this (by Azard)
simple linked list - class node
Here is the problem I am trying to figure out, and please let me know if I am understanding the ques...
[no replies]
by jdeep
Temp Converter
write a program that creates and displays a table of temperature conversions. Get the starting tempe...
[8 replies] Last: cout << x << COLUMN_SEPARATOR << toFahrenheit << COLUMN_SEPARATOR << ... (by chicofeo)
Knight's tour using recursion and backtracking
Hey guys! I am writing a program to trace a knight's tour on a chess board using recursion and back...
[4 replies] Last: The scope and duration of these variables are somewhere between lines... (by mbozzi)
by SidV
How can I pass .txt file to an array?
Write a program that asks the user for the name of a file. The program should display the last 10 li...
[2 replies] Last: Yes we are allowed to use vectors I'll give it try and see if I can ge... (by SidV)
by jdeep
Simple Calc
Write a simple calculator program that allows input of two integer operands and outputs the result o...
[4 replies] Last: #include <iostream> #include <cmath> // accept an integer from stdin ... (by jdeep)
What's wrong with my Caesar Encoding-Decoding Code ?
#include <iostream> #include <ctype.h> #include <conio.h> using namespace std; string caesarEncodi...
[3 replies] Last: The -- message ; is just the applying of a -1 key to message . At e... (by nuderobmonkey)
vector of struct vectors
I am making database management program for homework using the vector library and I keep getting an ...
[5 replies] Last: Oh. That makes sense. Thank you! (by matthubb)
by Kalcor
Binary search not computing
Hello, this was a binary search question I am trying to solve:
[2 replies] Last: @ne555 what's wrong about them ? (by Kalcor)
by Kalcor
Difference between 2d array passing and 1d array passing
Why when passing 2d arrays to functions let's say that's the func int foo(int a ) and if I pa...
[2 replies] Last: Thanks <3 (by Kalcor)
Analyzing Videos Via C++
I am pretty new to programming but I recently discovered an interest in hawk-eye technology and bega...
[3 replies] Last: So for a baseball you know it's white and it's size. There will be lot... (by SamuelAdams)
How to create a function that accepts different sizes of a 2d array
I was creating a project and wanted to create a function that accepts 1 2d array of different sizes ...
[2 replies] Last: you need the rows, cols, and data regardless, which begs a struct or c... (by jonnin)
Combining Struct and Stack
So I have made a program for schoolwork which is supposed to be a bookshop's stock program. The prog...
[3 replies] Last: It's still not clear where the stack fits in. In main you create an ar... (by Thomas1965)
Pages: 123456... 29
  Archived months: [mar2017]

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