Beginners (Page 2)

working phone number validation code
Thanks everyone for helping me find new and better ways of writing my code. I finally got a working ...
[7 replies] Last: Hi, Yes, your last code snippet was what I had in mind. With the swi... (by TheIdeasMan)
for loop
Wrote a program to add the digits of an integer, program is right except for the fact that it adds 4...
[3 replies] Last: If it makes you feel better, the way how C++ converts chars to integer... (by Kevin C)
by Bear18
I need help writing a program to approximate pi
I am having trouble writing a program that displays the results of the following two approximations ...
[4 replies] Last: Here is another possible solution: #include <iostream> using namesp... (by Kevin C)
by LASims
Sub Strings
Hi Problem: I have a large text string and within that large text string I need to look for 30 diff...
[6 replies] Last: Solved now. The MiiNiPaa solution worked good. I just made an array ... (by LASims)
do while compile error
Stumped as to why following code does not compile using MinGW. Help would be significantly appreci...
[2 replies] Last: Here: #include <stdio.h> #include <iostream> #include <string.h> #i... (by FireCoder)
Visual studio for c++
Hi,i just now downloaded visual studio community but however there is no win32 console application u...
[7 replies] Last: Pretty much every possible solution, from the ingenious to the moronic... (by helios)
How do I get a number from a file?
I have an integer stored in a txt file. How do I retrieve it without using getline?
[2 replies] Last: Sorry I took a while to answer. It's working. Thanks for the help (by miguel96)
C-string comparison need help to debug
I need some help, i do program that compares two cstrings, if they are >, <, or equal to each other....
[10 replies] Last: Thank you very much!!!! (by elledesforge)
Dental Appointment program
Does anyone know the solution to this problem? Been experiencing multiple errors. Thank you! Crea...
[2 replies] Last: This is not a homework site. We're not going to write your code for y... (by AbstractionAnon)
need help in simple reversi game
Write your question here. #include <iostream> #include <string> #include <stdlib.h> usi...
[6 replies] Last: You might google for other programmer's solutions. The alpha beta rout... (by CodeWriter)
How do I get all the combinations of characters.
Say I have a string, how do I generate all the combinations of its characters? example: I have a st...
[5 replies] Last: I just copy paste from another thread . Normaly I use std::swap . (by Ericool)
SFML - How To Control Animation Speed
I'm learning SFML at the moment. One of the things I've managed to do so far is animate through a sp...
[11 replies] Last: Okay here is some code out the SFML Game Development book, it shows an... (by Z e r e o)
hey guys am writting a program using classes that prompts for class name and grades and than outputs...
[5 replies] Last: this doesn't even compile. for example, line 107: void class_average... (by mutexe)
C++/OpenGL/SDL/Cmake where to Start?
Hi my name is divine, and this is my first time in this forum. I just want to ask for an advise in h...
[10 replies] Last: @Zereo I dont think Vulcan with Dx12 is good for starting . Most of t... (by Z e r e o)
Bubble sort
What is the 'flag' for in bubble sort? When I removed it the sorting algorithm still works fine. ...
[1 reply] : It allows the function to complete faster. It stops further steps when... (by Kevin C)
Float not working.
Why is the median function returning integer number? The average function works just fine. #i...
[8 replies] Last: I found the problem! It turns out that my 'b' variable is of int type,... (by supernoob)
by calz
Unnamed namespace
Write your question here. Perform input validation for a username and password.Also create header f...
[19 replies] Last: I rarely use string but const char * , you can use string as well of ... (by Ericool)
What's a c++ style array?
I am getting heat from any body of c++ coder for using "C-Style Arrays." How do I make C++ Style arr...
[7 replies] Last: In C++17 a helper function make_array will be introduced It's in Lib... (by Cubbi)
by JPoor
Need help with first c++ prroject
I need help with writing a program. Here is the question : Write a program with for loop, calcula...
[4 replies] Last: you're welcome . (by Ericool)
Operator overloading? - So Confused!
I've been watching/reading tutorial after tutorial on this topic, yet I still do not understand it. ...
[19 replies] Last: I got the following errors message: 24:18: error: passing 'const CVec... (by keskiverto)
Pages: 1234... 32
  Archived months: [jul2015]

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