General C++ Programming - February 2012 (Page 37)

by Bob M
How to get filesize in 2012?
 
I wrote some Borland C++ 3.1 programs about 20 years ago. I recently discovered a virtual DOS called "DOSBox 0.74" which allows me to run these programs on a ...
[19 replies] Last: I thought I should include a screenshot of the program I recently revi... (by Bob M)
Decimal Error
 
Whenever I use decimals in my code, it doesn't work. Is it perhaps the IDE I'm running it on? Or perhaps is it because I'm on a Mac? I'm running it on Code::...
[3 replies] Last: you need a float rather than an int, it will just round to the nearest... (by tiberiushodgerius)
How many recursive calls
 
How would I know how many recursive calls were needed to solve a given base and exponent in the following program? Could I just add a "counter++" inside the pow...
[3 replies] Last: Are you trying to count how many times the function powers is called, ... (by Moschops)
Graphics Causing Problems
 
I was using a function which I made for printing a message on screen, it works fine everywhere except one function. The Function which is displaying a message i...
[9 replies] Last: Everywhere. To lose the number of useless lines. If I have time, I cou... (by jumper007)
by h9uest
Iterator::begin(): what happens when there's nothing in the container?
 
Hi: Question background: I'm trying to implement a simple template hash map. I get stuck on implementation of iterator. To be specific about "getting stu...
[1 reply] : If the container is empty begin() should return the same as end(). Th... (by Peter87)
Get the first day of every month.
 
Hi All, I need to write a code where i get the first date of every month and display those values.I would like to know how to proceed in order to achieve th...
[10 replies] Last: Hello Hamsterman, Thanks a lot.It helped me a lot.One more t... (by sita kalidindi)
sqlite3 and C++
 
Any easy site on making an SQL database using C++. :| don't even know what I am asking for. Just know somehow have to do an assignment using sqlite3 and C...
[1 reply] : Here: http://www.sqlite.org/docs.html (by Athar)
by LB
How does creating a reference to an rvalue work?
 
#include <iostream> struct Test { int data; Test() : data(0) { std::cout << "Default" << std::endl; } Test(const Test &from) : data(from.data) { std:...
[6 replies] Last: I don't think that rvalue reference would make a difference here. All ... (by Peter87)
Question! (no need to hurry)
 
You don't need to hurry answering me. I just need to ask if there is any possibility to make a Windows Program using MinGW Developer Studio, and NOT Microsoft V...
[6 replies] Last: No problem, I'm glad I could help and that my issue is solved. Topic ... (by jumper007)
find identifiers' values for logic expression
 
Given a expression, such as p | !q, how to find the p,q (i.e. p=1, q=1)to make the expression true? Any help is appreciated.
[1 reply] : The problem can be solved recursively. A|B is true when A is true and ... (by hamsterman)
what is "multiple activations of a function"
 
i read the book <Press.Memory.as.a.Programming.Concept.in.C.and.C++> chapter 5 say: A function call can be implemented in various ways, depending on the strat...
[2 replies] Last: > If a static allocation is used (in Fortran, e.g.) AFAIK, this (stat... (by JLBorges)
Notepad program
 
Is there any way to create a console notepad program in c++? I tried creating a string, like note1, and I would do this: cout << "What would you like to do?"...
[4 replies] Last: I am a slight bit confused. From what I'm getting, you are trying to r... (by Twist177)
Need help thinking of algorithm
 
How could I create a function that takes in an int and counts how many ways that number can be added up? For example, the number 3 would have the following as p...
[1 reply] : This is known as partition; http://en.wikipedia.org/wiki/Partition_(n... (by Moschops)
Help w/ shortest path problem?
 
Hi All, I'm not a student, nor an experienced programmer (Basically i've read and done the stuff in the cplusplus tutorials), and would like to program somet...
[no replies]
problem with pointers and functions
 
I have written this small program and I executed it. But there is something weird happening. When I run the following program, the program prints a random value...
[3 replies] Last: Why would it do that when i does not exist anymore? The memory stil... (by Moschops)
by Cole99
2d Game Help
 
How do I even start??? If someone can help me get started, thank you. If you add me on Skype, we can IM and chatting will be easier. Not a call, but just typing...
[3 replies] Last: You can use allegro. Its a 2d game library for c++. Cross platform, ca... (by tolga gerekci)
by Cole99
Help for a Beginner!
 
I use Code::Blocks to code my apps. Every program is in that little black screen thing. How do I make it in a screen like professional programs? Nothing crazy b...
[6 replies] Last: Pick one suitable for your operating system and needs. Ideally one wit... (by Moschops)
by Gldnbr
Starting out Win32 API
 
#include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MessageBox(NULL, "Goodbye...
[4 replies] Last: Ah, okay thanks :) (by Gldnbr)
by barbis
2D int array
 
Hello! I have a function, which needs input as func(int tetras ); Now i can not seem to figure out how to properly declare this input. I have in...
[3 replies] Last: Thanks! That one did the trick! (by barbis)
Drawing Polygon help - "Wrap around"
 
Lets say i have this array , hello .x hello .y, how can i check the "wrap around" using the modulo operator?
[1 reply] : You are going to have to define what you mean by "wrap around". (by Duthomhas)
February 2012 Pages: 1... 3536373839... 43
  Archived months: [jan2012] [mar2012]

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