Beginners - June 2010 (Page 23)

Problems with LLL
 
So my display_all function is only displaying the most recent entry. I fear that this means that I have not properly set up my linear linked list. Any help woul...
[no replies]
Making forms in a .dll
 
You know how in Visual Basic (or Visual Studio), you can make forms? Well how can I code a .dll that creates a form? Is the form coded into the dll? If so can s...
[10 replies] Last: Thank you. (by C to the UNIT)
Launching a program
 
Hey guys, I am extremely new to C++, I used to code vb.net and moved onto C#, but I didn't enjoy it as it felt extremely close to vb.net, so I moved on to C++. ...
[9 replies] Last: It works! Thanks everyone for your support and help! (by C to the UNIT)
by sr8888
Read lines into vector
 
Hey guys, I can't figure out how to read a line into a vector of objects... I have a text file with lines such as: Name Number Name Number, etc. I want to rea...
[1 reply] : To read into a vector, I recommend using vectorname.push_back(object)... (by Albatross)
by cdubya
invalid conversion from ‘Rational*’ to ‘int’
 
I'm pretty new to C++ and I am working with classes, and I'm not sure why I'm receiving this error. I'm not finished, but I want in my Rational plus funtion to ...
[1 reply] : Try changing this -> Rational final = new Rational(nfinal, dfinal); ... (by m4ster r0shi)
Pointer vs index to array
 
Yello, could someone enlighten me as to the pros and cons of holding a pointer to an object in an array vs holding an int index to it? For example if I had a...
[9 replies] Last: See, I have something more like this in mind: class UnitType { ... (by jrohde)
Textbook Example Displaying Bugs
 
Got this example piece of code from a textbook I'm learning from and it's displaying some wierd bugs. It plays a game where soldiers are sent to battle and the ...
[8 replies] Last: I'm thinking that the problem lies within the way the deaths are calcu... (by jaeger138)
by JoH
Odd numbers, where there should be 0's
 
I have placed an integer in a matrix and have asked it to read out the values in each part of the matrix. The number is correct where I've placed the integer bu...
[2 replies] Last: Thank you (by JoH)
Trying to replace a line from a file
 
#include <iostream> #include <fstream> #include <string> using namespace std; int main(){ char fileNam = "c:\\test.txt"; string line; char check; ...
[no replies]
by chiara
Pointers as arguments in functions
 
Hi all, I am still pretty confused about pointers. Say that your function accepts the following variables: function_(shared_ptr<Pink>& pi, shared_ptr<Red...
[2 replies] Last: In the case you cite, you are passing smart pointer objects by refer... (by PanGalactic)
C++ range checking
 
ok well I'm using a switch statement for variable "choice"... I want to either: 1) check that the value choice is >=0 and <=5... if not display "Invalid ...
[6 replies] Last: operator>>() doesn't unconditionally pop the buffer? Damn. (by helios)
How to get my program to pause briefly before displaying a message?
 
In this theoretical console application: #include <iostream> using namespace std; int main { int number; cout << "enter in a number"; cin >> nu...
[4 replies] Last: Because it is distressingly endemic to teach new programmers said ho... (by Duthomhas)
Use Name of Class as Input command
 
Hi people. I just had a problem. I want to know how to take name of class as an argument. I think i can do it by using a string variable within the class. Fo...
[5 replies] Last: Thanks i'll try :) EDIT : Calcium is not an object it is just an in... (by crazzyguy101)
pointer of pointer in a class
 
I have some trouble of using pointer of pointer in a class it is from a open source project, drizzle. The new class is like class DrizzleLock { public:...
[3 replies] Last: No typecasting needed here. What errors is the compiler giving you? (by hamsterman)
Classes in Classes
 
I am having trouble getting a function to work in Visual C++. I have a Point class: class Point { private: int x; int y; public: Point(); void set...
[2 replies] Last: Thank you. That seems to have worked. (by kevin06s)
Can't get my basic i/o program to work
 
Hi, I am trying to make a program that reads a text file and outputs certain information. the text file looks like this (There are about 3000 parts all togethe...
[1 reply] : This was to be my original response. I had been called away to put th... (by Duthomhas)
scanf() and gets() used together
 
Deal all, i read a book and it told me not to use the two i/o functions together.Here is a little demo shows why. first of all,the input file is AB...
[1 reply] : http://cplusplus.com/reference/clibrary/cstdio/scanf/ http://cplusplu... (by Albatross)
by disini
guess the capital game
 
Hi everyone, I'm having some problems here with this code. The program is running but is not being able to discern between right and wrong answers. I wonder ho...
[4 replies] Last: Thanks guys, I got it done, somehow I was getting the concept wrong. ... (by disini)
How to make a Small Window with effect on it
 
Basically i was wondering how to make a window to be translucent and blur anything that is behind it. I am a Beginner on this Language and any help on this sub...
[3 replies] Last: Yes that is also a great alternative. System specific APIs can be hard... (by ragn4rok234)
So I found this list...
 
I was browsing on the net to find a good C++ book when i stumbled upon this list. It seems like a good compilation of books. no I need you pros to please advise...
[11 replies] Last: I did not mean it is not useful to read books. It matters a lot and so... (by chiara)
June 2010 Pages: 1... 212223242526
  Archived months: [may2010] [jul2010]

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