Beginners

by admin
Welcome -- read before posting!
 
Welcome to the beginner's forum in C++.com! In this forum, users can to talk about any topic relate...
[2 replies] Last: How To Answer Questions in a Helpful Way Be gentle. Problem-relat... (by admin)
Console Closing Down (1,2,3,4,5,6,7)
 
Hi, i am new to C++ and have just written my "Hello World" program. It worked all right but the cons...
[120 replies] Last: It displayed "Hello world" after you pressed Enter. int c is a ... (by Duthomhas)
Getting WA although the question statement seems pretty basic
 
Write your question here. Jitendra has won a lottery of K rupees. He wants to utilize this money op...
[10 replies] Last: @tpb Thanks it worked, found out my mistake too :) (by iamdad3)
Write a function that takes an object as argument and deletes that object from an array of objects
 
So I have two classes, one for contactInfo and another for contactBook. I create a few contactInfo o...
[1 reply] : To compare 2 ContactInfo objects you can either overload the == operat... (by Thomas1965)
Segmentation fault with empty string
 
I've been in panic recently because I have code that works fine on one computer, but crashes on the...
[1 reply] : The code you have shown us looks ok. Calling the empty method on a st... (by Thomas1965)
Array and input files.
 
I never quite figured out how to use input a file so the program uses it (or really anything files) ...
[1 reply] : Hello BGA6444, I tweaked your code a little so that it's simpler and i... (by hoogo)
skill input
 
help me with this question. https://www.codechef.com/ISCC2018/problems/T29
[no replies]
Segment Fault.
 
So i`m trying to finish up a program i`ve been working on but I have hit a wall with a segment fault...
[2 replies] Last: Unfortunately it’s my professors backwards apostrophe it messes with... (by sgill1998)
by Ch1156
How to create a timer using C++ only and no windows API
 
I am writing a game similar to the Fallout shelter part where they explore the wasteland. I would li...
[8 replies] Last: Only his comment was platform specific (or more technically, unspeci... (by tpb)
by Donut
Functional Decomp
 
Newbie with another question for the experts...I am teaching myself C++ and have spent a fair amount...
[no replies]
by clonxy
How to change a dynamic 2d array from another func
 
I'm trying to create a dynamic 2d array to play chess with only 2 pieces: White King and Black queen...
[7 replies] Last: I think your instructor wants you to keep the delete calls, by the wa... (by Ganado)
Google test in CLion - Unit test function using gmock
 
bool bank::read1(int duration){ int num_votes = take_vote(&party, leader, duration); ...
[no replies]
Implementation of Comparison Operator
 
I am reading Object-Oriented Programming In C++ by Nicolai M. Josuttis. In Chapter 4 of the book, h...
[2 replies] Last: Thank you. I revised the files and included a test file. The test fil... (by phztfte1)
Reading a string from text file
 
Hi everyone! I have a problem when working with string in text file. For example, I have a text: <w:...
[13 replies] Last: Thanks for this code, it's exactly what i searched ! :) (by zerochelle)
Code Review - Printing Variable Information to Console
 
Hello, I was hoping a few people would take a quick look at some super simple code I created. The pr...
[1 reply] : Sorry, I didn't get round to sorting the arrays out similarly, but you... (by lastchance)
Finding the Sum of Digits Recursively
 
This recursive function is intended to sum a numbers digits, but it always returns the expected answ...
[8 replies] Last: Thank you, and I wrote write after the initial post the other changes ... (by One Pea)
Find possible values of a,b,c,d (my answer is giving tle)
 
Write your question here. From an array of N(<=1000) we have to find all possible values of a,b,c,d...
[18 replies] Last: b is definitely the tricky part, and probably the clue to a better sol... (by tpb)
by hellon
Big Multiplication
 
Hey, Can anyone tell that how can we multiply two very big numbers of length 10^5 with a modulo.
[3 replies] Last: use boost library in c++ or big integer library in c++ else the two ... (by iamdad3)
how to move front node to last node in linked list.
 
So I`m trying to move my front two nodes to the back of the list. I don`t understand what I am doing...
[1 reply] : Well, you inexplicably have a "link" and "next" which you seem to use ... (by tpb)
Crypting text (char array)
 
Hi, I must write a code that takes 4 lines and crypt them with a number. I have already looked on...
[5 replies] Last: Wait? Really? Was it always this way? One of the first rules of pr... (by Manga)
Pages: 123... 29
  Archived months: [may2018]