Beginners - April 2016 (Page 28)

Problem with data not storing to be displayed.
 
Hello, I am a beginner programmer currently in class, and I'm having some trouble with an assignment. I am to create a program that can store a type of media...
[no replies]
by mmgh
Undefined symbols for architecture x86_64
 
Hello, I have a linking problem. Would you please help me understand what is going wrong here? I checked all the member function definitions and prototy...
[6 replies] Last: Oh! that was the point. thank you so much. It is compiled now. :) (by mmgh)
Converting shared pointer to object
 
Write your question here. Hi guys. I am working on an assignment and I only have to convert a shared pointer to an object to finish it. I am not supposed the ch...
[1 reply] : You can't convert a shared pointer to an object. You can use the share... (by Moschops)
Function Help
 
Hey everyone, I need some help with functions. I was instructed to add on to existing code (my addition is at the very bottom). Whenever I compile it, however, ...
[1 reply] : The computer isn't necessarily ignoring your function. You have just n... (by Tom56785)
Copying an array into another one
 
I want to conditionally copy (only selected elements) from one array to a (big enough) empty one. I tried int a=0; int aarray[n+1]; for(int i=1; i<n+1; i++...
[3 replies] Last: variable length arrays (vla) are illegal in c++, use std::vector inste... (by ne555)
by Alleks
Creating a dynamic library
 
Write your question here. I'm trying to create a dynamic library. I went to the projects options and click on the Parameters tab. Add a the library, but came ...
[2 replies] Last: I did it ,and then added these files in the main project. (by Alleks)
by slex04
n1
 
5 int func1(int n, int n1) 6 { 7 n += 3; 8 n1 -= n; 9 return 2 + n + n1 * C; could someone please help me with this. if n = 5 what is n1? and n += 3, do...
[2 replies] Last: Since we don't know the incoming value of n1, or the value of C, we ca... (by fredk)
by slex04
Pizza Slices
 
Could someone insist me in why my program is not running correctly #include <iostream> using namespace std; // Declarations int getData(); int compu...
[10 replies] Last: Thank you ..it works now (by slex04)
Creating .txt file using it and deleting it
 
Hello My name is William and I have being programing with c++ for three months now. I am creating a program that makes a .txt file (using the fstream) library...
[1 reply] : One option, see remove : http://www.cplusplus.com/reference/cstdio/re... (by Chervil)
by Zorac
Removing whitespaces with getline.
 
Hey all! I am overloading my operator>> to work with my struct. I added some comments to my code to explain my error and the two types of solutions i have trie...
[4 replies] Last: Thank you very much. It worked perfectly! (by Zorac)
by tNK
mile to kilo program
 
Hello everyone so I wrote this simple console program to convert user input miles to kilo (assignment in a book). I know it's a really basic piece of code but I...
[1 reply] : From user's point of view: " Kilo is a decimal unit prefix in the metr... (by keskiverto)
EMERGENCY!!!
 
Im new to visual studio and wanted to know if there is anyway that i can share my programs or access them from the cloud.
[2 replies] Last: Github would be the way to go though if you don't want to pay you can ... (by ChajusSaib)
ATM Program - How would I get transaction history from the file path string and display to user?
 
So I'm creating a simple ATM program, I have everything completed thus far, but I am stuck as to how I am supposed to display all deposits,withdrawls, check bal...
[no replies]
error and need help energency
 
Assume a class Window with accessor method getWidth that accepts no parameters and returns an integer . Assume further an array of 3 Window elements name...
[2 replies] Last: thank you thank you (by ChungTong)
by dean
Template specialization for a member function
 
What's the correct syntax to create a full template specialization of a member function? For instance consider: struct Tata { template <typename T> ...
[1 reply] : Place the explicit specialization of the member at namespace-scope (of... (by JLBorges)
confused with some code
 
Can someone explain what this code does? I think i have an idea but not quite sure stringstream ss; //copys content into variable ss ...
[2 replies] Last: okay thanks that makes sense! (by closed account i8bjz8AR)
need help with pointers and how to call a function with pointer name
 
Some reason my code wont run correctly, and i think there is a problem. Im not entirely sure if i call this function correctly. Any help is appreciated #inc...
[4 replies] Last: Thanks. So p doesnt points to nothing after all! (by chang123)
How to display sum of values in forloop
 
Hi, I have to write a program accepts a varying number of prices (determined by the user) and runs a few calculations based on those prices. I am required to u...
[2 replies] Last: @quantumleap- line 16: You don't initialize sum. line 26: You need ... (by AbstractionAnon)
HELP WITH LOOPS PLEASE!
 
can anyone help me with this loop #include <iostream> #include <string> #include <fstream> #include <ctime> using namespace std; /* ---------...
[2 replies] Last: @jam47: line 27: Do not call srand() within a loop or a random numb... (by AbstractionAnon)
int*
 
Hi, i was wondering what is the difference between int* p and int *p?
[3 replies] Last: thanks (by MrWolf123)
April 2016 Pages: 1... 2627282930... 43
  Archived months: [mar2016] [may2016]

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