General C++ Programming - January 2012 (Page 18)

C++ Question
 
I need to write a C++ code that take an input number, divide that number by 2, print out the result, divide that result by 2, print out the new result, ...keep ...
[13 replies] Last: somehow it makes sense to me. i want to sent you my cpp code, but i do... (by azuresapphic88)
problem :
 
write a program to calculate commission for a salesman.the commission is calculated according to following rates: sales commission rate 30001 ...
[2 replies] Last: const double TAX_15 = 0.15; const double TAX_10 = 0.1; const doubl... (by poolet21)
Using sizeof()
 
Hi all, I have a question regarding usage of sizeof(). I have a binary file consisting of an unknown number of "tasks"(task is a struct that is defined by me...
[2 replies] Last: Got it, thanks! (by nobrainer)
HELP URGENT
 
i have to do something in my program that would take the values of int n and chech wich ones are equal to int achaven and would take the value of y and check...
[no replies]
hi...i want 2 noe d format of the program
 
write a c++ program which displays the pattern given below: * ** *** **** *****
[1 reply] : If you search this site you will find this question asked 100 times al... (by Peter87)
how to locate glibc errors
 
hi, In my application, I load a mesh and a scalar function, and do some processing on it. When all that processing is done, I use QGLViewer to display the mesh...
[1 reply] : This is the stack when I interrupt the debugger after getting the afor... (by bhatiaharsh)
Dynamic Programming
 
Does anyone have a decent link to some tutorials on dynamic programming? I have been looking for a while and what I have found so far is not that great. Looking...
[2 replies] Last: That'll do it. Thanks. (by jpphelan)
help with a Galaga remake using SDL
 
My problem seems to be that my program crashes during if( keys ) {theBullets.BulletFired(bVY, bVX, bX, bY, getLocation, onScreen);} inside of main....
[4 replies] Last: I am a silly, silly programmer. I wasn't utilizing private data membe... (by Technocity)
Need an advice about how to develop a derivatives solver
 
Hi, I'm not a C++ expert, but I was given the assignment of developing a C++ derivatives solver... I really have no idea about how to start... so I'd like y...
[7 replies] Last: LL means the parser parse L eft to right and construct the tree by L... (by aquaz)
Simple application.
 
I am trying to build the application http://www.tenouk.com/ModuleM.html Not sure where to start any help would be great. Error 4 error C2065: 'USER_INFO_1...
[no replies]
[Discussion] Quantum computers.
 
What do you guys think about these? Will these completely change C++ and future binary languages? Also, brute force software and hacking would be a breeze with ...
[4 replies] Last: Gaminic, the real explanation involves quantum physics so it is a bit ... (by Peter87)
no match for 'operator==' in 'subexpresionesparentesis[2] == '*'
 
#include <iostream> #include <string.h> using namespace std; int main() { string expresion; unsigned int i, k=1; string subexpresio...
[2 replies] Last: ty gaminic, i love you. (by danoc93)
Special case for new
 
Hey guys, at the moment im programming some kind of my own memory smartpointer management system. Im at this point where i dont know if i can build my design wi...
[8 replies] Last: Thanks for your help guys, i kinda needed something like placement new... (by RobertK)
what is wrong with the code of this program?
 
for the master c + +. I want to ask? what's wrong with this program listing? ... please help me ... This program tree ... #include <stdio.h> #include <coni...
[3 replies] Last: [quote=I]As for the problem, post the errors that you got (by hamsterman)
Debug assertion fail; line 256
 
Hi, I'm a beginner c++ programmer and I tried to make a game, but there's one error that keeps popping up. Debug Assertion Failed! <...> line 256. I thin...
[9 replies] Last: Thanks a lot :) (by Mindaugas Steponavicius)
by Tresky
Final Fantasy
 
I have recently begun playing the original Final Fantasy for the GBA and it has me wondering about how they render that stuff and make objects interact. Do ...
[15 replies] Last: I'm not really knowledgable about this topic but from what I've heard ... (by Noob1337)
Exercise 4.1.2 (C++ without fear)
 
Exercise 4.1.2. Write a function named print_out that prints all the whole numbers from 1 to N. Test the function by placing it in a program that passes a numb...
[7 replies] Last: Thank you soo much! That was the most helpfull response I've gotten ye... (by Noob1337)
Vectors error code C2664
 
Hi All, I am trying to get my program running. I have pasted the code below #include <sstream> #include <fstream> #include <vector> #include <iterator>...
[2 replies] Last: Some of us don't actually use Visual Studio so you can inform us what ... (by eypros)
Having Variables in Identifiers
 
How do I put variables (in this case, x) into identifiers (such as ArmoryLocker*, where * is a predetermined number)? I have underlined all the variables a...
[7 replies] Last: You wouldn't even need int Item_Types or the 10th 0 in the array, fr... (by Sytherous)
fluctuating results in basic algorithm
 
Hey all. I wrote a piece of code that is used to calculate the time of usage remaining, based on a systems current battery percentage (similar to a phone). ...
[10 replies] Last: There is no easy fix. I guess I will just modify my equations and inco... (by dirtyfishtank)
January 2012 Pages: 1... 1617181920... 36
  Archived months: [dec2011] [feb2012]

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