Beginners - December 2015 (Page 30)

Why is 1.1 + 2.2 not equal to 3.3 !!!
 
Please explain this. I also faced this type of problems before: #include <iostream> #include <cmath> using namespace std; int main() { double a = 1.1...
[12 replies] Last: http://www.cplusplus.com/reference/cmath/abs/ (by Chervil)
new Node in LinkLists
 
I have three related questions. I have a node class and a Linklist class defined as below. 1) The setNext() function of node class, takes pointer to a Node...
[1 reply] : 1) no problem. But you should set next to nullptr in the constructor... (by coder777)
Can I use string::find and string::insert to insert ub before each vowerl character
 
Hello,I really need help with making the translator I need to add ub before each vowerl character and I am wondering if I could use string::find and string...
[14 replies] Last: you could also try -std=c++11 compilation flag to enable the C++11 f... (by ne555)
Array with strings+int
 
Hi! I have a last minute assignment to create a program that converts the input of a number of student grade scores into letter grades and store it in an array ...
[17 replies] Last: Thanks malemale777 thank goodness somebody was awake ;) (by closed account 48T7M4Gy)
Caesar's Cipher Help
 
Hi, I have an assignment at school to make a Caesar's Cipher, i can't get it to work because it keeps on saying that is wrong in my code, i would love someon...
[2 replies] Last: Also, you have a number of arrays you havent declared properly. eg Mes... (by closed account 48T7M4Gy)
Backspaces in string
 
In my Template listNode code doesn`t take a backspaces while using string. How can I fix it? Example I input "Saudi Arabia". But in output I get only "Saudi" ...
[4 replies] Last: Thanks, it`s works (by Pretors000)
Help with circular inclusion
 
Hi. Whenever I try to make a lot of cpp and header files for a project, I always end up with problems with circular inclusion. I try to use forward declarati...
[11 replies] Last: It might have to do with the ordering in which you've put in your head... (by YFGHNG)
by isom03
Segmentation fault (core dumped)
 
I am trying to read values from a txt file into an array in order to find their mean, median, and stanDev. Stuck in with getting the values from txt file into a...
[1 reply] : If you ran this under a debugger, it would tell you exactly which line... (by Moschops)
What is Data Structures and Algorithms in C++?
 
Can you explain me what is Data Structures and Algorithm in C++?
[5 replies] Last: I should have been on yesterday to watch this drama unfold lol. Anywa... (by YFGHNG)
by st4evr
Help With Program To Identify Lower Case Strings
 
Hello everyone, Beginner C++ student here, first ever programming class. I am trying to put together a program that will identify if a string is all lower ca...
[2 replies] Last: cin >> l; you should change this to getline because the >> operator ... (by Yanson)
Improvement on 'return -1' for representing failure of a function
 
I have a function whose 'argument' and 'return type' will always be a unsigned (positive) integer. For example, if we want to find index of fabonnaci series, t...
[14 replies] Last: Thanks for all the replies. (by saherch)
Sentinel problems
 
Write your question here. Hey everybody my project is to make a simple guessing game. Well I've done that part but I later read that the user must be able to...
[1 reply] : If you have been introduced to functions: #include <iostream> bool ... (by JLBorges)
How to see if there are time conflicts in schedule?
 
I have written this program that prints out your schedule in neat way, however, my problem is that I have to put a function that detect if there were any confli...
[3 replies] Last: I implemented a similar data structure for work many years ago. It we... (by dhayden)
by bibtnj
Implementing own iterator on vector
 
Hello guys! I have a problem, or maybe some misunderstanding. I'm writing my semestral project to school. In short, we have to create model of "Santa sleight...
[5 replies] Last: > If I may ask, why did you corss out <T*, Comparer>? > I have it ther... (by JLBorges)
need help here
 
im new to C++... the project im currently working on is really overwhelming. I dont fully understand classes so any help or tips on how to get started would ...
[1 reply] : Dupe Post http://www.cplusplus.com/forum/general/180506/ http://www.cp... (by SamuelAdams)
Run C++ projects without compiler
 
Hi guys, I have made some basic board games in C++ like Tic-Tac-Toe, Hangman and a few others. I want to share those with my friends who do not have a C++ c...
[5 replies] Last: Try copy your source code into the virtual machine, and compile it wit... (by liuyang)
from DEv C++ to C++
 
Hi, i try to run my code using visual c++ 2012 but it doesn't work. i created it using Dev C++ bloodshed. Does anyone knows how to change the coding so it can r...
[4 replies] Last: #include <stdio.h> #include <string> #include <math.h> #include <iost... (by closed account 48T7M4Gy)
Binary search
 
Binary and linear searches will be heavily emphasized on our final. Any good independent resources out there? Thanks.
[2 replies] Last: Much appreciated Arslan7041! Thanks! (by closed account 9N36C542)
Displaying an array
 
Hello guys! So I encountered this problem of not knowing how to display my random numbers from an array. The display should have 6 columns and I don’t know h...
[1 reply] : #include <iostream> #include <vector> int main() { std::size_t c... (by cire)
Help with function without object.
 
Hello! Im writing a program to practice creating objects/classes. I only ran into one problem which is when I try to create my print function. I want to creat...
[8 replies] Last: Ohh, turns out all that was missing was the Cat:: in front of function... (by ProperConfused)
December 2015 Pages: 1... 2829303132... 43
  Archived months: [nov2015] [jan2016]

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