Beginners - June 2018 (Page 10)

Double Derivatives and Beyond
 
So I've actually gone through calc classes A through C, but it occured to me that I have done nothing with this knowledge. I decided to implement some common t...
[2 replies] Last: You are using the first derivative to get the second. This sounds good... (by lastchance)
by jojo56
Sorting Arrays
 
I can't seem to change this to descending from ascending, please help. /* *Author: Joe *Date: * Created on June 1, 2018 *FileName: main.cpp *Purpose...
[1 reply] : To sort it descending you need to call sort with a comparer. http://ww... (by Thomas1965)
unable to analyse a line of code in c++
 
what does this line of code mean and what is it's use? cin.ignore(numeric_limits<streamsize>::max(), '\n');
[3 replies] Last: Here is a topic I recently posted, it was about stream object and not ... (by H00G0)
trouble! help?
 
i need help im trying to get the second line to output but it just keeps saying the same thing as if i put in a and says excellent work, how do i get it to say ...
[3 replies] Last: Here you need to change code with (grade==a) as well as (grade==b), Th... (by shivkumar12)
Problems with cin not picking up all strings?
 
I'm trying to write code that can get input from a user. The input will be something like "1 empty container" or "5 fish", etc. Basically a number followed by o...
[2 replies] Last: #include <iostream> #include <string> #include <iomanip> int main() ... (by JLBorges)
homework help! im stuck
 
so my teacher wants us to make it so when you input a letter grade that it will say for an a excellent work and for a b below average work but when i start it a...
[7 replies] Last: #include <iostream> int main() { char grade ; std::cout << "... (by JLBorges)
operator overloading
 
Hi iam new to c++. i have learn operator overloading and write one program but it shows errors. i dont understand whats wrong with the code.please anyone help...
[3 replies] Last: Thanks.u r right, it works. (by ghost1166)
File Handling : Wrong Output
 
I have to create a program which counts number of time the word "he" irrespective of case appears in a text file. I have written the program,it compiles but is ...
[11 replies] Last: In Thomas1965's example, he simply replaced the 0 with the equivalent ... (by Ganado)
using a function in a derived class to change a base class' private data member?
 
I have a practice question as below. Considering the following code: class One{ public: void print() const; protected: void setData(string,char)...
[3 replies] Last: Just what I wanted, thanks! I didn't know you could do that. (by subs098)
Char * buffer to vector<char> compile errors
 
Hi guys. I am *sorta* new to C++ and sorta not. This is the first serious attempt I have made at trying to understand and implement functions and code. The foll...
[6 replies] Last: Avoid stuff like this: char* buffer = new char ; let std::vector... (by JLBorges)
need help
 
i need help with this assignment how do i do this? please help me sorry im still learning Mileage Calculator You are tasked with creating a mileage caclulat...
[1 reply] : Hello tyler, This is not a we-do-your-homework-for-you site. You have... (by Ganado)
by Adder
HELP WITH A PROBLEM
 
Hi.. I'm a begginer programmer and i don't know how to solve this problem. When i'm compile on the website where i learn c++ ( this site asked me in the progr...
[3 replies] Last: If you want a more elegant solution, first try figuring out the logic ... (by Ganado)
what does theese arrows do?
 
I dont understand this code. The -> arrows what do they do? game->GetWorld ()->GetPlayer ()->gateway.Nuke (); thanks =)
[2 replies] Last: when a function returns a pointer you can immediately access it by tre... (by jonnin)
problem with implementing this question of codechef (1,2,3,...,10,11,12,13)
 
@lastchance can you help me in solving this question link to the question-: https://www.codechef.com/JUNE18B/problems/VSN
[246 replies] Last: For which question you've got plagrised? (by unknown1211)
by pizza
Squiggly brackets for single statements ??
 
I don't really use brackets for a single statement under loops and if statements But, just now I came across a problem that I had never encountered before. I am...
[1 reply] : IIRC visual breakpoints can be tricky for a few edge cases. What you... (by jonnin)
Basic Input/Output Problem
 
This code refers to a project that I am trying to complete regarding inputs/outputs. The problem reads as follows. Suppose you have a list of N integers in ...
[1 reply] : a is a pointer, i.e. it's an address to memory. Why are you trying t... (by Ganado)
assigning to type PWSTR
 
New to C++, so i thought i'd post this in here. Apologies if I should have put this in the Windows section. I'm trying to write some code to search Active Direc...
[5 replies] Last: what I gave you was seriously the crudest thing that would work, thoug... (by jonnin)
Array with User Input
 
I am working on a simple program to ask the user to input 4 numbers, print those numbers in an array back to the user I am stuck on trying to put the numbers ...
[4 replies] Last: C++11 introduced the range-based for loop for sequence containers: #... (by closed account E0p9LyTq)
What topics to Cover? Need suggestins.
 
I am 4-5 months into learning c++ and getting hang of it,though it is heck lot of different from python but still it's been fun past few months. Now I have cove...
[3 replies] Last: What do you mean by virtual classes ? Virtual functions, as in fun... (by Peter87)
by H00G0
Xutility Error in visual studio 2017
 
Hello! I'm currently working on a game, working with visual studio 2017. I'm having trouble debug a function that I'm writing. It basically loads a file, and...
[1 reply] : Looks like a problem with an invalid iterator inside some STL containe... (by Thomas1965)
June 2018 Pages: 1... 89101112... 19
  Archived months: [may2018] [jul2018]

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