General C++ Programming - March 2011 (Page 19)

Writing files
 
I have some data that I'm writing as XML, but the file size is a little large. I was looking for a way to compress the size some. I've read about things like en...
[6 replies] Last: It does. I've never used one but there are compression libraries out ... (by moorecm)
by sadon
arrays
 
Hello, Everytime I try to run this code, it compiles with no errors. but when I run it it gives a runtime error. The array demand which is checked if it i...
[2 replies] Last: the array demand is n=18. so im using "n" to scan all the rows an... (by sadon)
by ldeeph
Arrays(one dimentional)
 
hey,can anyone help me with this practical.i'm new in programming and i wana do this prac myself,but in this one i don't see the light.there's the prac question...
[1 reply] : http://www.cplusplus.com/doc/tutorial/arrays/ Scroll to the bottom se... (by hamsterman)
c++ with ms access
 
Can we connect with C++ with ms-access, I am not speaking about vc++, ordinary c++, please post any tutorials, i need it hardly
[2 replies] Last: Can we connect with C++ with ms-access OLE Automation or accessing t... (by closed account z05DSL3A)
Switch case error.
 
Hey guys, I'm creating an RPG for my C++ class and I've run into a bit of an awkward error with a switch case. Here is my main.cpp: #include "Player.h" #inclu...
[3 replies] Last: I'm not sure if this is your problem but when declaring variables insi... (by Breadman)
Assertion Error: Expression:(stream !=NULL)
 
Hi, I've been working on a code for a text processor and after creating this bit of code it started to tell me of a stack overflow. I reduced the array size ...
[no replies]
Do Nothing Command?
 
Is there a "Do Nothing" command in c++? As in, when you press the wrong key it just sits there and waits for the user to input the right key? It doesn't write a...
[3 replies] Last: cool - thanks guys! :D (by timmah1493)
Linker error - cannot resolve it
 
Hi to all! I am working on some modbus application and I've got evaluation modbus library, which I included into my Visual Studio 2008 Solution. In this solu...
[1 reply] : Could you post the files for MbusSerialMasterProtocol ? Seems like co... (by onur)
Printing the name of a function
 
Is it possible to print the name of the function from where the print method is being called? Go through the following pseudo code. void foo (void) { c...
[2 replies] Last: I got the answer. In general, it is __FUNCTION__. This works well both... (by krishnendu)
Pi Calculator Returns NAN, Is not Precise
 
I wrote a utility that's supposed to calculate pi, but running it with a number of loops over about 20 causes it to return NAN, and anything below that returns ...
[3 replies] Last: Try pi=Atan(1)*4 or something equivalent for Atan (by buffbill)
Someone teaches me how to compile (c++)?
 
I want to learn to program in C + +, and for that I try to not only learn the language from a theoretical as well, in a practical way. I'm wandering through s...
[1 reply] : If you are just starting out I would advise to buy a book on it. Ther... (by NetMage)
Seeking guidance for first project
 
Hello, I am a Comp sci/math major. I am embarking on my first true project and am seeking feedback as I am unfamiliar with a few things. First, I was wonderin...
[3 replies] Last: Bump. Is there anyone who can explain or at least give a direction as... (by NetMage)
Someone teaches me how to compile (c++)?
 
I want to learn to program in C + +, and for that I try to not only learn the language from a theoretical as well, in a practical way. I'm wandering through s...
[no replies]
Cin Problem EASY.. HELP
 
I am trying to separate input by a comma cout << "Rectangle: Please enter width and length: " ; cin >> r.width , r.length; //ERROR <<<<< Example: Rectangle:...
[1 reply] : char c; cout << "Rectangle: Please enter width and length:"; cin >> r... (by PiMaster)
fstream to read formatted file (gamesave)
 
I am creating a RPG that will take the player some time to complete. Therefor, I need to have gamesaves. Depending on if the player is in the middle of a battle...
[6 replies] Last: Thanks, TinyXML looks like it would fit my needs best. It appears rela... (by ModShop)
Help with Debug Assertion Failure
 
I am working on a project that converts a char array to a float, however I keep getting a debug assertion failure. I know it is in the if statement (code below)...
[4 replies] Last: Got it. Thanks for the help! (by jetskiguy)
thread question
 
I am starting to work with threads but do not understand the syntax of this... _beginthread(thread, 0, (void*)12); what exactly does (void*) do to 12? I ...
[9 replies] Last: Correct? yes Is that timing due to how fast the second thread is cr... (by hamsterman)
Is this safe
 
1. Can i safely reuse my pointer like this: DWORD len = SomeFunc(); if(len <=0) return; wchar_t* buffer = new buffer ; ...manipulate here delete ...
[2 replies] Last: Thanks. It will be used in (scope of) some small function so i'll dele... (by savavampir)
trying to read input from console & write to file
 
I'm perplexed. Assignment I've given myself is to input a filename from the console. Create a file of that name. Then input a number and then output that...
[3 replies] Last: Thank you Bazzy for taking the time to help!!! It is much appreciated... (by jim3222)
multiplication at 2 tables
 
You have two tables of integer A(NXM), B(MXR).Write a program which finds the product of the 2 tables. The result is the table C(NXR). Correct my code plz ...
[6 replies] Last: gcc would let you create multi-dimensional arrays like that, but it is... (by simeonz)
March 2011 Pages: 1... 1718192021... 31
  Archived months: [feb2011] [apr2011]

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