Beginners - November 2018 (Page 6)

Can dividing a number with 2 result in a remainder other than 0 or 1?
 
I'm an amateur korean c++ learner, and am trying to make a fully working coin tossing program. Since I'm now studying rand() function, I want to define the head...
[9 replies] Last: > Is "implementation-defined" a kindly euphemism for "undefined behavi... (by JLBorges)
by numbii
How to print error if number is incorrect?
 
Hi. I need help with my code. It takes an integer as a parameter and returns the sum of the digits of the integer. I want my program to test if the integer is n...
[6 replies] Last: > I can't use arrays nor strings in the task, nor if statements I pr... (by JLBorges)
Functions
 
Hi so i need a little help with my program, because i need to put two numbers and choose my operand and after that it will ask a question to return back to the ...
[2 replies] Last: the variable d must be type char.the declaration of variable d in your... (by johnniewalker97)
Question and Clarify
 
1. A quiz from site, "convert the following numbers to C++ style scientific notation. Using an e to represent the exponent, and determine how many significant d...
[4 replies] Last: Zeros that are written where otherwise unnecessary are significant. t... (by jonnin)
First time poster "Black Jack" game
 
Since this is my fist post I figured I would introduce myself and show what I've been able to accomplish so far. I'm at the end of my first year in college aft...
[2 replies] Last: cstdlib, not stdlib.h … this can cause weird compiler errors every ... (by jonnin)
by Kreons
Help Make a Working Game of Hearts Program.
 
I'm stuck on this program, and Google doesn't seem to be working. I would've asked the teacher, but classes were canceled because of the degrading air quality. ...
[5 replies] Last: Ill bet :) you need a smart pass function for the pass you need to und... (by jonnin)
Only once help
 
I am trying to make this program, where the user will try to guess what my name is and it will check. If the user guesses it correct, it should only print: "You...
[1 reply] : I think you want the block of statements after the else statement to b... (by Satan)
Program closes after input stuck
 
I want to enter all input and after that, for the program to not end. I am stuck on this because I tried everything. Either my code is affecting this or I am do...
[5 replies] Last: Final code: #include <iostream> #include <string> using namespace st... (by Maxster)
by owmn
I need help with this c++ error please
 
So basically I have this c++ assignment for school where I need to write a recursive function, called sumDigits, that takes an integer as a parameter and return...
[4 replies] Last: @salem c Thank you so much! This worked perfectly! (by owmn)
Printing numbers in array!
 
Hye!I needed help regarding this code. Its giving an error "Too much initializers". There are 12 slots(including 0) and 12 numbers.Whats the mistake? #...
[2 replies] Last: Thanks! Got it! (by lost110)
Avoid printig same letters in matrix
 
Hey guys I'm trying to print a matrix with random letters wiht non to repeat.I can print the random matrix but ı can't avoid letters to repeat. Can anyone help...
[12 replies] Last: #include <iostream> #include <algorithm> #include <string> #include <... (by lastchance)
by vysero
Identifying this variable
 
I have a variable I am attempting to understand: std::vector<uint64_t> ID So this variable ID is of type vector<uint64_t> and it is inheriting fro...
[1 reply] : That isn't what inheritance is. std is a namespace, which all standard... (by Ganado)
Imaging
 
Hi,
[6 replies] Last: line 13 is nonsense to the compiler. borderedImage(PixelGrid,PixelGr... (by jonnin)
Error: ld returned 1 exit status
 
Can't seem to figure out what's the problem, and i never across this type of error (error: ld returned 1 exit status; undefined reference to `Skaityti(int&, in...
[2 replies] Last: oh okay, that was a dumb mistake. The teacher said something about rem... (by MrGoodCookie)
by vysero
Scope resolution opperator
 
Given the following method: void ToolsViewConsoleAbout_MainPage::updateBpaVerInfo() { m_bpaVerInfo = QLatin1String(""); if (TJM::bpa().ha...
[3 replies] Last: exactly! (by jonnin)
How to take indefinite function arguments?
 
I have a simple events system like this: class Comp { typedef void (*cb)(); unordered_map<string, cb> events; void on(string, cb); voi...
[1 reply] : example shamelessly stolen from the web: #include <stdarg.h> double... (by jonnin)
code produces no output
 
hello everybody. i have no idea why this code produces no output. #include <iostream> #include <random> int main(){ int x = 10; int y = 10; ...
[8 replies] Last: right, thanks everybody for the help :) (by Stauricus)
I don't get right answer
 
Write your question here. #include <iostream> #include <fstream> using namespace std; // const char duom = "duomenys.txt"; const char rez = "...
[1 reply] : Integers automatically truncate. From the compiler's perspective, (did... (by Browni3141)
complier problem
 
Write your question here. when I try to compile my project this happen C:\Program Files (x86)\CodeBlocks\MinGW\lib\gcc\mingw32\5.1.0\include\c++\mingw32\b...
[10 replies] Last: I guess you are trying to compile with a c compiler instead of a c++ o... (by ne555)
by yat89
Sorting values (const double)
 
Hi everyone, I am new in c++. I got a task to sort startNode in ascending order of mapping fitness. I had review on topic for sorting values. I had try to do i...
[2 replies] Last: Thanks for your help.. (by yat89)
November 2018 Pages: 1... 45678... 24
  Archived months: [oct2018] [dec2018]

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