Beginners - October 2019 (Page 9)

Ncurses.h function problems
 
I was looking at the ncurses.h header today because I discovered I had it already, and I just basically copied someone else’s code for how to make a window (j...
[3 replies] Last: Thanks guys! That worked, I was just linking it wrong. @Duthomas y... (by highwayman)
While Statement Isn't Being Read Correctly
 
I'm trying to write a function that allows a user to enter a name. The name cant be over 10 characters and they need to confirm their username. I don't want the...
[2 replies] Last: The issue is with your condition here for the loop: while (decision ... (by zapshe)
What does the clone_prefix used for?
 
I am studying coding by watching videos. The guy has the keyword clone_prefix in his code. I am wondering what is that used for since the guy did not explain it...
[2 replies] Last: Oh, ok lol, it is a variable.. It looked like a keyword to me at first... (by dexter1224)
by Ocine
Help with error codes in RSA code
 
I am trying to make a code that tests the throughput performance of RSA with given parameters. I'm getting a handful of errors that I'm not sure how to fix. If ...
[6 replies] Last: What are you linking with? A cursory search shows you need to link wit... (by Ganado)
testing validity of ISBN
 
Hello, I am having trouble with a homework assignment where I need to check if the ISBN code is valid. This is a beginner C++ class, and I am new to all of this...
[7 replies] Last: In case it isn't clear: Duthomhas' code does not use std::string. It's... (by Ganado)
Morse Code Project Help
 
If we are not allowed to use arrays in this project, I am confused on how to make "a morse code get/printing function that converts an individual char into a mo...
[9 replies] Last: A slightly obscure way is to define your whole morse conversion dictio... (by lastchance)
by Ocine
Extended Euclid Algorithm Help
 
I am trying to implement a code for Extended Euclid Algorithm that takes the input of two values (u,v) and provides the gcd as well as a and b. I think the code...
[2 replies] Last: Thank you for looking at it. I had -176 at first, but I thought both n... (by Ocine)
Help cleaning up a verbose loop (loop to remove additional white space from an array)
 
Hello, I am trying to create a program that allows a phrase to be stored, but the program will clean it up and remove any additional or unwanted spaces. I have ...
[6 replies] Last: It worked great. Thanks again. (by confundido)
Linked List question, pointer comparasion.
 
ptr->getNext() == entry_ptr can someone tell me how this is being compared? I know that pointer are compared with addresses. I just need confirmation of my know...
[1 reply] : they are compared as if integers, usually of the machine's word size, ... (by jonnin)
i can't change the text colour!
 
Write your question here. I'm trying to find a way to change the colour of the code. It worked at the beginning with what I think was the same code, but now...
[6 replies] Last: I suppose if I had ever posted my own library anywhere it could be cla... (by Duthomhas)
4 digit lottery random generator
 
Hello, I'm trying to create a random four digit lottery number generator that outputs five different 4 digit lottery numbers between 0000 and 9999. Thank ...
[4 replies] Last: I havent got anywhere yet. Don't know where to start Learn how to ge... (by deleted account xyzzy)
by hbcpp
Pass function Pointers as argument
 
I want to pass a function pointer, which is an argument, to another function taking a function pointer as an argument too class ClassTest { public: ...
[3 replies] Last: I just want to say that I got it working I edited this line in functi... (by hbcpp)
FUN with FUNCTIONS
 
Write a program to read in the dimension of a box, length, width and height. You are to compute the area of the box. Print out the dimensions of the box and t...
[7 replies] Last: Solved the program.. I added while(!inf.eof()) {functions} (by CodeNovice01)
String functions - How do they work?
 
The 'name' (variable?) in line 6 is declared using some string functions from <string.h> class person { public: person(char*s) { name...
[6 replies] Last: the State Board of Education refuses to change the Computer Science s... (by dhayden)
Simple binary tree insertion
 
Below is the code for BST. But what about a simple binary tree? If I want to do insertion of nodes from left to right without seeing whether its less or bigger ...
[8 replies] Last: Thanks, everyone! So I'll stay on Bst! (by lost110)
Reading a .txt file into Vector
 
Hello this is simple and fast question. How do I make the while loop (the best way) to read a file ? I can do this (down below) but it's not good looking (for e...
[13 replies] Last: [quote=ganado]You could also find/make a C++ library that could call "... (by lastchance)
by Bopaki
Program bombs out before printing the list
 
At line 15 in the main() function the list does not print: #include<iostream> #include<cassert> using namespace std; //Definition of the node template <...
[14 replies] Last: Does that mean that you've finally taken the advice you've been given ... (by MikeyBoy)
Drawing a Circle with Class in C++
 
I'm currently writing a program where I have to draw three circle shapes from a class(data structure) that will output in the console. The problem I'm having...
[1 reply] : Read line 173 out-loud to yourself: for(int j = 0; j <= 40; i++) And... (by Ganado)
reading ppm into vector
 
Hi, I'm running a test on my code to see if I can view the image I read in after I save it into a different file, and it's failing with an exit code. Can anyone...
[10 replies] Last: I changed it. I really appreciate the help y'all. Especially since y'... (by jjordan33)
Am I using "default" correctly in switch statements?
 
I am doing some practicing outside of class, and am teaching myself how to properly use "if then" statements, and now I am moving on to switch statements by usi...
[6 replies] Last: Thanks Ganado! I copied and pasted the code into a new project file an... (by raisetheroof00)
October 2019 Pages: 1... 7891011... 18
  Archived months: [sep2019] [nov2019]

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