Beginners - November 2018 (Page 11)

Return of int
 
This is a simply program for date but i don't understand why it shows this errors main.cpp #include<iostream> #iclude"Date.h" using namespace std; void ...
[3 replies] Last: change the code int Day(int x) { return day; } int Month(int x) { re... (by locatee)
error
 
i have a syntax error with the NodePointer which is a typedef of a node* i am clueless it's reading it correctly in the parameter but the start of the functi...
[3 replies] Last: it was a syntax error the compiler was asking for a semicolon after th... (by Echelon22)
Next greater element problem
 
There is an input of a number N. Then there are N inputs in the next line. Each input denotes the height of the Nth building. Spiderman can only go to next ...
[3 replies] Last: @Thomas1965, Thank you. That is nice to know. Andy (by Handy Andy)
Question for &
 
Hello everyone. I've got question with this part of a code #include <iostream> using namespace std; int main(){ int n; cin>>n; if (n <= 0) break; ...
[2 replies] Last: Thank you very much for the reply. (by Zivojin)
Decision Tree How to perform Split?
 
Say I have a https://imgur.com/a/sjxoexs. I want to insert everything in the A1 column to the left if it's bigger than A1, if it's not bigger than I want to ins...
[no replies]
by Tduck
Segfaults inconsistent between compilers
 
What is causing segfaults on my compiler? Onlinegdb.com throws a segfault, whereas the built-in compiler for cpp.sh runs my code perfectly fine without any err...
[4 replies] Last: That code would not compile with Visual Studio...unless you turn off S... (by closed account z05DSL3A)
Problems with For loop
 
This program is a practice program out of the book for my class. The code compiles displays with the proper formatting. The issue I am having is the output. I s...
[5 replies] Last: Thank you so much (by Tipper97)
Graphs problem
 
This is my assignment: (it is related to data structures: graphs) Write an interactive program reads the name of cities and distances between them and provide...
[4 replies] Last: @tpb, I did come up with one line that works for the input file. My ... (by Handy Andy)
Arrays
 
I need to find a way to showcase inputed numbers and their categories from 1 - 10 for an average of the even and odd elements. it should look like this: Array ...
[8 replies] Last: Thats what I was doing with even_average = even_average / array ; ... (by Warzombie3701)
Kinematics problem (codeblocks) (1,2)
 
Hi everyone. I need some help in my programming problem. Below you can see the task(received from the professor) and my code responding to the task which I crea...
[22 replies] Last: @polishprogrammer, This is only a skim through. General comments are ... (by lastchance)
by owmn
Highschool C++ Homework Assignment
 
This chapter uses the class rectangleType to illustrate how to overload the operators +, *, ==, !=, >>, and <<. In this exercise, first redefine the class recta...
[2 replies] Last: @MikeyBoy Yes, those are my instructions, and the code I have started... (by owmn)
Arrays Assignment Help
 
I need help with this arrays assignment. I understand how arrays work, but I don't know how to put the code in. Help will be much appreciated for me to understa...
[11 replies] Last: It works! I just had to remove the commas, like you said. Small things... (by Maxster)
Jumping into C++ Chapter 5, problem 7
 
Goodmorning, afternoon, evening and night ;) I have a question. I am following the Jumping into C++ course of Alex Allain. I worked on chapter 5, problem ...
[3 replies] Last: Thank you Andy and Mikeyboy, I will work on it :) (by LadyoftheCave)
Id returned 1 exit status
 
Creating a program for fun, making it to show me my homework for the semester and such. But I have a few problems. I'm getting the "Id returned 1 exit status" e...
[4 replies] Last: Hello Andy, ld is the widows linker. An exit status of non zero means... (by tpb)
multiply the digits (homework material)
 
so i have to do cpp homework i have range from a to b and i have to write code and multiply the digits of the numbers from the range a-b and cout max-even and m...
[2 replies] Last: sure Andy , i understand :) (by parzival69)
range a-b; multiply
 
cpp homework material i have to write code for that : i have range from a-b; and i have to cout the number which will be equal to (for ex:1,3,5,7,9,11,13 or...
[1 reply] : Hello parzival69, Do not double post. http://www.cplusplus.com/forum/... (by Handy Andy)
Prime Number Arrays
 
I Want code for this question in c++... Write a C++ program in which declare 2D integer array of size 20x20, take inputs for the size of matrix to use and t...
[2 replies] Last: ThankYou ne555 (9452) I will Try...... (by Jonty Squad)
by atglod
Making Bar Graph from .txt file.
 
Hey, I've been struggling with this. It keeps asking for a main function but on our brief it lists no such thing. And It does not seem to run properly. I'm very...
[8 replies] Last: I did find it strange that nothing had be included in our brief. It ... (by MikeyBoy)
Massive application of sensors
 
Magnetic sensors square measure present, tiny in size, and cheap, and may be simply integrated into different chips in conjunction with different circuits. Ther...
[no replies]
by Bopaki
New project in eclipse
 
I have just created a new Hello World project in Eclipse. When I try to run the default helloworld program I get these 4 errors: Description Resource Path Loc...
[4 replies] Last: Thanks I got it working eventually (by Bopaki)
November 2018 Pages: 1... 910111213... 24
  Archived months: [oct2018] [dec2018]

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