Beginners - January 2018 (Page 14)

Why do I get unresolved external errors?
 
Hello, When compiling I get output about unresolved externals? I am not sure what is wrong with my code. #include <iostream> using namespace std; ...
[2 replies] Last: DOH! I am just going to flay myself (by Shishykish)
by kasb
source code language for online bus ticket app
 
hello everyone, i want to make an app for online bus ticket and reservation. can anyone tell me the programming language that i need to learn. thank you!
[3 replies] Last: Python is an alternative to PHP However you need to check first if th... (by Thomas1965)
by flav32
generate new array
 
Hello! I have an array named a. I also have to generate an array named b which stores the first digit of each number in array a. I can get the values but I don'...
[5 replies] Last: #include <iostream> #include <cstdlib> using namespace std; int firs... (by lastchance)
by Pilly1
Project Euler problem#3 - can anyone help me understand why my code doesn't work
 
Does anyone know why my code below doesn't work? Is the variable n too large? I tried a smaller number from the example '13195' and was able to get it to work b...
[5 replies] Last: That took a fraction of a second. Imagine how long it would take to t... (by Repeater)
How to write a / into a file
 
I'm writing a program that converts numbers, letters, and certain symbols to morse code, then writes them to a file. I've gotten everything but spaces to conver...
[2 replies] Last: It's still not working but that code seems right. Thanks for your help... (by hornet13)
Improper Global Instance of Class
 
Hi! I have a class called GUI. It is separated into a header and a CPP. (Both named GUI) I want to make an instance of GUI called normalInterface, construct ...
[8 replies] Last: You can use placement-new to avoid 2-stage initialization. Something ... (by mbozzi)
by atix
Help with this question
 
Create three classes the Calculation class, Conversion class and Menu Class. The Conversion class should have the following methods. double KMToMiles(doubl...
[1 reply] : Hello atix, Welcome to the forum. That is very nice set of instructi... (by Handy Andy)
using outFile with other cpp file in same program
 
I have been looking online for some help on how to write to a file from multiple cpp files in a single project but no luck. I have used cout on multiple cpp fil...
[1 reply] : Hello DaRealFonz, Let me say that if you know the difference between ... (by Handy Andy)
Removing duplicates chars
 
I need to create a method that will so that it does not contain any duplicate characters from the linked list, if duplicates were entered. For example, ‘M’,...
[3 replies] Last: Remove "template <typename T>" and replace "T" with the specific type ... (by Ganado)
does polymorphism work with objects that were created statically ?
 
I am still trying to get a better understanding of how polymorphism works in C++. Do i need to create the objects dynamically with the new keyword in order to...
[18 replies] Last: Yes, coarsely. make_shared<T>(arguments to the constructor of the ... (by mbozzi)
by Handge
Encrypt / Decrypt Text File
 
How would one go about encrypting and decrypting a text file?
[2 replies] Last: #include <iostream> #include <fstream> #include <iterator> #include <... (by lastchance)
how to do this program
 
You are required to build the course approval system . Currently, during the registration week academics manually check if a student is meeting prerequisites ...
[8 replies] Last: Hello prasad1927, Looking over the program. Some of it is OK, but is ... (by Handy Andy)
by al8888
Always returning 1 instead of deesired value
 
Please why is it always returning 1 instead of the perimiter value I used the example in the book and only had to change it slightly to do the question. How can...
[1 reply] : Your posted code doesn't compile. (You've also got some very long line... (by lastchance)
nested if loop not working correctly
 
Hello all, I apologise if my question seems stupid but I have just recently started coding in c++ and this has been driving me crazy for hours. I have searched ...
[3 replies] Last: Okay so I got it working. I had just saved the .cpp file outwith the p... (by Tryptych)
file input seekg() behaving oddly
 
I'm trying to figure out how to get numbers from files, and while I can read the numbers and convert them to integers, I run into issues when trying to read mul...
[1 reply] : An easy way to do it: std::fstream things("/home/canaan/Desktop/stor... (by Thomas1965)
Ending while loop at certain input and char comparison
 
So Im trying to solve the problem here: https://open.kattis.com/problems/acm Im supposed to give teams a time score based on their results. The input is suppos...
[8 replies] Last: While c.in != -1 ? I've already tried checking if the variable c... (by Peacemark)
While Loops
 
So for this class I'm taking, I have to write a program to ask for integers from the user until 999 is entered and print the average of all numbers entered bef...
[2 replies] Last: Thanks, I'll take a look at it. (by Cowboy122333)
Dis possible?
 
Hi there, I just created an account so I am a bit unfamiliar with the rules and such but I'll try my best, also I am 14 and from Sweden so my English might be a...
[2 replies] Last: Someone told me to #include as little as possible in my class.h and i... (by Peter87)
Letting user access array
 
Hi guys, I am doing the airplane array problem, I will put what I have done below to show whats up. I am trying to add a row number before each line of an array...
[2 replies] Last: That made the spacing perfect, thank you. (by danpbrown1973)
error: default argument given for parameter 1,2 and 3 of'int volume
 
This code is giving error: Default argument given for parameter 1,2 and 3 of'int volume'. what is the possible problem with the code. #include<iostream>...
[1 reply] : You can't re-declare default arguments twice in the same scope. In pr... (by mbozzi)
January 2018 Pages: 1... 1213141516... 22
  Archived months: [dec2017] [feb2018]

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