General C++ Programming (Page 43)

Stack.h and Stack.cpp
Hi i am really struggling with this assignment and am not really sure how to begin. so we have to cr...
[15 replies] Last: That code is fine. Just remove the inline keyword and move the code f... (by kbw)
Can't figure out what to do with this code
I have to write this card game, SCAT or 51, using pointers and structs. I have to read in the deck f...
[1 reply] : What exactly is the first thing that's not working properly? (by kemort)
Why is read() not blocking or why is write() sending blanks?
**This is for HW** A little background on my project. I am writing a client/server program. My clien...
[no replies]
Header file list so ugly
When loading external map files the tilemap class loads each object from a string in a ObjectFactory...
[10 replies] Last: Bump. Even after reading many articles on Composition/Entity design I... (by James2250)
by Chubby
I need on making a make file
I am try to make a makefile. but didnt work i type touch makefile ---> makefile create ----> in th...
[1 reply] : I don't think you can start each line with 3 spaces like you have. (by Peter87)
Does this have a mem leak?
This is some quick code I wrote for demonstrative purpose...Not for efficiency or anything like that...
[2 replies] Last: cool thanks haha crazy mem leak there! Im new to creating an array of ... (by novellof)
HELP! generating number and high or low game.
•Menu driven system to play 1 of two guessing games or exit the game all together. •In the 1st ...
[3 replies] Last: you need to start us with something to work with... And not "Hello Wor... (by jasonwynn10)
help with this
Write a program which stores 10 decimal numbers in an array. For these numbers accept input from th...
[1 reply] : No need to double post :) (by wildblue)
How to write a student grade book
HI! Im having trouble trying to figure out how to write a program that can calculate just one studen...
[2 replies] Last: are you going to show any actual code? (by jasonwynn10)
dynamically allocate memory to struct
et me start by saying I know this is a funky way to program, but my teacher is requiring us to go ab...
[1 reply] : while(fin.good()) { for(deckPointer=&deckHome ;deckPointer<&deckHome ... (by MiiNiPaa)
by Chubby
Counting Word
a program to count the number of occurrences of words in a passage. The program will read white-...
[no replies]
by jasmcf
setw issue, how to go about it?
I am trying to set the width of the data values which the user will input when using the program but...
[2 replies] Last: I think you are using setw properly, but you are printing garbage. Q1... (by doug4)
What is the complexity of my vowel_remove in string? Is there any faster way?
This is a simple code that removes vowel. What is the complexity of my code (Big-O) and is there a b...
[1 reply] : What is the complexity of my code (Big-O) Linear: O(n) there a bet... (by MiiNiPaa)
by docawk
1e9 vs 1e-9
In the context of rounding to the ninth digit, I found operating with values 1e9 or 1e-9 to return d...
[6 replies] Last: For completeness: double cc=1/1e-9; // cc 999999999.99999988 ... (by docawk)
Compound interest formula coding
Im having problems coding this A = P(1 + r/n)nt //Declared test cases float principal =...
[1 reply] : You don't need A = ... again when calculating the interest. ... (by liuyang)
by Chubby
Counting the word
I dont know if this a right place to ask but anyway here you go: I am trying count all occurrence...
[15 replies] Last: First of all, write a short function to read whole content of a file ... (by liuyang)
Help Converting Base to Base
'm trying to convert any number system up to base 16 to another base system. Both bases are given by...
[2 replies] Last: 1. This stuff isn't doing what you think. if(std =a||A) std =1... (by kbw)
Vector help: Multiple bullets acting as one
I'm trying to make a 2d shooter with SDL and I got as far as having multiple bullets but they act as...
[1 reply] : Try not erase items in a vector in 'for' loop. (by liuyang)
std::function as class member?
Is it possible to use a functor like std::function<T* (Args&& ... args)> as class member? I've seen ...
[9 replies] Last: Thanks for the great explanation! I think I got it now and see I've to... (by hellhound)
access violation?????
# include <iostream> # include "graph1.h" using namespace std; void getData(int* no_rects)...
[1 reply] : try this int** getXCoords(int no_rects); int** getYCoords(int no_rect... (by novellof)
Pages: 1... 4142434445... 66
  Archived months: [aug2014]

Cannot post in this page. To post a new message, go to the first page.