General C++ Programming - December 2011 (Page 13)

problem with bool and Arrays combined
 
Hi, Im trying to create Sieve of Eratosthenes to find prime numbers up to some predefined integer n #include <iostream> using namespace std; int main() { ...
[no replies]
Why does this code not work?
 
Problem: keep getting these two error messages and dont know why Error 1 error LNK2005: "class product1 * productss" (?productss@@3PAVproduct1@@A) already de...
[5 replies] Last: I'd say, the only globals you really need to have are the ones that be... (by hamsterman)
how to detect will ofstream use \r symbol on writing
 
I'd like to know will ofstream print "\r" symbol on the end of each line (windows/unix systems is possible). is it possible to say not to use "\r"? It i...
[6 replies] Last: As Cubbi says, you can use >> in binary mode and it will not add \r.... (by Peter87)
Template type is a template
 
Suppose we have a template template <class X> class NestedTemplate { ... }; template <class A, class T> class MainTemplate { ... }; class SampleCl...
[8 replies] Last: Doesn't help. Code. Or run the debugger to see which line causes it. (by Athar)
A Small Help
 
Check out the following code settextstyle(2,0,5); outtextxy(10,40,"Hello"); I want to input a text after giving a space with the same style ..... ...
[11 replies] Last: I googled a little bit and I found this: http://www.cs.colorado.edu/~m... (by coder777)
by nocrej
C++ 2D Game Engine (1,2)
 
Hi guys, I searched all over the internet but couldn't find the information I was looking for. So, now I would like to ask for your opinion. I just wanted t...
[34 replies] Last: I am not sure to understand the real difference between an engine and ... (by Jessy V)
by KB2807
Array to bitmap image
 
how to convert a 40x40 unsigned integer array to a 8 bit per pixel bitmap image in c++ i require the whole code please... thanks
[3 replies] Last: I think no one will give full code example, for _your_ problem. Becau... (by Ivan Sidarau)
ifstream::open load entrie file into memory??
 
Hello forum, I have a question about whether ifstream::open loads the entire contents of the file into memory when it opens it? I am having to create a format ...
[5 replies] Last: The ability to go directly to a line is only really possible if the l... (by Galik)
by Phiru
Can I show UI from Service?
 
I have a project, which perfectly works in Windows XP. However, in windows vista and up, it doesn't work sometimes because of UAC, I guess. So, as my though...
[2 replies] Last: Hi it seems your question are Windows specific. You may getter respons... (by sohguanh)
Scientific output with captial E rather than lowecase e?
 
Hello, I am trying to make a script to open many files that differ only at the end. The files are named the same except for the end where it has a value in sci...
[5 replies] Last: Hi , I am getting runtime error when i try this . string s... (by bluecoder)
making file I/O modifiers persistent
 
I'm writing numeric data to several files. I'd like to set the formatting once, and have it remain in effect until changed. Unfortunately, when I do this: ...
[no replies]
Hourglass in C++
 
Hi all! I want to make an hourglass program, but the problem is i don't know how to do it! I would like it more in C Pls help me!
[10 replies] Last: If found it. Thank you all for the replies :) (by Donanza)
undefined symbol
 
what is an undefined symbol error?
[11 replies] Last: Note that global variables are not a good thing and it's far better to... (by Moschops)
question about memory usage of a program at runtime
 
HI! I have a question about the way a program handles memory during runtime. If I call a function in which I've declared a variable, the system allocates memory...
[6 replies] Last: ok thanks a lot! (by AeonFlux1212)
Rate my Tutorial?
 
This first chapter took about two and a half hours to write, plus some minor editing this morning. I just don't want to complete it, only to find that nobody ev...
[7 replies] Last: Not bad, but there's a few parts where you could improve. I would rec... (by ascii)
by Gldnbr
Reading help
 
I need help reading a line of input in a special way. How do I read a something and split them into 2 different variables? For example: if my input is "$...
[6 replies] Last: You can basically read your input as string and then process it. A rea... (by eypros)
string and array
 
i am trying to loop this three times and get a long string with a space in between. however the program stops whenever i try to key in the third info....why??? ...
[12 replies] Last: OK... i've got the solution =))) should place cin.ignore() before ... (by LEE PEI TING)
help with reading from files : fstream library
 
Hello! I don't know how to read from a file and I have to rewrite my program. I know I have to include the fstream library.Could you help me please with this ...
[4 replies] Last: @hamsterman Yes,it's just a little bit weird.Indeed,it is 5*n. I haven... (by PlusPower)
[Imaging] Textures and shaders
 
Hello everybody (I'm French, escuse me for my mistakes) :), So, I would like to know if you know websites with samples of graphical pipeline source codes ? ^...
[14 replies] Last: Ok :) thanks you for all ;) and good continuation on this website :) (by paladice)
Using contents of a linked list in multiple places
 
Hey guys, I'm having trouble with one aspect of a project I'm working. I'm designing a grade book application that in part lets a user enter in the names of stu...
[2 replies] Last: Peter87, Thanks man, that's exactly what I wanted to do. Logically it... (by wrigley06)
December 2011 Pages: 1... 1112131415... 39
  Archived months: [nov2011] [jan2012]

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