Beginners - July 2018 (Page 13)

class has no member name
 
i'm using ue4 and i keep getting this problem with the class "AAI_Character" has no member "BehaviorTree" but i included every file i need .cpp #include "AI_...
[4 replies] Last: You're welcome. (by MikeyBoy)
Subsequence Divisibility (1,2,3)
 
Hi, can anyone explain me what to do in this question. Here's the link. https://www.codechef.com/JULY18B/problems/MGCSET
[41 replies] Last: can anyone help with the test cases for N=30,N=45,N=100 for the proble... (by sk007)
Protected member of base class is not accessable from derived class
 
I am unable to understand why my program is not running #include <iostream> #include<typeinfo> using namespace std; template<class T> class num { pr...
[3 replies] Last: Change line 18 as follows (inform the compiler that val is a depend... (by JLBorges)
How can I find a certain sequence of characters in a string?
 
Hi all, I have a decent amount of knowledge of C++ and I'm working on creating a simple blockchain (not cryptocurrency, just blockchain) implementation in C++, ...
[8 replies] Last: I see it now. (by Kity)
How to find the number of times each number is either the greatest or smallest in each subsequence of a fixed size?
 
So, I need to find the product of all numbers in all the subsequences except for the smallest and largest number in each subsequence. I have observed that each ...
[12 replies] Last: @ne555 You see suppose the number of elements are 5000....The 5000Cr w... (by honeybuzz)
by AL88
Is this overloaded class working correctly?
 
Im trying to understand operator overloading so ive written a box class that takes the nescassary dimensions and multiplies them to get the volume then added tw...
[1 reply] : Pretty good, but a few issues. 1. int SetitsHeight(int height) {... (by Ganado)
Output a sequence of strings
 
Let's assume I want to create a program whose output will be 1 1??2 1??2??3 1??2??3??4 1??2??3 1??2 1 Where the ? are question marks, not unknown ot...
[2 replies] Last: #include <iostream> #include <iomanip> using namespace std; void dig... (by lastchance)
by AL88
Why is this not returning 125
 
Im writing a class to calculate the volume of a box.The values are width 5, height 5, length 5. Why is the multiplacation function not returning 125 please? ...
[1 reply] : int SetitsHeight(int height) {height = itsHeight;} int SetitsLength... (by Ganado)
Power Function
 
I want to calculate power of large number using modulus(10^9+7). Now when i am using python inbuit functions pow(a,b,m). Is it running for all the test cases bu...
[2 replies] Last: Can't test any code right now, but I believe the method I learned in s... (by Ganado)
Providion extra 10% discount for the sub total 1000 or more and calculate the total
 
I cant get the discount and total right, I need the output to be like Example 1 Enter quantity: 160 Sub Total = 544.00 Discount = 0 Total = 544.00 Example 2 ...
[8 replies] Last: One way: #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include... (by Thomas1965)
by AL88
Trying to build overloading class, function returns a funny number
 
Hi Im trying to build my 1st class to do some overloading but before i got to that part my box get its area function is returning a funny overflow number instea...
[1 reply] : int itsWidth; int itsLength; int itsHeight; int itsArea = itsWidt... (by Ganado)
by crown
whats the problem of this size of?
 
hello i want to make a code that it will tell me the size of a char,long,long,long. but it always tell me its 4byte. is it true?! #include <iostream>...
[8 replies] Last: //COMPILE USING TURBO CPP COMPILER #include<iostream.h> #include<con... (by kamalashwath)
Room lights
 
use flood fill algorithm
[1 reply] : Also, don't spam the forum with multiple threads on the same topic. I... (by MikeyBoy)
by wsme
struct tm Not returning anticipated value
 
Trying to understand the struct available in the time.h library, but I am unable to receive the anticipated value. I always get return 0 for tm_yday, and 1 for ...
[1 reply] : Your var timer has just random numbers - like any var you don't initia... (by Thomas1965)
calculating squares of an array
 
Hello, I'm completely new at this and I'm not sure how to calculate the square of the elements of an array of 4 numbers?
[1 reply] : int a = {1,2,3,4}; for(int x = 0; x < 4; x++) cout << a *a << e... (by jonnin)
by Kiryu
Strange overloaded operator
 
I'm currently applying for my first job for software development. Specificly C++ in this case. The application manager send me a rather simple class, in which I...
[2 replies] Last: Hey, good luck! It looks like a user-defined implicit type conversi... (by mbozzi)
Dvd Collection
 
So, I have written a dvd program for my c++ class and I`ve been getting a segmentation fault. So I found the fault and there is an infinite loop I noticed betwe...
[1 reply] : Please use code formatting. Edit your post and and add [co de] and ... (by Ganado)
c - time of the max and min temp
 
I need to make a program that calculates the maximum temperature, the minimum temperature, and the average temperature during the day. It is desired to have the...
[2 replies] Last: Big Thanx!! (by Trezkez)
Error LNK2019 & LNK1120
 
I continually get two errors mentioned in the title. I will post my code setup below and maybe someone can help me debug this issue. I shortened down quite a bi...
[5 replies] Last: Thank you icy1. I updated the post I hope its better now. I also found... (by akarbarz)
Need to reduce the time limit
 
Can anyone provide me with any hint as to how to reduce the time limit of this question. I passed 17 Test Cases and in 3 the time limit is exceeding. In a supe...
[1 reply] : rewrite time. store the N's in a hash lookup such that table = max ... (by jonnin)
July 2018 Pages: 1... 1112131415... 17
  Archived months: [jun2018] [aug2018]

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