Beginners - December 2018 (Page 9)

by H00G0
good multithreading tutorial?
 
Hello! I was wondering if anyone knew any good multithreading tutorial or article, that is not reference. Something with clear explanations and examples? ...
[no replies]
A question on classes
 
I am writing a menu driven program and I want to use classes to display the different sections of the program. The problem that I am encountering is when I am w...
[2 replies] Last: Thank you so much TheIdeasMan for the information. I am new to this an... (by PermThesis)
by AM111
Funções C++
 
Boa tarde, Sabem que função do c++ posso utilizar para tendo um ficheiro txt., onde tenho a primeira coluna com o ID das loja, e as restantes colunas com ...
[1 reply] : Hello AM111, To my knowledge there is no built in STL function that w... (by Handy Andy)
how can ı create enemies ?
 
Hey Guys, I want to make game like this, https://thumbs.gfycat.com/DelightfulEquatorialGibbon.webp But I have some difficult problem in my code. 1)How c...
[no replies]
by AM111
C++ Count Funtion
 
Boa tarde, Não sei se alguém me consegue ajudar Dada uma sequência de números: Por exemplo: 12,12,13,15,15,15,15,17,18,20,20 Que função posso ...
[1 reply] : std::unique() will do this. std::unique over 1,2,2,2,3, 2,2,2 -> 1,... (by jonnin)
Problem with nails
 
Hello everyone, I have to solve one problem and im unable to do it. So lets say you have drawn a line on a board, and there are nails hammered in it. Each nai...
[1 reply] : I would perhaps start thinking about for each of 3,4,9, which neighbou... (by salem c)
Never Ending For Loop?
 
On line 40 with the begging of a for loop what I expected the compiler to do was display the error message, list the choices once more, and until a correct choi...
[6 replies] Last: Thanks for taking a look at this! I'm not that familiar with switch st... (by C10ranc3)
need help with finals
 
hi guys, i just need help to pass the test. Need to learn some basics pretty fast. I am struggling with this task from a previous test i am looking at. i am doi...
[11 replies] Last: At what point did your "solution" diverge? (by keskiverto)
strings? cant figure out my mistake?
 
[#include<iostream> #include<fstream> #include <cstring> using namespace std; int main() { char s1 ; cout<<" enter string: "; cin.get( s1); cout ...
[3 replies] Last: oh i see thanks! (by truckboy98)
Calling functions!
 
I need help with calling functions in my code. cout<<"Correct Digits: "<< int correctdigits(int a, int g, int size); cout<<"Correct Spots: "<< int correctspo...
[3 replies] Last: std::cout << "Correct Digits: "<< correctdigits(a, g, size); ... (by closed account E0p9LyTq)
Determine the time complexity of a basic code
 
Can anyone please explain why this is O(n). And if I change the increment of i to i++. Will the time complexity of the code change to O(n^2)? int sum = ...
[5 replies] Last: Yes! ...if you were to write out the sum, you'd get the sum of the f... (by mbozzi)
Manipulate texts with C++ (Query)
 
Hey everyone, is there a simple way to split a string when manipulating texts with C++? Thanks.
[1 reply] : http://www.cplusplus.com/reference/string/string/substr/ https://en.c... (by TheIdeasMan)
SpaceInvadersRemake
 
I am having difficulty determining the correct method to figure out whether or not the character is moving and which direction. I would like to move the ship le...
[3 replies] Last: Maybe a library like SFML? https://www.sfml-dev.org/ (by mbozzi)
Inversion count
 
Question- https://www.spoj.com/problems/INVCNT/ Method I used- Counting no of inversions using merge sort Problem- I can't figure out why my answer comes wron...
[1 reply] : inv+=n1-i; keep in mind what your variables represent and what valu... (by ne555)
defining header file directories in VC++
 
my compiler can't find these files: #include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" I've gone to Project/Properties/I...
[5 replies] Last: Looks like there's a couple of directories I needed to put in, but the... (by zydeholic)
Error compiling simple program
 
So, I actually have two questions, which relate to similar code. On trying to figure out the first problem I unwarily found a different issue which I don't unde...
[9 replies] Last: Thank you both (jonnin and Repeater) very much. I think I understand a... (by Cheddar99)
Reading from a text file into strings
 
I'm pretty new to c++ and come from a bash background, I am writing a chat bot that on the first time running it will assign a random alignment to the bot, ask ...
[3 replies] Last: glad to help! you are going to want to be more careful about fixing co... (by jonnin)
by DellXT
How to add these functions in this program?
 
#include <iostream> #include <map> #include <string> #include <vector> #include <windows.h> using namespace std; vector<string> colourOptions = {...
[no replies]
by PaoloM
Expected unqualified id
 
Do someone know why at line 15 and 23 there’s the error named in the title?? #include<iostream> using namespace std; void input(int , int); void output(...
[3 replies] Last: what semicolons means http://www.wordreference.com/enit/semicolon ht... (by Enoizat)
by user42
Simple scanf
 
I am trying to run an infinite loop which asks for input d or g from the user. if d or g is not entered I want it to print that it is invalid and just try to g...
[3 replies] Last: By default, the conversion specifier c in "%c" does not skip l... (by JLBorges)
December 2018 Pages: 1... 7891011... 22
  Archived months: [nov2018] [jan2019]

This is an archived page. To post a new message, go to the current page.