Beginners - June 2016 (Page 15)

By Vector loop skips odd numbers
 
I want to know why my remove function isn't removing all of its elements when called and isn't removing odd vector elements? If i input the words one, two, thr...
[8 replies] Last: Finally I finished it, i realised now that i needed another vector in ... (by Deadlines)
Range Based for loop help
 
I am getting an error saying (this range-based 'for' statement requires a suitable "begin" function and none was found). Each of the loops are in functions ...
[6 replies] Last: Thanks! Duoas. There are a lot of things i haven't covered in your p... (by GigaMuff)
Help
 
I am very new at c++ and I am trying to get create a program where the user can type in the information that will added up to get and then they will get end up ...
[11 replies] Last: As kemort suggested, the solution is to use a data structure and an ... (by AbstractionAnon)
heap memory
 
why isn't this valid - int number = new int while I can allocate heap(free store) memory to a pointer? int *number = new ; int main() { int number = ...
[1 reply] : [quote=adam2016]int number = new int ; // why is this not valid? You ... (by closed account E0p9LyTq)
How is it possible to allocate a 2D array on the heap?
 
Hello, can someone show me a working example please?
[4 replies] Last: > It is also possible to do it directly in C++11: > http://stackoverfl... (by ne555)
trying to find smallest index
 
hey guys I'm trying to find the smallest index of numbers I entered heres the code I used but the output surprises me as it's not close to what I want it to do ...
[3 replies] Last: int findSmallest(int ray ,int size) { int smallest = ray ; int... (by AbstractionAnon)
if, else statements
 
are if, else statements functions?
[2 replies] Last: http://en.cppreference.com/w/cpp/language/statements if is a "selec... (by closed account E0p9LyTq)
Outcome not as expected
 
I am new to C++ and I have a program that is suppose to find the area of a Circle or a Square. The program will run and request input, but the output is not wh...
[2 replies] Last: I removed the single quotes around the variable names. I also noticed... (by TexasMike)
Function not defined in this scope
 
I currently use code::blocks ide. Today when using clrscr. I do #include<conio.h> but it still gives error that clrscr is not defined in this scope. I...
[9 replies] Last: Try it, you won't do any damage to anything but it's not good programm... (by closed account 48T7M4Gy)
Banking problem
 
Was thinking about how it would work. The single user deposit and withdraw is simple but can't figure out how I would let multiple users open account in the ba...
[3 replies] Last: If you haven't learned about vectors then you might have learned about... (by closed account 48T7M4Gy)
finding smallest number to no avail
 
greetings,I'm trying to make a program which finds the smallest number in an array of numbers yet everytime when I run the program the result I get(number that ...
[11 replies] Last: Best tutorial on insertion sort: https://www.youtube.com/watch?v=i-SKe... (by Arslan7041)
by h4ever
How to declare array of strings & types <C++11
 
For Visual Studio 2010 I need to create two arrays which will be saved in class. One array should contain strings like // declaration: const char* pr...
[16 replies] Last: I'm not sure what more you want here. There have been solutions to you... (by MrHutch)
Good voice recognition library for c++?
 
I am looking at VOCE and Sphinx. Are there anymore good ones? On a side note, how do these work? If I want to rebuild the wheel and create my own voice recogni...
[1 reply] : Windows 10 has "Cortana" as voice regonition system and it is really g... (by closed account 48bpfSEw)
Can Someone Tell Me What These Numbers Say
 
9997110321151111091011111101013211610110810832109101321191049711610410111510132110117109981011141153211597121
[5 replies] Last: 11610497116391153299114117101108 (by shadder)
Can't display average value, returns "nan(ind)" or "0"
 
Hi guys, I apologize in advance if this problem is an elementary one. I am n00b in programming and I started learning C++ today. Never programmed anything befor...
[5 replies] Last: The 1000000 is just a large enough number that is adequate for our pur... (by JLBorges)
Array Question
 
I am in a C++ programming class, but I am completely lost, please help! An integer array xSquare has 50 elements. Write a program segment to initialize the e...
[3 replies] Last: http://www.cplusplus.com/doc/tutorial/arrays/ Have a look at this tut... (by closed account 48T7M4Gy)
Basic Console Application
 
Here's the code of a very basic console calculator I made using DEVCPP. My question is how do I loop the program to go back to the start so I can use input m...
[3 replies] Last: Make sure you use the correct variables at the correct positions in th... (by Peter87)
Help me find a median, median grade Lab
 
OK so I got this program almost done my only problem now is that it keeps rounding when it finds median, any help would be appreciated. //Zachary Marbooti ...
[1 reply] : http://www.cplusplus.com/forum/general/192612/ (by closed account 48T7M4Gy)
Accessing chars in a string
 
Hi there, I'm having some trouble at the moment I believe with either accessing characters within a string or with comparing the character found with the exp...
[2 replies] Last: http://www.cplusplus.com/reference/cctype/isalpha/?kw=isalpha (by closed account 48T7M4Gy)
Coverting Decimal to Binary, Hex, Octal
 
I'm currently taking a class in C++. The teacher isn't clear and I'm not quite sure on what to do. I really need help 1. dtob – converts a decimal number t...
[1 reply] : Looks like you need to create 5 functions that do the required convers... (by jlb)
June 2016 Pages: 1... 1314151617... 25
  Archived months: [may2016] [jul2016]

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