No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
Re: Its actually a theoritical question. You are not required to write any code to solve it. However, it can also be proven with actual code & appropriate data. You need to be able to explain how discarding any value read in (before input is complete) could actually be discarding the … | |
Re: [QUOTE=bops]Thanks, I have did that, It has been added to path successfully but Dev-C++ still doesnt work. I have rebooted as soon as i added C:\Dev-Cpp\bin; to path but the error is still the same...any mroe suggestions ?[/QUOTE] you definitely have a config problem. Your path is wrong &/or dev … | |
Re: The class below is a proxy (or wrapper) for making oledb calls. You can use std sql scripts. Just make sure that you have the appropriate connection string for your db. [code] using System; using System.Collections.Generic; using System.Text; using System.Data; // ado.net stuff using System.Data.OleDb; namespace DbProxy { public class … | |
Hi, I have an application where i want a datagridview to treat single mouse clicks as if they are ctrl_clicks. IE I when a user clicks on a row, the rows state is togled (eg not selected to selected or vice versa), without affecting any other rows. So far the … | |
Re: You dont specify how you intend to use the factory. That will play a larg part in choosing a Factory pattern to use. So my comments are fairly general. The motivation behind Factory, is to put the object creation in one place, making maintenance easier & removing dependencies from 'user' … | |
Re: from memory, that exercise is in the chapter on associative arrays. If you think about how a map (or 2) might be useful, you will find the task much simpler than using vectors. | |
Re: have a look at [url]http://en.wikipedia.org/wiki/Compiler[/url] | |
Re: Your code wont compile as is. What you need to have is [code] void aFunction { A a; // create local auto object on the stack A* ap = new A() // create object on the heap & have ap refer to it // do something delete ap; // manually … | |
Re: Why not have your program use cmd line arguments. Then your user can specify the output directiry when invoking the prog. Eg: prog "D:\output Dir1" would inform the program to write the output to: "D:\output Dir1\Daily_Summary_%d.csv" You could even have then specify the output file name as well. The advantages … | |
Re: Why not use the assignment operator rather than the CopyPerson() method? Actually most classes will work perfectly will with the compiler generated copy constructor, destructor & assignment operator. Only classes which do their own resource mgmt need them. In the case of People & Lobby classes, the design is overly … | |
Re: have alook at [url]http://www.gotw.ca/gotw/001.htm[/url] | |
Re: The ascii character set assignsg the (256) numbers that can be represented by an unsigned char to display characters. The set runs from 0 - 255. No negatives. C/C++ uses chars to store ascii values, though they are really just numbers. The trick is in how they are interpreted by … | |
Hi, I am interested in comments / experience people have wrt writing a tcp server in .net. We currently have existing an existing server, written in native c++. It communicates with our own browser client using a proprietery protocol and services hundreds / thousands of concurrent connections. The server uses … | |
Re: You program simply ended after the output line. I assume that you were running it directly from the dev environment. If you run it from a cmd shell you will see the output: Hello World To add a pause, try the following code: #include <iostream> // io classes etc #include … | |
Re: Try changing the first few lines of your code to: #include <fstream> #include <iostream> #include <cstdlib> #include <iomanip> using std::ifstream; using std::ofstream; using std::cout; using std::endl; using std::setiosflags; using std::ios; using std::setprecision; struct mike { int id; float average; char lettergrade[1]; int numgrade; int total; }hope; int main() ... |
The End.