General C++ Programming - December 2020 (Page 6)

Fibonacci and Factorial.
 
Is there a question in there somewhere??
[1 reply] : there is now. ^^ (by jonnin)
Need Help to Replicate a Click Counter
 
Guys, they closed the schools but not the school projects.. errgghhh.. sorry for the frustration.. actually I need to submit a c++ assignment this week. I got m...
[4 replies] Last: man this worked! how could I miss that part.. basics gotta be strong..... (by mattnicholas)
by kimoL
help
 
I wrote this code to validate the time input if there is a free slot slots array then the time option will appear but the code does not work properly ...
[1 reply] : Maybe you want something like this: int slotoptions ={10,11,12}; bool ... (by coder777)
subprogram to program
 
hi, who can convert this subprograms to a single main program #include<iostream> using namespace std; // Function to print the sorted array of strin...
[3 replies] Last: thanks @seeplus (by grooviqw)
Can somebody tell me whats wrong with my code please??? Thanks
 
In the code below I get these 2 errors: Error E0289: No instance of constructor "Spy::Spy" matches the argument list Compiler Error C2664: 'Spy::Spy(Spy...
[5 replies] Last: Thanks seeplus! (by java982)
Input Validation of an int
 
I am trying to validate the length entered by a user. However, as I enter random values when testing the code below it continues to my next statement if I enter...
[2 replies] Last: The basic stream extractors just stop processing the stream at the fir... (by salem c)
(C++) Need help resolving Output file error
 
#include <iostream> #include <fstream> // accept an output stream (which may be a file stream) to the function std::ostream& ShowProgramHeader( std::ostream&...
[1 reply] : Repost bot just posting anything just so they can put their spammy lin... (by salem c)
Memory leak in C++ and How to avoid it?
 
You should use smart pointers, if your purpose is just to avoid memory leak. https://en.cppreference.com/book/intro/smart_pointers
[5 replies] Last: Sorry for the inconvenience, kind regards. (by Mitsuru)
how to triple space (1,2)
 
Hi guys, how can i triple every space from a given string?
[21 replies] Last: [quote=dhayden]The real problem with using strtok() is that it skips c... (by George P)
Output not showing up
 
Hey guys, I make this system to record carry marks for student and I'm having this difficult time to find what I did wrong with output for Carry Mark Summary. I...
[5 replies] Last: I don't know if this is your specific problem, but it is a problem. T... (by AbstractionAnon)
subroutine and array in c++
 
Hi everyone, i hope you’ll help me with this code. So basically after storing an array “arr”, its size “r” and an integer “k”, I gotta write a sub...
[3 replies] Last: #include <iostream> int findn(int arr , size_t r, int k) { for (si... (by seeplus)
Confused on how to finish this program. C++ Encryption and Decryption using Caesar Cipher and Substitution.
 
Very lost on the caesar cipher I got the substitution cipher working and close to finishing can anyone help me figure out how to get the caesar cipher working? ...
[1 reply] : Please add code tags to your post. https://www.cplusplus.com/articles/... (by salem c)
remove function in a char string
 
What function can i use to remove characters from a char string starting with the a given index?
[6 replies] Last: memmove will do this as a one liner; be sure to include the zero termi... (by jonnin)
Can someone tell me why my code isnt working
 
///////////////////////////////////////////////////// #include <iostream> #include <string> #include <fstream> using namespace std; int search(ifstream &in, ...
[12 replies] Last: The Documents folder is actually a sub-folder within the logged-in use... (by George P)
Compiling project in c/c++ - Missing steps while downloading.
 
Hi guys ! I'm running on my PC Ubuntu Linux , and what I'm trying to run project of decoder that's called Viterbi decoder from this website: http://www.eccpag...
[1 reply] : Also here -> https://cboard.cprogramming.com/c-programming/179832-c-co... (by salem c)
Count number of elements that increase or decrease by a factor of 10 with recursion
 
#include <iostream> using namespace std; int factorsOf10(int arr , int value) { int count = 0; int len = sizeof(arr) / sizeof(0); for (int i = 0; ...
[14 replies] Last: check array each recursive call. I am not 100% sure that array+1 does... (by jonnin)
Need help with output error as defined
 
Inventory Program Write a program that uses a structure to store the following inventory information in a Binary file and access it using Random Access Method:...
[2 replies] Last: https://www.chegg.com/homework-help/questions-and-answers/someone-help... (by againtry)
I'm programing an UNO game for C++ and I'm stuck on how to proceed
 
I created a github repository to collect my thoughts. https://github.com/QueenSophiaLo/Uno-in-C- my code as of now is all in https://github.com/QueenSoph...
[1 reply] : Are we looking at the same code? Your lines 349-355 is just text. Mayb... (by Ganado)
December 2020 Pages: 1... 456
  Archived months: [nov2020] [jan2021]

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