Beginners - July 2018 (Page 12)

Using a pointer to display hexadecimal value
 
I'm trying to display the memory location in hexadecimal after a value is received from a user. With my current code the output I get usually gives somethi...
[8 replies] Last: We can call it here as long as the code is fine. Thanks for the helpi... (by passiontrip)
Equilibrium codechef ques
 
Chef is an intern at Zoozle. He has a co-intern named Ajar who's good at maths. Chef wants to impress Ajar with his zoozliness, so he decided to play the follow...
[14 replies] Last: I am still not sure what its the probability OF. Nothing is randomize... (by jonnin)
Class Derivation
 
Why is it that within class B, even though it inherits class A, I can't call the print2 method? However, I can call the print2 method from an object of B...just...
[3 replies] Last: I'm not exactly sure why I tried to place it there. I should have plac... (by Crusher21)
by gvim80
Need Help with Tables
 
I've been trying to make a Menu ordering system that displays the Items ordered only, much like a receipt, but everytime i order again the row seems to be seems...
[8 replies] Last: After taking the order use currentOrder++ (by Thomas1965)
Friend classes in C++
 
I copied the first two class definitions from a tutorial on friend classes that I found here: https://en.wikipedia.org/wiki/Friend_class. I understand how class...
[19 replies] Last: I didn't know that you could call it for any class instantiation by s... (by MikeyBoy)
by ysf007
how to fix function call missing argument list in this case ?
 
I'm trying to learn cpp and inheritance, and I trying this example to display some data saved in vectors but I got this error C:\Users\P\Documents\looptest\ma...
[3 replies] Last: that's right, but why when I try to display kws content I do not get ... (by ysf007)
using string.find properly
 
I'm just learning all the string commands and I am super confused on how to use .find. The goal of this program is to take a user input of there name first mid...
[6 replies] Last: Thank you for the response. I think I see what needs done now. I bel... (by justStarting)
TAKE EQUILBR/NMNMX 100 POINT SOLUTION IN EXCHANGE OF GEARS FULL AC SOLUTION
 
PM ME
[no replies]
Printing vectors using cout in a function
 
I am trying to write a simple program to add 2 vectors and print the output using 2 different functions. The program intends to add vectors of different sizes a...
[4 replies] Last: If your original arrays were the same size then it's quite neat with v... (by lastchance)
Test Case explaination for REACHING EQUILIBRIUM question at CODESHEF JULY CHALLENGE
 
i can give equilbr /nmnmx in exchange of gears problem 100 pount solution
[no replies]
PIZZA DELIVERY
 
I'm getting this in the following problem! Has anyone got similar problems in this question? https://www.codechef.com/JULY18B/problems/PDELIV Sub-Task T...
[4 replies] Last: i can give nmnmx/equilbr in exchange of gears....pm me (by closed account jy6DLyTq)
by t009
Does passing (ostream &os) to print a simple object like an array add any value?
 
Whyuse void printa(ostream &os,int *Array) instead of just printa(int *Array) which does the exact same thing? void printa(int *a) { for (...) ...
[1 reply] : Passing a stream object allows for changing the stream, so the same fu... (by closed account E0p9LyTq)
Loop W/integer counter
 
This is what I have so far but how do I set the value of my integer to 2401 and make an integer counter that will count to 110 but I also have to have this in t...
[3 replies] Last: You set the value *ip to 2401 before you started the loop. If you want... (by t009)
by t009
Declaring a variable in is stream?
 
My question is at line 22-26 I created an is stream and want char c1, c2, c3; to be inputted by the user... what did I miss? #include <iostream> #i...
[4 replies] Last: Yeah it works great thank you. I thought it was not working but I had ... (by t009)
Someone explain this please
 
So my teacher gave me this as part of an assignment. I get that he wants us to make an algorithm, but I don't understand of what. This is the exercise: ...
[7 replies] Last: @ furry guy yes you are correct but i didnt want to give up the entire... (by kingkush)
by AlinaG
error: expected class-name before '(' token
 
So, where I have to declare the virtual destructor, I have this error error: expected class-name before '(' token . I don't understand what's happening. #...
[5 replies] Last: Thank you (by AlinaG)
c - two-dimensional table (monthly scan of 3 regions)
 
I need to make a two-dimensional table that scans monthly rainfall of the western, eastern, and central regions. The user must enter all 12 numbers for each re...
[1 reply] : You have 3 regions and each region has 12 months -> 36 numbers. Just o... (by Thomas1965)
by ysf007
how to loop over vector of vector ?
 
Hi, I've written the following in cpp, I have a table of strings streamTable, and a nested vector that contains strings that I wish to loop through. my aim is ...
[9 replies] Last: @az I have no clue what's going on. I still cannot compile your code a... (by Ganado)
Pointer & Address Help
 
So, my professor has asked us to declare a pointer capable of pointing at an int. Then continue to make the pointer point at a new integer. Then continue to pri...
[2 replies] Last: Well I guess that answers my question in all ways. (by sgill1998)
Calling a function from a loop
 
So I`m trying to solve a simple task by myself but I`ve only been coding for a week. I`ve looked at everyone elses questions to see if they could help me but my...
[3 replies] Last: I was given the first part by my teacher. The step was to write a main... (by sgill1998)
July 2018 Pages: 1... 1011121314... 17
  Archived months: [jun2018] [aug2018]

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