Beginners - December 2018 (Page 14)

Calculator
 
In need help in developing this type of a calculator Requirements -just a command line application, no GUI. -Bases: 2, 10, 16 1100b*2=24 0x1f*2=62 The...
[no replies]
An example using string
 
I need a program which uses string and stdio library to help me solve 785A from Codeforces.
[2 replies] Last: https://codeforces.com/problemset/problem/785/A It seems simple enough... (by salem c)
Accumulator problem/Function help
 
H1. I'm unable to get my accumulator to display the totalIncreasePercentages variable. I need the averageOfIncreases to display the average of the totalIncrease...
[2 replies] Last: Thank you! (by Imbadatcode)
Graph Mate!
 
Hi, I'm new to graphs, and I need to build one. The graph is a weighted graph that holds some number of city names with edges linking them together. (And it nee...
[3 replies] Last: Creating a random graph can be as simple as filling a square array of ... (by tpb)
Cancel
 
I need a function to initialise new member variables, something like this;
[2 replies] Last: New variables will be coming from the input file like: i=1 j=2 i+j... (by scott14)
BST Search Function Issue
 
Hi Guys, So I've been working on my semester project for data structures and I came across a problem here... I insert data into the bst but it doesn't show pr...
[4 replies] Last: I think you're getting tripped up by the difference between a tree, wh... (by dhayden)
Codeblocks error.
 
Hi! When i run codeblocks, it starts normal.I am creating a console application and when i should see main.cpp and the others things i can't see anything. I'm ...
[2 replies] Last: try this: on the main toolbar go to view and select: manager,start pa... (by closed account SECMoG1T)
Blackjack game.. what next
 
I've done this so far but I'm struggling with the actual game concept, I don't know what to put in the Play() function or even know how to start it. Any help wo...
[4 replies] Last: Start small. Create the data structures to represent the hands of each... (by dhayden)
by besar
Vector manipulation bsar
 
I have been able to figure out how to manipulate and use information in vectors, but would now like to use the following code to make a question menu based on t...
[1 reply] : Do you know about functions? Do you know about passing parameters by r... (by Enoizat)
incompatible types in assignment of 'bool' to 'char[4]'
 
Help!! I'm doing this program on temp. conversion and I encountered the error 'incompatible types in assignment of 'bool' to 'char ' Please help ASAP! #...
[1 reply] : you are attempting to assign unit to c on line 23. unit is an array.... (by jonnin)
by C26
Errors
 
Hi, I need some help on my programs. Im trying to do Prepaid balance program but there are few things that im stuck in. 1. After I main loop for the first tim...
[2 replies] Last: double input_minutes() { std::cout << "Call duration (minutes): ... (by Enoizat)
by detro
Windows.h background
 
Hi, I put an image on the background of my interface, and now the buttons are not shown. The buttons only is shown if you click on this. How I fix up this probl...
[2 replies] Last: Thanks for the answer, I resolved the problem. (by detro)
by DellXT
How to add these functions in this program?
 
Here's the code: Header: https://pastebin.com/KKACp2Lv Main: https://pastebin.com/3T88PRYw How to add these functions in this program? 1. Map is needed (separa...
[no replies]
Linking questions to numbers
 
I'd like to make a program that resembles a pop quiz. In this program I would like to create multiple questions that is randomly generated and then displayed. D...
[13 replies] Last: @all I have returned from the depths of my research and I have create... (by EmperorRookie)
by Drac0
Inputting File information into a array
 
I am writing a program that takes a diner menu from a file and writes the information into an array of a structure, im trying to use getline() but i dont know i...
[2 replies] Last: i am still confused cause this doesnt seem to work either. like it run... (by Drac0)
by b00m23
reading contents of a file into an array
 
Why is this returning some of the contents of the file mixed with garbage? int main() { ifstream list, comparisonFile; const int TEST_SIZE = 50, ...
[1 reply] : Looks like you run comparisonFile >> stdList ; 100 times, but you do... (by Ganado)
by b00m23
Getting error "cannot convert 'double (*)[5]' to 'double' "
 
I am trying to create a program that will open a file, and append the contents into a two-dimensional array. #include<iomanip> #include<fstream> #incl...
[5 replies] Last: For double func(double, double,double) , if you want the first doubl... (by chicofeo)
address of char array
 
Hello, I was wondering why if I run the code below I get the following, "SPOCK@ a" I get that it will begin at the beginning of the arrays memory location bu...
[2 replies] Last: I see. That makes sense. Thanks for clarifying that. (by spocksRobot)
Checking if user inputs number or string
 
Hi all, This doesn't work, How can I check if the user enters a number instead of a character? #include <iostream> #include <string> #include <cstd...
[2 replies] Last: >This doesn't work What doesn't work? The loop? The checking to see wh... (by fiji885)
Vigenere!
 
i need some help with these codes. please help me i won't run, the output are emoticons. #include <iostream> using namespace std; string message;...
[1 reply] : it ran fine for me, but its wonky. your I/O for message and key force... (by jonnin)
December 2018 Pages: 1... 1213141516... 22
  Archived months: [nov2018] [jan2019]

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