General C++ Programming - September 2014 (Page 6)

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)
cout << &var; to binary??
 
How can I output the address of a variable in binary? #include <iostream> #include <sstream> #inc...
[2 replies] Last: SOLUTION IS HERE http://www.cplusplus.com/forum/beginner/143174/... (by novellof)
Want to create a game (correctly).
 
I'm learning C++ on my own and taking a class at my university for C. I want to create one of two ga...
[3 replies] Last: The problem with starting on either of those two projects are you'll w... (by Krisando)
How to find Min,Max, and Avg without arrays in program.
 
This program does everything i want except for one major problem and one small one. 1. The program ...
[1 reply] : Hi, One immediate thing I can see: Get rid of line 2 - std::count ... (by TheIdeasMan)
by rezora
Invoke a template function?
 
Hello, I wrote out this coding to deal with template functions, but how would I invoke the function ...
[2 replies] Last: I'm sorry for not being clear haha but I was also being stupid ive man... (by rezora)
Help with using a class in C++
 
Hello, I"m new here and trying to do well in a class I am taking. I just finished writing code for a...
[5 replies] Last: By denormal's "last comment", do you mean his last paragraph? I think ... (by TwilightSpectre)
by sebz92
doubly linked list - delete function HELP!
 
Hello! i am creating a doubly linked list that will store strings, for example: one two three ...
[3 replies] Last: As long as you make a new function for that. (by helios)
C++ Submenu help
 
I fixed it and now I have a new question. My second issue is that all the functions except the ad...
[2 replies] Last: Let's start with your Add() function. First you need to be sure the fi... (by jlb)
Help with Error
 
So I am working on an assignment and it works for the most part but at the end I get an error messag...
[2 replies] Last: Lines 8 and 17: You allocate bufferSize characters. Lines 9 and 18... (by AbstractionAnon)
How would you go about creating an exact age calculator (1,2,3,4)
 
I've been wondering this, since there is so many things which needs to be taken care of. I created o...
[63 replies] Last: Still need help. (by Slashdash)
Help with redesign, please.
 
Using the proxy pattern was JLBorges' recommendation for a specific need in my program, and it has b...
[12 replies] Last: > Which design is better? I do not have a complete understanding of t... (by JLBorges)
by vidos
dynamic array
 
i am having trouble with this im not sure what to do. this project is past due so i get no credit ...
[no replies]
by judo11
My program won't run in Dev C++.
 
This program runs very well in Visual C++ and I also want to run this program in Dev C++. How can I ...
[5 replies] Last: Another option, since the compiler you're using may not support C++11,... (by jlb)
September 2014 Pages: 1... 45678... 28
  Archived months: [aug2014] [oct2014]

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