Beginners - March 2013 (Page 2)

[Linker error] undefined reference to 'function'
 
I've been struggling with this for the last two hours, not sure what I'm missing. I've searched the...
[2 replies] Last: The function prototype, (lines 5-7), function definition (lines 46, 77... (by Chervil)
Stuck... on a while loop! Help please!
 
Write a loop that will accept numbers from a user as long as he wishes to enter numbers. Calculate t...
[4 replies] Last: Okay. I see. So I just changed the condition to now be ( xNum != 0) ... (by mcnevermore)
Dynamic memory (new) question.
 
I'm just curious, in the tutorial it allows for: pointer = new type; and pointer = new ty...
[16 replies] Last: chipp, in the first function, str is a pointer that points to memory a... (by cire)
by eXord
Copy constructor - "invalid memory allocation"
 
So I have a defined copy constructor which deep copies elements of an array, however when I run the ...
[3 replies] Last: Thanks for your replies, @JLBorgess this way seems interesting, i've ... (by eXord)
C++ equivalent for tmpfile()
 
http://cplusplus.com/reference/cstdio/tmpfile/ Searching the Reference, I couldn't find a C++ str...
[9 replies] Last: libstdc++ specific (AFAIK, works only for char and wchar_t): #includ... (by JLBorges)
by zukias
Question on class pointers...
 
#include <iostream> using namespace std; class MyClass{ public: int nValue; }; int main()...
[6 replies] Last: Thanks for replies anthony & framwork, I think that cleared it up for ... (by zukias)
How to extract the bits from a binary number?
 
Hi, I want a function that, given two integers n and k, returns the kth bit of the binary represe...
[4 replies] Last: Thanks a lot! (by baby bunny)
Trouble with overloading the << operator
 
Back again ladies and gentlemen. Below is a cpp file from an assignment. The program consists of ...
[2 replies] Last: There is no reason to be calling new and using pointers in that code. ... (by cire)
What's the use of explicitly defining a destructor?
 
What's the use of explicitly defining a destructor? When an object goes out of scope, its default de...
[2 replies] Last: Deallocating memory isn't the only reason why one should overload the ... (by closed account zb0S216C)
Linear Search for Lottery Ticket
 
I know this is a popular problem but I need help stopping my program from exiting when 'y' or 'Y' is...
[2 replies] Last: Hey thanks for the help Chervil. I cannot believe it was something as ... (by solemnservant)
Problem with Visual C++ 2008 error LNK2019: symbole externe non résolu
 
Hi, I wrote some code on an online compiler and it worked out well. But when I move it to Visual ...
[7 replies] Last: Yeah it seems fine for the moment. Thanks! (by baby bunny)
Problems with reading a file.
 
I got an input file like this. MNSD sjs 20 30 40 50 60 70 85 97 50 abcd efgh 10 20 30 40 50 60 70 8...
[1 reply] : Please use code tags and indent. The extraction operator (>>) ignores... (by Lowest0ne)
what does return 0 in main function do?
 
What instruction does it perform? it has to return a value, but then return a value where? please no...
[8 replies] Last: this works too.. //image this was a program called SOMEPROG.EXE ... (by DysFunc)
doubly simple linked list
 
#include <iostream> using namespace std; struct node{ int data; node *next; node *prev;...
[15 replies] Last: As i understand function addNodeF has to add a new element at the tail... (by vlad from moscow)
Passing a 2-D Array To A Function
 
Hello, I recently wrote a program that uses recursion to fill an object. EX. ***** * * * ...
[4 replies] Last: It means that function fill is invalid. Investigate its code. (by vlad from moscow)
question from the tutorial
 
Here's the code of a default copy constructor of an object from the C++ tutorial: 1.CExample::CEx...
[4 replies] Last: i got it... Thanks for the time :) (by Mustehssun)
How to delete console history?
 
I wrote a brief code to show what I want: #include <iostream> #include <string> #include <sstr...
[6 replies] Last: Are you trying to do this in bash? No, I'm trying to do this in a con... (by Vidminas)
by aslv
HTML through C/C++
 
Hello! I need to access html code of a webpage using C (or C++). Could you recommend which libraries...
[3 replies] Last: Thank you. I successfully solved my problem. (by aslv)
Can't read second line from a file
 
I have a file that look's like this: last_name first_name grade2 grade2 grade3 grade4 grade5 grade6...
[1 reply] : fin >> v1; for(int i=0;i<10;i++) { fout << v1; fin >> v1; fout << ' '... (by fg109)
Expected Primary Expression before "int"
 
I have no clue what to make of this error, really need some help with this one. Link To Code: ht...
[2 replies] Last: Thanks, i'l be sure to start at a lower level before I go for tasks li... (by IceyEyez)
March 2013 Pages: 1234... 87
  Archived months: [feb2013] [apr2013]

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