General C++ Programming - October 2011 (Page 31)

by Novos
Quadratics help
 
Hi, i've just started my second year of my physics degree and i have to do a computing module but my tutor is useless so could someone check where ive gone wron...
[1 reply] : you need to make this change to move from advisory text to formula: ... (by buffbill)
Boolean expression
 
I'm studying for a midterm that i have and one of the questions is to make an xor gate using only nots and and gates. I have the diagram but I'm having trouble ...
[2 replies] Last: i know its a serious of 4 nand gates im just not sure how to right it ... (by sorthon123)
Triangle Program in C++
 
Hello Everybody! I need to make 2 triangles and their shape should be : //1st Triangle ***** **** *** ** * //2nd Triangle ***** ..**** ....*** .....
[1 reply] : #include <iostream.h> #include <conio.h> main() { for (int x=0;... (by namcs)
Classes
 
I don't really see how classes make things easier. Let's say I want to make a class for beeps where depending on what numbers the user inputs it makes a beep wi...
[4 replies] Last: Typically most programs (even small ones) have ideas that can be obje... (by sohguanh)
4-bit integer
 
Is it possible to declare a four bit integer with 16 possible values. I know you can create 8-bit using uint8 from stdint.h Does anyone know how to do this? ...
[2 replies] Last: Assume char datatype is 8 bits, then you can make use of that to store... (by sohguanh)
Simple Question.
 
Does programing improve IQ? :D
[6 replies] Last: Personally I don't rate IQ tests much. IQ tests seem to measure variou... (by Galik)
comparing two char arrays not using <string.h>
 
hi this is my first post and thank you for taking a look, my c++ prof. wants to make a code for comparing two char arrays to see if they are exactly the and pri...
[2 replies] Last: thanks a lot it finally worked I did this and it worked perfectly: fo... (by Jampy151)
Shortening compiling time.
 
Hello Cplusplus.com! I am thinking about doing a science project on the effect of different ways of stating code (like a do loop instead of a while loop) on the...
[2 replies] Last: I believe that reducing the size of each header and source module gove... (by closed account zb0S216C)
if-else statement modifier(help!)
 
the code below runs but i dont know how to modify the else-if statement.. the statement.. look at the underlined text below.. the program just proceeds.. if...
[7 replies] Last: Well, as the comment within the loop of my code says, treat the body o... (by closed account zb0S216C)
Lost Data (x-post from Beginners)
 
Hello all- I am a fairly new C/C++ programmer and I am running into a very strange problem. I have a simple nested for loop that is filling a location in memor...
[8 replies] Last: Good catch! That was a pretty silly mistake thank you, it is working n... (by eab2196)
by Netto
STL Stacks
 
This is an homework assignment, but I've spent about 7 hours on it with no solution. I'm only allowed to use 2 stacks and 2 variables, one to hold the length of...
[7 replies] Last: I figured it out haha, thanks for the idea Albatross :] while (size ... (by Netto)
blackjack help
 
its not adding the values correctly, it just shows zero every time. the code is very messy because i did it in a rush, but pelase try ad help. The problem is wi...
[no replies]
Changing Color of Text?
 
I'm using Xcode as a compiler, and I want to figure out how to change the color of the text when I run the program. I've tried #include <windows.h> and I get ...
[10 replies] Last: With graphics, I think my computer is too old. Too outdated... I'm usi... (by Code Assassin)
What About wxWidgets ?
 
I am currently using wxWidgets and I wonder why it is not as known as it should be. So what do you think about it ? Do you even know it ? Some bad experiences ...
[no replies]
Creating extended malloc and free functions
 
Well, I would like to create my own improved malloc and free functions, and replace all the standard memory allocation functions. This for several reasons : ...
[no replies]
Finished my current project, but....eeew
 
The program works from top to bottom, but I am afraid it would make my old CS151 teacher weep endless tears of agony. By this I mean it is highly inefficient. A...
[4 replies] Last: Thank you guys for the options and insights :) and Shacktar - that is... (by omgdogonfire)
Overloading new operator
 
Hello, Why new operator function always have the parameter as follows? I tried to change the parameter and return type to some other type, but it gives a com...
[3 replies] Last: unlike other operators, such as operator +, new and delete do not ove... (by joscollin)
[HELP] Converting unsigned int to char*
 
Hi, i need your help, i need converting unsigned int into char* I have code // Struct Struct char* + class:uint32 ...
[6 replies] Last: char* nameOfs; if(texdef .type == 0) { sprintf(nameO... (by glararan)
system("PAUSE");
 
I've heard that using system("PAUSE"); makes your program vulnerable, and that I should use something else to keep the console open. Why is it bad exactly, a...
[4 replies] Last: Thanks, I will definitely look at these resources! (by bballamis)
Function
 
A guest house charges a N$200.00 minimum fee per room for three days. The guest house charges an additional N$50 per day in excess of three days. The maximum ch...
[1 reply] : Yup, that all looks fine to me. Good luck with it. (by Moschops)
October 2011 Pages: 1... 2930313233... 36
  Archived months: [sep2011] [nov2011]

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