General C++ Programming (Page 9)

HELP! While loop?
 
Hello everybody, this is my first post of probably many to come. I'm currently taking a basic C++ c...
[2 replies] Last: The cin.get() is not necessary but the code MUST incorporate a while l... (by Leonhart)
mingw32 and SDL2
 
Im having troubles with having my makefile compile my project. Normal make just builds the libary ...
[8 replies] Last: Problems like this are annoying... (by Gamer2015)
by yj1214
How do I create dll and lib files with g++?
 
I have few questions about dll and lib. First questions is, what are they anyway? Second que...
[1 reply] : Read this: http://en.wikipedia.org/wiki/Dynamic-link_library http://w... (by coder777)
What does void mean?
 
Hi Everyone! I sort of understand how to write functions however, I'm having trouble understanding ...
[2 replies] Last: void in first function, it means it has no parameter. void in last f... (by Lorence30)
Recursion
 
Having trouble understanding when the function recursivePrintStars calls itself again but this time ...
[1 reply] : The easy way to understand this is to use it. Just write: int main()... (by ats15)
Practice using file I/O
 
Write a C++ code to –Read two test scores from input_file.txt –compute the average of the scor...
[1 reply] : Please use code tags (the button with <> on the left). It will make th... (by ats15)
Help I'm new to C++ and I can't figure this out
 
I have an assignment due and was never taught this, I read through the textbook at least 6 times and...
[1 reply] : You need to write the content of the getCylinderVolume function. I am ... (by ats15)
Complicated Project, procedural generation
 
I am trying to make a random generator for building interiors, but, not the standard rogue-like stuf...
[8 replies] Last: Okay, assuming I understand start and end states correctly, The pure ... (by DarkLightHitomi)
Templates Not working
 
For some reason it keeps saying missing ; before template< BTW INLINE is __forceinline. I already t...
[3 replies] Last: #ifndef __DATATYPES__ #define __DATATYPES__ #include <Windows.h> /... (by cmajor28)
Pass by value Example
 
I compiled an ran this example but I can't seem to understand why it prints out a 3 and not a 2 if i...
[3 replies] Last: Ahh I get it. Thanks! (by hazelkiss89)
Dynamically Allocating Array Space
 
I've been trying to understand how to dynamically allocate array space in my free time and I've star...
[no replies]
Please help I'm confused on what to do
 
Write your question here. Write a program that will perform integer addition in any radix from 2 ...
[6 replies] Last: Sure. You have the code to input the base. Now write a function that a... (by dhayden)
by yj1214
A question about variable assignment...
 
In my program, if I assign my variable in same line, my program doesn't work. int foo = myFunc...
[5 replies] Last: this code is from Bucky's tutorial No, it is not. Your copy is not a... (by keskiverto)
by bawer1
(Calculating Statistics -Reading from a Text File) need help!
 
Ok, I have worked on this for approximately 5 hours, and I have not received the output I wanted, no...
[no replies]
Generally speaking, how would you pass a dynamic array in C++?
 
Hello guys. I'm new to both C++ and the forum. I was just wondering how to pass dynamic arrays. For ...
[2 replies] Last: template <typename T> T* passArray(T* array) { ... return arr... (by Smac89)
by Gyiove
delete, delete [] and delete [x] - what does x mean?
 
Hello everyone! Here's the code: char *c = new char ; int a; for( a = 0; a < 100; a++ ) c ...
[2 replies] Last: It is not valid C++ code. It is a Microsoft extension, and I am not su... (by LB)
Can someone explain why this recursive call works?
 
The program prints the permutations of a string. I was wondering why it works just the part where yo...
[3 replies] Last: When I say it doesn't work, I am not trying to imply that the function... (by Smac89)
CircleClass Function
 
I am confused about how to continue with this function. I'm not asking for the code just a bit of di...
[2 replies] Last: Sorry, I wanted to delete the other post but I don't know how or if I ... (by bug2207)
Function Overloading
 
I keep getting the error ") expected". #include<iostream.h> #include<math.h> float area(float...
[1 reply] : main should be int main() rather than void, void is not standard and n... (by ashleybrown2)
String pointers help needed
 
There are these two practice problems I'm stuck on right now: 1. Write a function that prompts th...
[1 reply] : I already did the first one with references. Please, show that code.... (by keskiverto)
Pages: 1... 7891011... 53
  Archived months: [jan2015]

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