Beginners - January 2017 (Page 8)

not fixed variables
 
please help me with this i need some help Suppose we have the function that is used to print variables to your computer screen. Type of variables are unknow...
[2 replies] Last: Write a c program using function template to solve this problem. C d... (by Peter87)
by kunga
Overloading functions
 
Write a program that will calculate the circumference of a figure. The program must use two overloaded functions, each named calcCircumference. The first functi...
[6 replies] Last: Because radius_of_circle is never actually passed to the program. You ... (by gunnerfunner)
Node
 
p = new Node; p->data = 30; p->next = NULL; tail = p; head = p; how to delete this? help
[3 replies] Last: If you ran your program the output would be 10 - 20 - 20 and the reaso... (by gunnerfunner)
hello, im new to c++ and im having trouble
 
hello, I'm a beginner to c++ and I'm having a hard time starting it. I don't want it done for me I just want it explained more in detail. the assignment is that...
[11 replies] Last: Glad to help. Always remember breaking a problem down into sizeable pi... (by closed account 48T7M4Gy)
Questions regarding typeid operator
 
Hi everyone, My understanding towards c++ is still shallow hence i can't fully understand how to fully use typeid() even if looking at msdn and cppreference. A...
[5 replies] Last: That clarified a lot, thank you very much Peter87 and MikeyBoy :) (by Happilicious)
Formatting Databse Output C++
 
I've seen answers to this question a few times BUT the issue is they're all for console! I am making a visual C++ application and right now, i've overcame many ...
[4 replies] Last: If databox is a ListBox you don't set the Text property but add the te... (by Thomas1965)
by Mousy
Need help with expression error. (1,2)
 
Im getting an error at line 67 "cout << party_name << "\n";" expression must be a pointer to a complete object type. Any help would be great as I am quite new ...
[21 replies] Last: I took the liberty of making a few changes. Clearer names for variable... (by closed account 48T7M4Gy)
by wolfv
Render paths relative to script location rather than current directory?
 
I have reproduced the problem in a simple as possible example. Here is the directory structure: $ tree . ├── gen ├── gen.cpp ├── input1.txt ...
[2 replies] Last: Update: chdir() worked great. (by wolfv)
need help with loops
 
I need help writing a loop either do while or while. one for entering in any amount of numbers to be individual set as num. then another loop for asking if they...
[4 replies] Last: I think I see what your doing now, the while loop or do while has to b... (by SamuelAdams)
Help with my code.
 
Hello I am a beginner coder and am having trouble finding why my code is having errors. I defined user input as color and I am pretty sure if I define a string ...
[1 reply] : You have no main function. // Tell user what to do here getline( cin... (by SamuelAdams)
About Dynamic Link
 
Hi, I'm learning C++ via a tutorial both with the book and the video. I transcribed the following programme there. I have the questions as below: Q1: I don'...
[2 replies] Last: Thank you very much for your help! I've understood. Have a great day... (by iclearwater)
Can't figure out what is wrong with my code
 
.The user will input an integer. If the integer is less than 0, print out the less than operator "<". If it is greater than 0, print out the greater than ope...
[2 replies] Last: Thank you! That helped. (by jollyholly11)
by kw107
stream manipulators help
 
I am suppose to create program that displays decimals in hex,dec and oct form using stream manipulators . i think i got right (can't check since my visual studi...
[1 reply] : You could turn your while loop into a for loop to shorten the code and... (by integralfx)
Mouse Event
 
How would I add a right mouse click event? #include <iostream> #include <Windows.h> #include "Mouse.h" int main() { }
[1 reply] : mouse_event( MOUSEEVENTF_RIGHTDOWN, 0, 0, 0 ); // may execute too fa... (by integralfx)
by Denix
Moving triangle
 
Hi ppl I have a school project atm. and me including the whole class + teacher has no idea how the hell to do it, so here is what we need: We need to someho...
[19 replies] Last: Rotating the triangle is simply rotating the 3 points - the 3 vertices... (by closed account 48T7M4Gy)
Displaying Vectors
 
Hello! I'm attempting to create a program that takes a phrase and displays only the first word, by putting it into a vector and then displaying the vector. When...
[3 replies] Last: Thank you! I figured a way around it. I've managed to get stuck elsewh... (by Teamdeathmatch1787)
by RB96
Explanation please
 
Hi, so I have a Software exam coming up and I was trying to do some past papers to understand what it is I have to do. Im still a beginner with classes and ...
[9 replies] Last: C++ also has the possibility to default or delete special member f... (by TheIdeasMan)
Structs, constructors, and confusion
 
I am trying to use a constructor with at struct, but upon testing, it breaks. Btw i am using SFML 2.1, but that is irrelevant in this case. Thanks! #includ...
[no replies]
I need some help
 
Hi guys, I need some help. I am not pretty good with arrays and i need some help Lets say we have a sentence S and the words w1 and w2. I want to replace all...
[3 replies] Last: #include <iostream> #include <conio.h> #include <string> #include <ex... (by Igor Akimov)
Getting Lost
 
Hey guys, I am in an introductory class for C++ and we are doing a project to set up a monthly budget. This week the goal is to separate the code into differen...
[3 replies] Last: Thank you so much! Both of these comments helped me to better understa... (by ripken2)
January 2017 Pages: 1... 678910... 24
  Archived months: [dec2016] [feb2017]

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