Beginners - July 2011 (Page 14)

Simple Question - Double Linked List in a Template
 
So I'm writing this toolkit to provide functionality for a double linked list inside of a template. The toolkit functions are mostly straightforward (at least ...
[3 replies] Last: In your case, you have no template functions , you have a template c... (by jsmith)
by Adrio
Using Pointers to shift a word
 
This is the assignment. I am having trouble understanding pointers and cannot figure this one out! My C++ course is online and the professor does not help at al...
[19 replies] Last: Well never mind... haha I've had it with this code and its for tomorro... (by Adrio)
Help with simulation H.R. employee data file
 
I am very new to C++, and I need help to make these conditions part of my code that I have created so far. I'm very stuck, so please help as soon as possible, ...
[1 reply] : It might help to write the entire code yourself, not copy someone else... (by Turbine)
Altering the Properties of Pointer Objects
 
Hello everyone, I'm new to this forum and C++ I'm writing a program that will let you create a faux database. Basically I want to use dynamic memory to let u...
[2 replies] Last: That worked! Thanks a lot : D (by Liuqahs15)
by mgm11
parameter string problems
 
hi can anyone show me how to set this code i have below, to reverse all parameters i set, instead of just reversing my string. #include <cstdlib> #include ...
[4 replies] Last: thanks that helped alot. (by mgm11)
Having problems reading lines of text files
 
Good day, everyone! I have tried and tried to find the information that I need for this, but I cannot seem to find it anywhere (which probably goes to show t...
[4 replies] Last: No problem. I'm glad you found something that at least works. I'm just... (by Audie)
if and else loops VS switch
 
What is the difference of if and else loops compared to switch? What are the uses for both?
[4 replies] Last: with switch statements you can fall through by leaving out the break. (by acorn)
<sstring> problem
 
#include <iostream> #include <string> #include <sstring> using namespace std; int main () { string myString ("1204"); int myint; stringstream(myStr...
[1 reply] : You meant <sstream> (by hamsterman)
Constructor within a template
 
This is my first experiment with templates, and I'm a little confused. I'm writing a constructor and have this: D_Node<Item>::D_Node( const Item &init_data...
[5 replies] Last: Thanks! (by joatmon)
Very confused on Placement New.
 
I understand normal new and know how it works, but for some reason placement new is puzzling me. I have a slight grasp on how it works. You just include the <...
[3 replies] Last: Thank you for the replies, makes much more sense now. Also, @ Turbine... (by Kieth89)
by chulio
return in void function()
 
Hello, i would like to ask when we have a function like: void func(){ /* code code code*/ return; } Is it "better" to use return at the end ...
[3 replies] Last: Thanks for the useful information. (by chulio)
Continues no matter what I enter
 
Hello, in a calculator program I remade this morning, I had a problem. Here is the code #include <iostream> using namespace std; int main() { ...
[8 replies] Last: Is there a way to do the same thing as system("cls") without using... (by ziodice)
reversing a number
 
hi! i'am a beginner as you can see, otherwise i probably wouldn't have such a stupid problem :) i have been seeking for a method how i could reverse a number fo...
[11 replies] Last: ok, it seems that my code was more or less the same as what emyr666 wr... (by KrixisLV)
by omzy
How to add graphics
 
I wanted to make game where things are falling from the sky and you have to avoid them, but i was wondering if that was possible with c++. I was wondering how ...
[5 replies] Last: No, you'll just have to learn to make use of the functions available t... (by Warnis)
how to make a GUI program
 
I'm a beginner, and I've finished with the study of console c/c++ Iwant to know how to make a graphic user interface
[5 replies] Last: sloppy can I have your e-mail pls? (by lordsani)
Finding out what function changes my pointer?
 
Hi, I have been searching for this for a while, but can't find anything useful on the topic: I have a pointer that all of a sudden points to NULL at some poi...
[3 replies] Last: Perhaps your debugger will do that for you too. I was thinking of some... (by Galik)
why is this giving the right answer but adding a 0 to the end of the answer?
 
#include <iostream> using namespace std; int main () { int n1, n2, n3; cout << "Enter three numbers to compare them: "; cin >> n1 >> n2 >> n3; ...
[3 replies] Last: cout<< average / 3; and its better to compare your variables with a ... (by Hunter ArA)
very easy quastion that i cant solve
 
in this quastion i just need to add the main. everything else is preaperd. you dont need to understand what is in the fixtfloat.cpp (i understand it but you d...
[2 replies] Last: Use [co de] tags (by Nisheeth)
by chulio
Help with struct
 
Hello, i have the code: #include <iostream> struct fun{ int v ; }; using namespace std; int main(void){ for(int...
[2 replies] Last: fun is a like a data type. To solve it you must define a variable of... (by Nisheeth)
by mawgly
Functions: Returning a value
 
I'm new to C++. I was looking at the function tutorial on this site, and looked at this program: int addition (int a, int b) { int r; r=a+b; ...
[1 reply] : http://ideone.com/PqZwG There is no guarantee. By chance, on your s... (by Moschops)
July 2011 Pages: 1... 1213141516... 54
  Archived months: [jun2011] [aug2011]

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