Beginners - February 2019 (Page 5)

exercise in c++ book that bleeps out words
 
Why is there no output after I input many words separated by spaces? Also, how do I add std_lib_facilities.h int main() { vector<string> words; vec...
[6 replies] Last: Thank you so much Andy! (by houndbob)
by Majeek
Test Various Different Variables?
 
So I have this code: int main() { int Person1; int Person2; int Person3; int Person4; int Person5; int Person6; int Person7; int Person8...
[3 replies] Last: Please forgive the late addition to the solutions already provided, bu... (by Cheddar99)
by Majeek
Add A Bunny Age System?
 
Code : https://pastebin.com/bZzaR9zm So I have a counter for how many are in the Race & Gender, but I also need to have a counter to how old they are (0 ...
[1 reply] : If this is your assignment, you're doing it wrong. You shouldn't be wo... (by fiji885)
wowels/consonants
 
Hi, I am writing a program that inputs a string, gets rid of the vowels, and if two consonants typed right after one another are the same, the output should...
[17 replies] Last: #include <iostream> #include <string> #include <cctype> using namespa... (by lastchance)
by Majeek
Beginner Project To Help With Unreal Engine?
 
Like it says. Does anyone have any good beginner projects with console that will help when I learn Unreal Engine??code]
[1 reply] : Have you tried playing around with SDL (https://www.libsdl.org/) and g... (by Cheddar99)
Error in Visual Studio
 
Guys, Please help me to get through this error. https://imgur.com/a/tsN5DHf Thanks in advance
[4 replies] Last: Well each one of those array references is a potential source of the p... (by salem c)
by Taucg
type
 
Which type is nowadays usually used by most programmers for floating point numbers.
[3 replies] Last: Pretty much they get promoted from whatever to internal FPU size. If... (by jonnin)
Error
 
Why this error occur ? Exception thrown: read access violation. this was nullptr.
[3 replies] Last: You can't read a nullptr: int *ip=nullptr; int i = *ip; // illegal ... (by dhayden)
Pascal Triangle
 
I know that (x+y)^5 is 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 what does (x+y+2)^5 mean as a pascal triangle?
[3 replies] Last: more useless info … until the coefficients move to double digits, s... (by jonnin)
how to use libraries in C++
 
Hi, I'm beginner in C++ and want use this library for my project. but i don't know how am i use it. please help me. Thanks https://github.com/dpilger26/NumCpp
[1 reply] : did you try their example? https://github.com/dpilger26/NumCpp/tree/ma... (by jonnin)
FILE *fp2
 
Can some one tell me what exactly is following code doing in C, and what is its alternative in C++. FILE *fp2; fopen_s(&fp2, "lid driven cavity(%dx%d).pl...
[9 replies] Last: For each of those errors, the problem is the argument to fclose() not ... (by dhayden)
please i need help with my homework
 
forgive me, im really bad at coding, write a program that accepts vehicle type and ticket type and determine the toll charges given the following formula. tol...
[10 replies] Last: A couple of things ... Your "if" statements seem a bit awry, and you e... (by Cheddar99)
Deleting a pointer
 
Hello guys.I have a function that removes a pointer form array of pointers and rotate other pointer for one place left.Now if size of array is n and pointers on...
[8 replies] Last: Thank you all for your replies. (by Zivojin)
by Majeek
Why doesnt this work
 
Error is std::string test = test(); where test(); has the error #include <iostream>; #include <string>; int main(); std::string test(); int mai...
[5 replies] Last: What's this a prototype for the main function?? int main(); You don'... (by Grime)
Find the highest and lowest value of a multidimensional array
 
Hi, I am currently working on an assignment that asks me to input test scores for 5 students for three tests using multi dimensional arrays and determined the a...
[2 replies] Last: Works perfectly! Thank you so much for the help! (by kdrewes)
by Taucg
temp
 
How do you correctly define a variable called "temp" of type "double" that is initialised to a value of 20.0
[2 replies] Last: http://www.catb.org/esr/faqs/smart-questions.html#bespecific (by salem c)
Please help with for loops
 
Hello for a homework assignment I have to write two "for loops" one to get user inputted data and one to print out user inputted data. Im stuck on how to get "E...
[5 replies] Last: ah okay thanks guys you both been a lot of help! I got it all to work! (by iTzBigRed)
by Horror
User Defined Functions
 
The cost to become a member of a fitness center is as follows: The senior citizens discount is 30% If the membership is bought and paid for 12 or more months...
[1 reply] : This link talks about functions: http://www.cplusplus.com/doc/tutorial... (by chicofeo)
forward_list question
 
Hi all, I have a series of commands as follows: Append 2 Append 3 Prepend 1 The requirement is to use STL forward_list to create those commands...
[1 reply] : I'm not familiar with using forward_list, but if you like the first ap... (by Cheddar99)
by srk100
Counter
 
Hi, I was wondering how to add the counter bit of the instructions described below into my program. Thanks. Create the maze Get a pointer to the start. ...
[1 reply] : that is just about unreadable, so I will leave you with a thought (apa... (by jonnin)
February 2019 Pages: 1... 34567... 23
  Archived months: [jan2019] [mar2019]

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