Beginners - January 2020 (Page 7)

by Ganado
typedef with array without size
 
Quick question for anyone that knows... is the following standard C++? ( I know, it might as well be C) typedef unsigned long Foo[ ], *PFoo; int main() { ...
[6 replies] Last: Makes sense, thanks for the examples. (by Ganado)
Problem with binary tree
 
Hi, I have a problem. I have created a function that takes a (Node* root). But in main I do not know how to call that function. Anyone can help?
[6 replies] Last: I agree, but, this sounds more like a how to compile or set up a proj... (by jonnin)
Properly Exporting Programs
 
I have been writing C++ for about 3 months now and I want to export my projects to another computer, however every time I do, the program is missing .dll files....
[10 replies] Last: Thanks to Duthomhas, or was it JLBorges, I found it is possible to dow... (by deleted account xyzzy)
Random Number
 
What will be tha output of random numbers in line below? if((abs(pid)==5 && rand()%100<60) || (abs(pid)==4 && rand()%100<10)){
[1 reply] : nothing. the random numbers are being used to decide whether to enter... (by jonnin)
Average, Median and Mode
 
How can i get this to calculate the average, median and mode #include <iostream> #include <iomanip> #include <string> #include <time.h> using nam...
[12 replies] Last: What information am I inserting specifically in the conditional state... (by dhayden)
Sorting and Searching. (1,2,3)
 
I need help with the linear search and bubble sort binary sort. I have zero clue how to do that. Write a program that lets the user enter a charge account nu...
[40 replies] Last: I'm a student in college taking intro to c++ online. There are onlin... (by deleted account xyzzy)
by seatea
Menu functions and passing user input between functions
 
Hello! ** PLEASE DON'T JUST GIVE ME AN ANSWER, THIS IS FOR UNI AND I DON'T WANT TO CHEAT BUT SINCE I STUDY WHILE TRAVELLING IT'S HARD TO DISCUSS WITH CLASS MAT...
[15 replies] Last: Have some counter, e.g. int counter = 0; Then, inside your loop incr... (by Ganado)
I need help with a text adventure for an exam
 
Good morning! I am currently studying video game developement and i have tests in February, for the Programming 2 final i have to program a Text-based adventure...
[5 replies] Last: that time limit is the bigger challenge than the game, the design, or ... (by jonnin)
help solve some exercise....
 
3. create a function with int parameter L that creates a dynamic array with L item like -8,-7,-6,0,2,4,6. the function will return the address of array that cr...
[4 replies] Last: did you change the question?! Please do not do that, it just makes th... (by jonnin)
STDAFX.H Problem
 
I'm getting an error at line 4 and 34 regarding stdafx.h Write a program that lets the user enter a charge account number. Be sure to include comments thro...
[3 replies] Last: Hello cblack618, It has been awhile since I have used VS2015, but I d... (by Handy Andy)
Pointers assignment (1,2,3)
 
Hello, I need help with this pointers assignment. I'm a beginner at c++. So please don't have high expectations of my knowledge. I have attached what I started ...
[56 replies] Last: Sorry you right it’s not running. But why when I try to run it on vi... (by jonnin)
Accessing class member functions cause infinite loop
 
Write your question here. I am stuck to solve this problem im new in cplus plus and right now i am learning about classes and objects i got an assignment from ...
[2 replies] Last: 58:37: error: expected '}' at end of input In member function 'int p... (by againtry)
Designing Class for Holding Historic Values
 
Hi, Please help in designing a class for holding the historic closing value for a stock along with the date. The class should be able to store the Historic ...
[16 replies] Last: The unique Price identifier (ref_no) is equivalent to the auto-generat... (by againtry)
Basic "BST": getting error unresolved external symbol
 
Hello gurus, can you please help me figure out this error: Goal: Create a Binary Search Tree and add "1" to the root node. The error I am getting is: unresol...
[7 replies] Last: The last set of braces is the empty function body. (by dutch)
by momof4
reading a file into an array of structs
 
I'm trying to read from a file and create an array of structs to hold the information from the file. I cannot figure out how to do it. I'm not even sure where t...
[16 replies] Last: Silence reigns so this might help seeing the full picture you present ... (by againtry)
Working with tridimensional arrays (1,2,3)
 
Hi guys, I'm working on a code which uses a 3D array, this is a modified version of another program I made with a 2D array which works perfectly up to M . The...
[54 replies] Last: Thank christ for that (by againtry)
Enumerated Array From MyStruct
 
Write your question here. Shell.h #ifndef SHELL_H_INCLUDED #define SHELL_H_INCLUDED /**************************************** ...
[2 replies] Last: I would say that anyone not trying to do something screwy by intent (h... (by jonnin)
Can't find what is causing an error by googling error code.
 
Hello, i can rarely find, what is causing the error, by googling error code. It usually stands for generic issue. And microsoft docs are not much helpful either...
[15 replies] Last: All good. Now back to typing in those lines in my cout statement. I he... (by againtry)
by ema897
Graph after reading a file text (1,2)
 
Do you know Verilog? I have to make a simulator, I made class for logic elements and now I don't know how to implement the graph. Considering a line: z= a or ...
[24 replies] Last: Seems to me Verilog does something like this, and given the vagueness ... (by againtry)
Curious about the process the computer is using to handle inputting multiple letters into a char.
 
I am a beginner hobbyist and have recently completed a basic Hangman program. I have main loop that gets a letter guess input from the user uses it to update th...
[6 replies] Last: In C++ the standard input stream (cin) has a line based buffer. So whe... (by jlb)
January 2020 Pages: 1... 56789... 12
  Archived months: [dec2019] [feb2020]

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