Beginners - June 2017 (Page 3)

NEED HELP WITH IMPORTANT PROJECT PLEASE
 
Hello, I was to make a post office management system for my school project and it is working perfectly, but now i want to decorate it and add some borders to th...
[11 replies] Last: @whitenite1. I tried that and it did not work. As I said I found tha... (by Handy Andy)
by sharbu
Count the number of duplicate elements in an array-C
 
Accept an Array of size N and print the total number of duplicate elements (The elements which occur two or more times). Input Format: The first line contains...
[2 replies] Last: Figured it out :) #include<stdio.h> #include <stdlib.h> int main()... (by sharbu)
by sharbu
convert a bool return value into YES or NO
 
The following program finds whether the given two strings are isomorphic or not. This code returns 1 or 0 but i want to return "Yes" and "No" as output. // C...
[6 replies] Last: I'll try again. Aim is to make it work for any container, not just str... (by lastchance)
Rules around RVO
 
Hi Just to confirm: struct Block { struct DataWriter { DataWriter(Block* owner) : mOwner(owner) {} DataWriter(DataWriter&& other) : mOwner(other.mOwne...
[5 replies] Last: Got it thanks. "even on an lvalue" Makes sense, that's a good one to... (by elohssa)
temperature conversion loop
 
I do not know how to start this program. I have to do a while loop and convert temperatures. I also need to prime the loop. #include <iostream> using name...
[6 replies] Last: I typed it out. You must be fairly tired seeing that you started in... (by closed account 48T7M4Gy)
by sharbu
strlen function in C
 
Iam doing skillrack challenges for more than a year now my question is when i execute the following program iam getting 6 and 5, instead of 5 5 for the input: b...
[4 replies] Last: zero it? for(x = maxlen; str != ' '; x--); and I think you want str[... (by jonnin)
by H00G0
Conversion error on simple pointer program.
 
Hello! I'm currently working on a simple program on pointers and encountered an issue. The instruction for the program reads: /*Write a program that dynami...
[4 replies] Last: What's wrong with using cout? And instead of getch() why not just use... (by H00G0)
How does map iterator work?
 
I have seen a standard example of iterator on this website, when I compiled this program the output was in alphabetical order. I tried the same program with ...
[2 replies] Last: Thanks (by rajhansk)
while if problem ..
 
hi, i am a new beginner,i don know what wrong in my code?actually i want print out a=5, b=5, c=5.but still cant work. #include <iostream> using namespace st...
[5 replies] Last: thanks for help!! (by somefight)
Using function pointers on class member functions
 
Hello, I am trying to do the following: - Have a chooser function which returns a function pointer - Then based on this pointer I run the corresponding f...
[3 replies] Last: thank you! this was extremely helpful I am a bit new to programming ... (by erixliechtenstein)
by sharbu
for loop: iterate between specified numbers
 
The loop must initialize on a specified number and iterate between the given intervals. Eg: distributing chocolates to children. input: n=10 c=15 q=6 output: l...
[8 replies] Last: #include <iostream> int main () { int n = 10; // number of child... (by closed account 48T7M4Gy)
Ray mapping inn C++
 
Hello guys, Please I can anyone give me suggestion on good e-books or video tutorials, etc where I can learn Ray mapping in C++? I need to learn it for my acad...
[6 replies] Last: Why, thank you. (by ayoesquire)
by sharbu
Extracting and adding integers in a string.
 
The program must extract the integers between two string characters and return the sum of them. EX: iam12aninquis875ite1learn100er. output: 988 explanation: ...
[6 replies] Last: #include <iostream> #include <sstream> #include <string> #include <cc... (by lastchance)
Program stuck but processing
 
Hello fellas again, im trying to do an square root calculator as practice, and i have done it but when i enter my number it will stuck and if i look into task m...
[10 replies] Last: I figured out the problem, the program was doing an infinite loop beca... (by CosminPerRam)
While Looping
 
I have been trying to figure out what is wrong with this code but I cannot. I am new to C++, so maybe that's the reason. I am not here for an answer, just give ...
[8 replies] Last: Thank You, everyone!! I appreciate the help!!. (by MichaelBhattacharya)
Need help making additions in c++11 (1,2)
 
I need help trying to adjust my program to look like the sales report. Any suggestions on how to approach this. Prompt: Use a single-subscripted array to so...
[23 replies] Last: Hello jlin55 So put int range ={0} in SalesReport class? Yes. And... (by Handy Andy)
Linked list recursion exercise
 
Exercise : Write a recursive algorithm to remove elements from a linked list. Write a recursive algorithm to add elements into a linked list. Try writing the s...
[2 replies] Last: @ne555 Seemed like a good way to practice my dynamic allocation, gues... (by Icyblizz)
shared_ptr
 
Hello! I am currently practicing shared_ptr's, but for some reason my code always gives me a Run Time Error at one particular line ("cout << crt << "Class -> "...
[2 replies] Last: You need to include string.h as you use C string calls. Constructs li... (by kbw)
by Meden
Making a palindrome (1,2)
 
Palindrome = number or word that has the same beginning characters as ending characters. Examples: "rotator" "racecar" "123321" Ultimately I want to iterate o...
[30 replies] Last: #include <iostream> #include <sstream> #include <algorithm> #include ... (by closed account 48T7M4Gy)
error: Id returned 1 exit status
 
I have to make a program that codes it's own queue(cola) class for plane(avion) type objects, but when compiling I receive this message without information of w...
[9 replies] Last: Thanks for the gotcha info, mbozzi. (by Ganado)
June 2017 Pages: 12345... 16
  Archived months: [may2017] [jul2017]

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