Beginners - April 2020 (Page 8)

function call not working
 
writing a magic 8 ball program. menu selection 2 asks for user response which is then given a rando...
[3 replies] Last: Your instructor is correct. However, look at your code and tell me wha... (by TheToaster)
by idsuni
simple c++ program adding 1
 
So I started programming a few days ago and have trouble with this simple C++ program. Can anyone te...
[7 replies] Last: You're welcome - hope it makes sense now. (by MikeyBoy)
Checking for a specific string inside of a linked list?
 
I'm currently trying to go through a linked list in my program and see if it contains a few specific...
[6 replies] Last: Ah okay. Unfortunately, my "intro" class was very very bad. We got to ... (by Elarionus)
Char array pointer to struct
 
Hi again! I have an array of chars that contains a raw data byte-formatted: unsigned char* myD...
[4 replies] Last: I also have to ask why you have struct myStruct { unsigned shor... (by dhayden)
Addition in function
 
I know how to fix that code, but why for input 0 output is 32765? #include <iostream> using na...
[2 replies] Last: Hello PeterL, To start with "x" and "y" are defined and left uninitia... (by Handy Andy)
by rytisz
error with friendly function
 
Hey, i cant understand the mistake im doing. void lyg is my friend function, and i dont know how to...
[3 replies] Last: I don't know what s is but i would think it is an array of strings. ... (by coder777)
How to use the same instance of another class variable in two different button click events?
 
Hello I know I'm doing this wrong, however I'm not sure how to use the same instance of Person bo...
[5 replies] Last: Thanks for your replies. I made many changes and don't remember which ... (by varnull)
Beginner help! dropping the lowest score
 
Hi ! I just started learning C++ without any prior knowledge. So, this assignment wants me to code f...
[4 replies] Last: Thank you guys so much, it looks much simpler and nicer now! again, ... (by jasonkk)
by Zanza
Error through codeblocks?
 
I'm looking for someone who uses the IDE codeblocks to try and run the program I made for class and ...
[8 replies] Last: https://imgur.com/a/06cLECl In code blocks, you need to select project... (by salem c)
by ruggb
need some direction learning
 
I am a neo about this C++ thing, but I managed to take someone's almost complete display library and...
[5 replies] Last: thanks all I know enough to fix code, but starting from scratch is not... (by ruggb)
Adding value to list element
 
Hello need help with this question: Use the previously filled containers and add one to every ele...
[3 replies] Last: I got it. Thank you so much. (by phazed99)
sorting input file alphbetically
 
See input file below. I am trying to create a void function that would take two arrays (response an...
[4 replies] Last: thanks toaster I'll work on it and get bAck (by bigskit13)
C++ Final Project Help - Memory Game
 
All of my code works with what I have but I am struggling to find a way to make the matches made in ...
[2 replies] Last: All of my code works Perhaps, but what you posted won't even compile... (by dhayden)
Array
 
Im hoping someone can help me out here and check my code for me i ran it through the cengage checks ...
[2 replies] Last: All you need to do is change line 12 to (i+1)*(i+1) and then your ou... (by TightCoderEx)
open a .txt with notepad [no console]
 
Hi, I'm wanting to open a .txt with notepad from my project, but I want to avoid using cmd.exe [I do...
[3 replies] Last: As @lastchance stated, you can use system() to open it. However, I wou... (by TheToaster)
Vectors not displaying results?
 
Hi all, how come my vector isn't displaying the previous results? Thanks. #include <iostream> ...
[3 replies] Last: The reason your code is not working as expected is because when you ca... (by TheToaster)
Trouble with viewing a file.
 
I am new to learning C++ and am having the hardest time reading the .txt doc. Everything works exc...
[2 replies] Last: Hello AcesHigh1919, Along with salem c's advice here are some thing... (by Handy Andy)
Question on basic inheritance, polymorphism, file input
 
Greetings. This question is in regards to an assignment I'm working on; that being said, I am not lo...
[8 replies] Last: The code threw in was correct. I at least have a test case working now... (by dunquito)
c++
 
Input: 1 2 88 42 99 Desired Output: 1 2 88 When 42 is entered in the above code, the code with...
[5 replies] Last: Following Enoizats example #include <iostream> #include <sstream> ... (by TheToaster)
by rytisz
Capitalising
 
Hey, I am a beginner and have a q. i have a task to leave only first capital letter in each sentence...
[2 replies] Last: You could also use a regular expression std::regex(R"((.+)\s*[\.\?\!... (by TheToaster)
April 2020 Pages: 1... 678910... 20
  Archived months: [mar2020] [may2020]

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