General C++ Programming - October 2016 (Page 4)

Optimizing iteration using recursion
 
Hello forum Users, I have three bodies of the same void. I ask you about idea for recursion or faster iteration. void Zliczanie(double B1 , double B2 , int B3 ...
[1 reply] : What function are you trying to optimize? (by SakurasouBusters)
by nickif
Special characters taking up more than one slot in char
 
I'm trying to have this program parse a file containing special characters from the ipa. But the output it gives has both regular characters, correct octal code...
[1 reply] : Can you post your original assignment? (by SakurasouBusters)
How to draw a triangle
 
I am assigned to draw a triangle but I am unsure what to do. Could any one help me? My triangle should look like this : * *** ...
[1 reply] : ____* 4, 1 ___*** 3, 3 __***** 2, 5 _****... (by integralfx)
by Revert
Need major help with lab!!
 
So I'm probably gonna fail this class because I'm having a hard time understanding everything, but I gotta try right? Anyways, for my lab, I'm using a txtfile f...
[9 replies] Last: @Revert If you have any specific question or some problem with your co... (by SakurasouBusters)
" & " Pass by reference ?
 
I was searching to learn more about the friend function when I found this. ___ CODE ____ // friend functions #include <iostream> using namespace std; c...
[2 replies] Last: Oh ! Yes I think I got it. It's the Class name so there is no "Defined... (by Draziak)
Help me win a bet please!! (1,2)
 
I had a bet with my friend, this is my second question posting on C++ ever. My first experience wasn't so good as i lost my bet but hopefully this time i will w...
[21 replies] Last: He said: "Hello sir! Thank you for telling me sir. But in this I part... (by Johnathon1234)
by antago
Global objects, Classes with multiple objects, and recursive inclusion problem
 
So I'm having an issue that in PHP is solved very easily. I have taken C++ classes so I am not so far off from understanding, but obviously there is a learning ...
[12 replies] Last: [quote=antago]Why must it be declared in a file instead of a file?... (by mbozzi)
I have 13 hours to finish!! HELP PLEASE
 
The objective of this Program is to use for loops and nested loop structures to design the C++ code that will perform numeric integration to estimate the area u...
[11 replies] Last: Thanks! I actually meant to change that and completely forgot! :) (by closed account ENhkSL3A)
Fibonacci sequence code prints incorrect value
 
My assignment is to print the Fibonacci number at a given position to an on-screen label. I am supposed to create a class and use a constructor to do the recur...
[1 reply] : ¡puaj! > Here's my code you are missing the main() function and the... (by ne555)
using the positions of odd numbers in one array to determine which numbers to add in another
 
hello im trying to make a programme that takes 2 numbers and uses russian arithemetic (diplplaying each step) to multiply them. i have done the first 2 steps wh...
[3 replies] Last: The info: cout << "The vector has " << halving.size() << " elemen... (by keskiverto)
Function Call
 
I am trying to write a program that will calculate charges by calling a function to the main branch but I keep Coming back with 0 no mater what I input. Here is...
[4 replies] Last: Referring to your original post. Line 63: You're declaring a new va... (by AbstractionAnon)
by bozmin
Vector of object
 
I was able to create a vector of object in a function, than return it. but i couldn't display the content in the main function. if there any way i could do it ?...
[5 replies] Last: Yes it makes sense !!! thank you. I changed it to return a vector type... (by bozmin)
Voting simulator
 
This is a template I'm trying to tweak and change the output to the '*' output instead of the percentage. #include <iostream> #include <string> using namespace...
[1 reply] : change the output to the '*' output instead of the percentage. I don... (by AbstractionAnon)
by nbd
How to use fstream for creating a file?
 
Hi, I have read several reference articles regarding file IO, and about opening files in particular, but nowhere found any info about how to distinguish (wit...
[4 replies] Last: Thanks! I was just a bit perplexed when I didn't found this important ... (by nbd)
Creating a newline character every 7 numbers
 
I'm doing a programming assignment where the file reads input from a file(the file is all letters) and converts it to a phone number. I have the program working...
[7 replies] Last: I want to plead temporary insanity and throw myself on the mercy of t... (by MikeyBoy)
search for an element in an array
 
I'm trying to write this function that is supposed to return true if an element in this array is found and it is being compared to user input. void ViewBookIn...
[3 replies] Last: I thought it was ... i think for it all to work as intended ... A ques... (by fluppe)
Help with arrays
 
I am kinda new, and having problem in figuring out my mistake. I have to get random numbers 1-25 and my code is down, when i run it, it gives me error. Can any...
[6 replies] Last: Oh!! Yes i got it thank you very much for bearing with me. Have a grea... (by Abhijeet010)
bbs
 
what is the best way to start coding a bbs in c++ file names, objects in files, functions how many total files what would be the best first .c file to ...
[3 replies] Last: Usually things like the number of source files are not decided upon be... (by mbozzi)
by bozmin
error const
 
Why doesn't it work when I put "const" on the line 7 of my Car.h header. but work when i don;t put it? i says that i should put the function as a constant err...
[3 replies] Last: The Item thing was from a previous exercise. sorry for that However. ... (by bozmin)
by ujo142
Need some help with Flappy bird algorithm
 
Hi During two previous weeks i have been working on flappy bird algorithm. But i failed. Not exactly on mathematical level but more in implementation level....
[4 replies] Last: [quote=SakurasouBusters]Send me a private message. I would strongly ... (by cire)
October 2016 Pages: 123456... 23
  Archived months: [sep2016] [nov2016]

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