your options on Windows are:
-Visual C++
-Digital Mars (command line compiler is free, you have to pay for IDE)
-Open Watcom (compiler, IDE, dev tools all free)
options for Linux are:
gcc (of...
Type: Posts; User: shintaro
your options on Windows are:
-Visual C++
-Digital Mars (command line compiler is free, you have to pay for IDE)
-Open Watcom (compiler, IDE, dev tools all free)
options for Linux are:
gcc (of...
grumpy- thx for your help
Im reading Bjarne Stroustrup's book "Programming Principals and Practices Using C++" and I cant get the graphics libraries he provides to compile. These libraries are a wrapper that interfaces with...
Elysia- Im using VC++ Express 2008
Im pretty sure all the path, libs, includes settings are in project>(project name)properties, like I think to set libraries is in linker>input>additional...
Im working through a book on Ogre graphics engine. Usually beginners books tell you where in the VC++ IDE you include the paths and libs, but this book just tells you to do it, but not how. Here are...
thanks Yarin, but I found another solution, there is a folder with all book code and make files on the book website
sorry for the bother, Id delete this thread but I dont see an option for deleting
Im reading Bjarne Stroustup's "Programming: Principals and Practice using C++" and Im having trouble figuring out how to set up the graphics code that he uses to simplify the FLTK library, quite...
tabstop- big thanks
Im doing an advanced extra credit project for my C++ class and am trying to make a Sudoku game based on function specifications laid out by the teacher. The problem is that my Display() method is...
aarrgh *facepalms* thx matsp
carrotcake1029- Thanks, that fixes the problem on this program. However I tried this fix on my other program that had the same problem and it didnt work. Could I bother for a tad more help?
...
The output I get from this program just shows all zeros, I cant figure out what is wrong as this is how the scanf and printf statements are formatted in the book. Any help please?
#include...
Raigne, Daved- Yes youre right, after some looking I came across info on converting numbers to strings. So I guess this is what I will have to put in my code:
double c;
c = -3.4;
...
hk_mp5kpdw- I appreciate the help, but there has got to be an easy(er) way to do this without resorting to exotic functions that my teacher has never heard of. Time for me to crack more books and see...
Nor- here is the entire program with error output on the bottom
http://codepad.org/TLWDe1ey
Which would be nice if I was using C, but Im using C++, and the little I know about C string...
I have to assign int values from arrays to a string so I can use the string to display output.
string Polygon::ShowPolygon()
{
string displayPoly;
for (int h = 0;h < num_points;h +=...
I think I found the problem, I declared the points[] array as a string instead of an int. Cant figure why that didnt show up as a compile error. sry to bother
Daved- I havent studied vectors yet in my C++ class, so that is out. I have to follow the spec for the assignment, and the assignment calls for one array called points[] to be declared in the Polygon...
Inside the for loop of my SetPoints() method which is in the Polygon class Im trying to assign the values of the parameter arrays into a class array, but its not working, the class array just...
tabstop- Youre right, its some kind of problem with cout in general. I tried to run your bob string and it gave me the exact error same messages.
Edit:
Daved- Yes that is it. And yes when this...
cpjust, ok here it is, and the lower part of the error just repeats over and over for about a mile. Im using VC++ Express
------ Build started: Project: assignment 7, Configuration: Debug Win32...
I have a class method that outputs a string to cout and am getting an error message for it, Im having trouble finding info on how (or if) class methods can output strings to cout.
cout <<...
Yes I would. Infact just about any word in the dictionary would work better than foo, bar and baz because most words have a meaning that will describe the purpose the word is being used to represent....
Which of these is more readable?
this:
Void modifyName(char name[100])
{
strcat (name, “ is stupid”);
}
void setUpName(void)
Im really not that stupid.
Try this example, I was currently reading this in the article "Understanding Initialization Lists in C++" which is on this site:
int main()
{
// a lovely...