General C++ Programming - September 2010 (Page 13)

by Zaroth
Can't format code with Visual Studio 2010 Ultimate from MSDN
 
The key combination (Ctrl+K, Ctrl+D) is bound to command (Format Document) which is not currently available. Any idea how to fix this? Thanks
[1 reply] : This should go in the Windows section. Start the IDE. Choose Tool... (by kbw)
Integrating sqlite3 core amalgamation into a c++ application
 
the sqlite3 core amalgamation consist of sqlite3.c and sqlite3.h. How do I include it into a c++ application since I can't compile the sqlite3 core with a c++ c...
[1 reply] : You can compile sqlite3.c with a C++ compiler. Many C++ compilers by ... (by kbw)
Tictactoe code wont run more than once
 
Today i decided to make an AI for my tictactoe game that i had created a few months ago for a class. It took several hours and whatnot to make but i did and it...
[3 replies] Last: The problem is that the board doesn't reset line 52 second file ... (by Thenero)
Array test program problem
 
I created this program to help myself learn how to use and manipulate arrays. The program compiles fine, but when I run it it says, "ArrayTestOne.exe has stopp...
[3 replies] Last: put #define SIZE 100 .... .... ... string Array ; ... (by bluecoder)
Deleting File from pure C/C++
 
I want to create a temporary file, and then after use i delete it how do i do this in c/c++ without recourse to OS apis?
[1 reply] : please find the remove function in the following link http://www.cpl... (by bluecoder)
Filestream read() issues
 
I'm trying to read a 3D mesh file, but there seems to be something wrong with my file wrapper class, which is understandable since I never tested reading a bina...
[8 replies] Last: Because back when we created these utility classes I thought the code ... (by closed account Ly59GNh0)
Using data files as containers
 
In this project I'm working on, I'm planning on using a text file to hold all my data instead of keeping inside of a container in the program. Since performance...
[2 replies] Last: Nevermind. The idea turned out to be too complex to do properly. (by hamnat487)
getline
 
I write a program that uses struct to display address, I don't understand why the getline command work only when it is repeated at follow: getline (cin,em...
[13 replies] Last: Cool. Thanks a lot (by curioustoknow)
by Wander
Issues with Writing to Text File
 
I'm working on a map program. I want the user to enter values for a coordinate and they be saved on a text file. The strings that they type in are entered fine ...
[3 replies] Last: struct mark_t { ... mark_t( unsigned x, unsigned y, const st... (by blackcoder41)
by LB
Change Window Icon at Runtime
 
I searched around a bit, and all I could find was stuff about changing the icon of the EXE or using icons built into the EXE with a resource file. However, this...
[10 replies] Last: Yeah, it was the combined code that worked. Also, I found out the d... (by LB)
is there a way to fetch the error into a text
 
is there a way to fetch the error into a text like for e.g in the php , we do mysql_query('select `what eva` from `wateva` where `wateva`='wateva'') or die (my...
[6 replies] Last: Scripting language like PHP is very different with C++. Usually when f... (by blackcoder41)
stringstream issues
 
I was wondering why this isn't working it for some reason won't read the file and I think it has to do with the stringstream giving a false file name. ...
[2 replies] Last: Use the filei.is_open() function to be sure that the file is opened.... (by blackcoder41)
posix threads with optimize flag -O2
 
Hi, I have made a program hat uses posix threads. My program works fine when I compile with no optimization flag (with -O0). When I change the flag to exam...
[8 replies] Last: Thanks Galik, I see your point... something to think about :-) (by jesperd)
Static Fields
 
Hi there, Is it better to declare static fields of a class as a pointer to an object or as a value? And is there any benefit to either one? const stati...
[1 reply] : It depends whether you want an object or a pointer. Advantages to... (by Disch)
Memberwise copy (1,2)
 
Hello.What's wrong with the following code snippet? for( list<Conference>::iterator it = conferences.begin();it != conferences.end();++it ) if...
[25 replies] Last: but I think I have both implemented and defined them (by hooshdar3)
Problem with linker
 
Please, I need some help to do a small task. Here it is: I need to use a function, for example puts, in a program, but without including stdio.h. Then I must c...
[2 replies] Last: Ok thanks, I'll try it! I tried, but when i type this : g++ -o main... (by kounueddy)
How can i create this C++ program.
 
Im new in C++ programming so i dont know the required syntax. The program is suposed to calculate the addiction S=1^2+2^2+3^2+...+(2n+1)^2
[9 replies] Last: thanks again. really apreciated. (by jumper007)
Read and write into a BMP + binary data?
 
I need your help! When I read a BMP file: bitmap file. What the function can I use to read the BMP file (byte by byte, and bit by bit)? What the function c...
[3 replies] Last: [quote=nickqueen]Because I 'll pass the header of BMP ( exaclly,the fi... (by blackcoder41)
by helios
Operator overloading
 
Can anyone think of some way of making this, without touching main(), output pointer::operator->() const A::a() pointer::operator->() A::b() ? #inc...
[11 replies] Last: After thinking about it, all I came up with was that accessing that pa... (by helios)
anonymous parameters?!
 
Hello.How can it be that some functions have parameters withh no name specified in the definition(just the type is modified).I had not encounter it in my life t...
[7 replies] Last: The most common reason I can think of is that the function is a callba... (by helios)
September 2010 Pages: 1... 1112131415... 20
  Archived months: [aug2010] [oct2010]

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