General C++ Programming - May 2010

by declan
Using SFML with C++
 
Hi everyone. I want to use SFML to make some very simple graphics (nothing remotely interactive, just drawing a picture once based on some data my program spits...
[1 reply] : You can of course use the library without an IDE. To tell g++ to sear... (by Athar)
dynamic array problem
 
Here I have created a class called text. Later in the new_text function I have declared a dynamic array of pointers to text objects. class text { publ...
[2 replies] Last: Oh my lord... thank you! Why do I always get tripped up on somethin... (by luvssdl)
Writing to a file
 
Hello, ive been writing c and c++ for many years now, though it seems that im no expert in this field. Does anyone know if it is possible to read and write from...
[8 replies] Last: y am using Dev-C++ for some time and y never had any problem with it.... (by Mihay07)
by Kyrt
char* to UTF-8 (translating java to c++)
 
Hi, I am having trouble translating the following java code to c++: String readString(int size, int len, String charset) throws IOException { in...
[1 reply] : http://www.cplusplus.com/forum/general/7142/#msg33079 EDIT: Alterna... (by helios)
by Ensei
Input from file (loop?)
 
I'm trying to input information from a file in the format example: EG Owner Name1 Adress1 PostalCode1 1 1 1 1 1 1 1 1 1 1 1 1 10 //emptyline PD N...
[7 replies] Last: I didn't know it skiped white space... It's at 100% now. Thanls ... (by Ensei)
by mugga
Reading a particular set of lines from a .txt file
 
Hi, I have a .txt file which contains the x, y and z co-ordinates of particles which I am trying to cast for a particular compound. The no. of particles presen...
[4 replies] Last: Hey, That really helped a lot. Thanks a ton! :) (by mugga)
by mrkcc
creation spreadsheet c++
 
hello can give me an idea of how to create a spreadsheet in c + +, I have no idea how it was thought recursive functions, but not if eta well, or will have a b...
[2 replies] Last: It depends what you mean by "spreadsheet". If you mean a file that can... (by Galik)
Unable to store value of hex encryption output
 
unsigned char S ; unsigned int i, j; void swap(unsigned char *s, unsigned int i, unsigned int j) { unsigned char temp = s ; s = s ; s ...
[9 replies] Last: sprintf(); http://www.cplusplus.com/reference/clibrary/cstdio/sprintf... (by Galik)
3-dimensional dynamically allocated array
 
I am trying to make a 3-dimensional array dynamically but I got errors. This is my code. void CTest::Start(int NumOfTester, int NumOfParts, int ColData) ...
[12 replies] Last: @GreyWolf Do I need to deallocate the code you posted using vector? o... (by olredixsis)
2D ARRAYS
 
Hello everyone I want to sum up rows in a 2D and put the sum at the end of the rows and also do the same for each of the colums. I have a code but the row sum ...
[4 replies] Last: yeah thanks Galik that was the error... I actually thought of that bef... (by shani09)
by W A
Filling login-forms
 
Hi! I've got one thing that's annoying me a lot. Login-forms that contains the tag: autocomplete="off" For those of you not familiar with html, this tag tells...
[4 replies] Last: You could do it with privoxy. http://www.privoxy.org/ Its a prox... (by Galik)
by eraeya
checking file (ofstream) for read-only
 
I've written a save function that writes data into an .xml file via ofstream. I would like to check if the file I want to write to is read-only (so I can throw ...
[4 replies] Last: No it's probably not foolproof (few things are, right?). But in this a... (by eraeya)
XML Programming
 
Hello ! Had anyone done this yet ? How can I manipulate xml files for example , get input send output and so ..? Which headers must I include ? An exap...
[2 replies] Last: Aside from a good XML library, it might be useful to have a look at fs... (by eraeya)
what is wrong with my code
 
console application in c++ have error with that code it says illigle else without matching if please check and post the correct code note: it is a tempreture ...
[2 replies] Last: Use code tags and post the exact error message you're getting the next... (by Athar)
How to use an object in more than one header
 
now i have a game project, i need to modify the values stored in an array in more than one header, any ideas?? thanks in advance :)
[4 replies] Last: I suggest polymorphism. (by blackcoder41)
C++ Fractions Program
 
I have a program I need to make, it must add, subtract, and multiply fractions. I get the following errors on the bottom. The program must run on void functi...
[4 replies] Last: I am using Visual studio 2008 .When i make some of the correction in t... (by bluecoder)
Solve this problem
 
Hi All Can someone find a good (least time / space complexity) solution for this problem: Given int n, the total number of players and their skill-point. ...
[4 replies] Last: Why don't you give us more clues about your problem? What is a player'... (by m4ster r0shi)
Need H3lp with a School Programming Project
 
Can anyone help me out? I just can't seem to get this started, any help even some examples would be much appreciated. Thanks, here it is... "Hint: use 2 ...
[2 replies] Last: If you make an attempt, post your code and we will do our best to show... (by Galik)
Leap Year program
 
Ok this is what I have to do. Write a program to find if a year is a leap year. The user will input the year and the system will have to do the verification. I...
[7 replies] Last: [quote= filipe] If I may, whenever you need a function to return a bo... (by crazzyguy101)
Export Interface in device drivers
 
I am new to device drivers and would like to know what are export interfaces in drivers? Tried to look it up on google, with not much avail. If you know of a...
[1 reply] : Strange, your topic is already on google: http://www.google.com/#hl=en... (by closed account S6k9GNh0)
May 2010 Pages: 123... 22
  Archived months: [apr2010] [jun2010]

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