General C++ Programming - February 2009

Opens and Closes
 
I need help with this code. I am a beginner programmer and do not know what is wrong with it. After I open the compiled file (It is an .exe file right?) a comma...
[4 replies] Last: Alright thanks! (by Imoddedu)
Hi little question
 
hi im new to the forums and i have been programing in java for some time now and i just started learning C/C++ any ways i was trying to make this program a...
[4 replies] Last: oh ok i see thanks for the explanation though xD saw my mistake after ... (by CrimsonAngel)
C++ matrix
 
hi... evry body? how to make a multiplication and addition matrix that has a two arrays and in evry array should hav a 2x2 rows and col. plz help me..
[2 replies] Last: http://www.boost.org/doc/libs/1_38_0/libs/numeric/ublas/doc/index.htm (by Zaita)
[solved] do while loop runs correctly once
 
I've got the following code which works right the first time through the do while loop which encompasses the main part of the program. The problem is that afte...
[8 replies] Last: Here was the final code if anyone is interested. // Window_repla... (by kds1398)
by Disch
Determine if integer type is signed
 
I'm working on some template functions to automate some stuff I find myself doing frequently with integer types. However the process is slightly different depe...
[7 replies] Last: awesome. Thanks. (by Disch)
Using sprintf with WriteConsoleOutput
 
So I have a task to use sprintf with WriteConsoleOutput. Now my problem is I'm not to sure how I can use sprintf() to display to a coord on the screen. So if...
[2 replies] Last: So your saying I'd have to still use printf() to display the c-string? (by Mythios)
How would i do this????
 
Im suppose to write a program that inputs an amount of time in whole seconds. The program should compute and output the time in weeks,days,hours,minutes,and sec...
[6 replies] Last: Actually you're lucky, I did the same thing about a year ago and it wa... (by n4nature)
process time (elapsed time) is always zero
 
Hello Everyone I have one code for image compression alogrithm in c++. For my part, I have to measure execution time of different parts of algorithm. I am ...
[9 replies] Last: No. The smallest resolution supported by the system is 1/CLOCKS_PER_SE... (by helios)
Question About Overwriting .exe Code & File Size Changings - C/C++
 
Assume i have 4KB .exe file & opened it by any standard function on C++. 1. lets say i want to overwrite "xxx.xxx.xxx.xxx", where x represents IP address. Th...
[6 replies] Last: yes the IP is of type const *char. If const *char puts \0 at the end j... (by f ben isaac)
Codewars: The Bot Programming Contest
 
Dear Sir/Mam, It’s our pleasure to inform you that ABV-IIITM, Gwalior is organizing its annual Techno-management fest INFOTSAV’09 from 6-8 march, 09. One...
[no replies]
i need file procsseing and control break
 
hi to everybody i'm learnning c++ i have a project about control break page break and reading from a file!!! can any body help me on how to read from a file ...
[no replies]
by gopalm
Defining Properties in C++ similar to C# ???
 
Hello I found this code and it works in Visual C++ 6.0 and also in Microsoft Visual Studio 2005. But as per "The C++ Programming Language" there is no keyword...
[4 replies] Last: I have not read it but I clocked this the other day: Implementing ... (by closed account z05DSL3A)
float to string
 
I am working on a project for a class, and I was just wondering if there is a function for converting a float to a string, and vice versa.
[6 replies] Last: Ya, too bad. float f = boost::lexical_cast<float>( "3.14" ); ... (by jsmith)
by Disch
Unicode filenames/strings
 
I'm looking to be unicode friendly. Really, the only real time I'll need to deal with strings is for file names. On-screen text printing is handled seperately...
[10 replies] Last: Valid points all around. Perhaps my dream of a perfect world where te... (by Disch)
[SOLVED]Template Linker error - seperate files.
 
I'm getting this error 1>main.obj : error LNK2019: unresolved external symbol "void __cdecl BlitArrayToConsole<struct _CHAR_INFO>(struct _CHAR_INFO (&) )" (??...
[2 replies] Last: Awesome I'll give that a try - I haven't used templates to much so the... (by Mythios)
declaring const array trouble...
 
Heres my problem: I have a function to generate an array of prime numbers called genprime(), which returns an array of prime numbers. The first problem i...
[4 replies] Last: platypus1130's requirement was: How would I go about making the ar... (by Skorj)
#if #endif directives
 
1) Does an #if directive always preceeds a constant expression with a condition? If so, based on the condition, it executes the code upto #endif. Eg: int a...
[11 replies] Last: I'm sorry, disregard my mindless blabble above... It would be handy f... (by seymore15074)
by Zlug
using the string class inside anther class
 
Hello all, I'm getting quite frustrated with this. I'm trying to create an instance of a string class inside my original class. It keeps giving me this error:...
[5 replies] Last: You can also specify #include <string> using std::string; In... (by Skorj)
Problem with getline
 
This program is for counting words in a string. It would work fine if I could get the second getline function inside of my while loop. For some reason it skips ...
[5 replies] Last: Glad you solved it :) I agree it's a lot work for something quit si... (by Scipio)
Problem with sscanf
 
Halo, I am facing a problem with sscanf function which my program will crash when executing the sscanf function. Following are the code: uint8* Inpu...
[1 reply] : sscanf assumes the variables you pass are at least of size int (either... (by Disch)
February 2009 Pages: 123... 14
  Archived months: [jan2009] [mar2009]

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