General C++ Programming (Page 5)

Regex
 
I have the following regex: std::string s("AAA"); std::smatch m; std::regex e("(?=.{3,}[A-Z])(?...
[8 replies] Last: (?:[a-z]*[A-Z][a-z]*){3,} pattern: a string made up solely of al... (by JLBorges)
Start a paused process c++
 
i have this function: HANDLE Startpausedprocess(char *cmd, PHANDLE hthread)//Not const char* becaus...
[5 replies] Last: sorry i was wrong im checking (by omarespanol)
Loop and Arrays
 
Can someOne explain to me what the code below does? void Device::msLogBitsAll( int dsindex, int n...
[no replies]
Getting a "expression must have a constant value" on my switch statement
 
#include<iostream> #include <string> using namespace std; int main() { //setting up numeral ...
[1 reply] : The error is telling you that grand_Total >= 1000 isn't a constant e... (by mbozzi)
Reading file line by line into string
 
Hi, so I'm trying to open a file and read the sentences in it line by line and put them into string ...
[5 replies] Last: Even if you are "restricted to basics" you can take inspiration from l... (by cire)
Reading a file and printing it
 
I have this program. It's supposed to read from a .txt file like: The problem is, this prints on t...
[1 reply] : > How do I print this out a .txt file like output.txt? In exportTab... (by JLBorges)
by Murozo
C++ Windows 1998 Start Home Animation
 
https://www.youtube.com/watch?v=9QVnL50gDg4
[no replies]
by Murozo
C++ Google Animation
 
https://www.youtube.com/watch?v=qh2qVPxWZLM&t=359s
[no replies]
by Murozo
C++ Minecraft Herobrine Animation
 
https://www.youtube.com/watch?v=y-sj_k-9izw
[no replies]
console game to windowed game
 
I've been working on a small console game for a while now but I'm running into the limitations of th...
[7 replies] Last: lol I've played Dwarf Fortress once. I wonder how they made their grap... (by dudeawsomeness1)
should i use a recursive function or a "for" loop to calculate the factorial of a number?
 
so i have two pieces of code,both perform the same task "which is to calculate the factorial of a sp...
[2 replies] Last: neither. use a lookup table of about 25-30 values, unless you are pul... (by jonnin)
Please help with multiarray
 
#include <iostream> #include <iomanip> using namespace std; void Monkeyloop(); const int Monkeys = ...
[1 reply] : bump (by needhelpplease11)
by jafa
How do I validate letter grade is valid?
 
Hello, Part of my assignment is to validate that the entered grade is either A, B, C, D or F. What...
[2 replies] Last: Thanks JLBorges so much!!! (by jafa)
Quadratic Equation Code
 
I'm trying to create a code which will solve a quadratic equation ax^2+bx+c=0 where the user inputs ...
[3 replies] Last: basically,you don't need a class to do this. as jonnin said,you can de... (by Syrian Lucianos)
String & File input
 
So i'm new to C++ programming, and have a project in where the user inputs a sentence, and based on ...
[11 replies] Last: #include <iostream> #include <string> #include <fstream> #include <ss... (by fireblz5)
Storing information from a txt file
 
So I am supposed to make a mad lib game that randomly fills the empty spaces with the type of word t...
[no replies]
Recording the frequency from an ngram
 
I am tasked with recording the frequency of the ngrams in the argument map<string,long> reference. B...
[1 reply] : Stop ignoring the return value for generate_ngrams and see http://en... (by cire)
<< operator error syntax near cin "endl"
 
#include<iostream> #include <string> #include<iomanip> using namespace std; int main() { /...
[1 reply] : Cin loads data into variables, endl is used when you want to print a n... (by TheHardew)
PPP2 Chapter 12 12.7 Images
 
I'm trying out the GUI code in Chapter 12 Section 12.7 and I was wondering if there was a way to get...
[no replies]
Storing creatures in a fighting simulator?
 
Hi! I'd like to make a pokemon fighting simulator, where you have an image and every pixel is one...
[no replies]
Pages: 1... 34567... 32
  Archived months: [jan2017]

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