General C++ Programming - June 2011 (Page 28)

Small question
 
When i do this printf("Blablabla") printf("blablabla") Instead of printing the second line in the second line it prints both in the same line how to make i...
[19 replies] Last: [quote=Disch]I can't tell if you're being sarcastic or not My profile... (by closed account zb0S216C)
by meesa
[C++] Srtuct Undeclared Identifier but it's declared?
 
I have this: //GetSetInfo.h (Partial) struct globalCharData{ float charInfo ; }glbCharData; And I have this code //Headers.h (No, there's...
[3 replies] Last: Yes, I am. I relunctantly removes all circular includes, and now it's ... (by meesa)
calculate pi does not work
 
Okay I totally coded in a method for calculating pi but it seems that when I use a double or long double I can not calculate pi past a certain decimal point. So...
[2 replies] Last: yeah I found the GMP library and it seems to be great but I dont know ... (by fearverd)
How to crop date from string
 
I have lots of string in the following format: E:\PFX\26-Mar-2011\02_01_17.35.54.000.pfx I need to go over each string and take only its date, it also shoul...
[6 replies] Last: This is way too trivial for regex.. If the length of each part of the... (by hamsterman)
Pointer Woe
 
int main () { char str ="- This, a sample string."; char * pch; printf ("Splitting string \"%s\" into tokens:\n",str); pch = strtok (str," ,.-"); ...
[3 replies] Last: FYI, your use of strtok() is incorrect and may very well stop working ... (by webJose)
by ramako
segmentation fault reading an image
 
Hi guys, I'm trying to load an image into a buffer, but it gives a segmentation fault. Here's the code main: #include "imagen.h" #include "codificar.h"...
[7 replies] Last: Yes, that was a bit of a hacked together stab in the dark at it! If y... (by Moschops)
Qt Message Box, QApplication and QPaintDevice
 
For my event log, I wanted to display an error message box. I avoided WinAPI (in which it is really easy...) for portability. After downloading and building ...
[4 replies] Last: Thanks for your help, and sorry it's taken me a few days to reply. Fo... (by anonymous23323124)
by eaxx
fstream - string input to file
 
I'm having a problem outputting a whole string into a text file using fstream. The problem is it only reads the first word of the string entered and negates the...
[2 replies] Last: Thank you for the quick reply! I thought I had to use something from t... (by eaxx)
string characters problem
 
What i need is if someone types in some word, it is stored in a string and get last two character of the string, and create some functions basing on those last ...
[7 replies] Last: If you want to have a GUI, you'll need to get familiar with a GUI fram... (by Athar)
afile help
 
if while (!afile.eof()) { ch = afile.get(); afile << ch; } if my afile last letter is an empty space... how can i omit the space to be disp...
[3 replies] Last: Any experts? (by nanochan1)
How do you clear the text off of cmd?
 
I am making a program that continuesly loops to the beginning and im wondering if there is a way to clear the text off of the cmd screen. If there is a way you...
[5 replies] Last: A lib is a library. In this context, I was talking about a library of ... (by ModShop)
Help me understand sorting please
 
Alright, so I want 5 int values from 0-9, which I will store in a vector. I need to iterate through all 5 integers to find all combinations that will equal a ce...
[4 replies] Last: After less than an hour, then three, then two? On Memorial Day weekend... (by Duthomhas)
June 2011 Pages: 1... 262728
  Archived months: [may2011] [jul2011]

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