
please wait
by bwienand
Trouble with vectors
|
Hello, I'm teaching myself C++ and working through one of Stroustrup's books. I'm currently on the section of vectors, and am trying to write a simple progr... |
Aug 29, 2014 at 5:39pm
[3 replies] Last: Thanks I'll give these a try! (by bwienand)
|
by AllenWalker
How to read from another file
|
Hi guys, I'm currently studying from the book "Accelerated C++" and am stuck in this exercise "Palindromes are words that are spelled the same right to left ... |
Aug 29, 2014 at 4:40pm
[2 replies] Last: Ever think of downloading a dictionary file from the internet? Googl... (by AbstractionAnon)
|
by Stephanie16
Measure elapsed time for Bubble sort algorithm for multiple array sizes N.
|
Why is it outputting 0 as the time elapsed? #include <iostream> #include <time.h> #include <ctime> using namespace std; double BubbleSort(int , int ... |
Aug 29, 2014 at 4:35pm
[1 reply] : Use the more accurate C++11 <chrono> library: http://en.cppreference... (by LB)
|
by r 4 raja
Pls explain this program.. How will executed??
|
Write your question here. #include<iostream.h> #include<conio.h> #include<string.h> class strings { char s ; public: strings() { s ='\0'; } strings(... |
Aug 29, 2014 at 2:55pm
[12 replies] Last: @ Disch : Good catch, I somehow forgot that C doesn't provide overloa... (by Computergeek01)
|
by abdalimran
How to find the common digits in two integer?
|
Suppose I have two integer number 4578 and 5908. Now I have to find the common digits for these two integers. For the integers given above the output should b... |
Aug 29, 2014 at 2:33pm
[3 replies] Last: How many ways there are to do this? How many programmers are there?... (by AbstractionAnon)
|
by BeastlyHex
Toggle feature. (includes SFML)
|
I have tried to make a toggle feature for a options menu. This is so when the user clicks on the sprite for the options menu it will bring it up. But the option... |
Aug 29, 2014 at 11:43am
[no replies]
|
by vernalyn
moving an object.
|
hello i'm here again. just wanna ask. on how to move an object in c++ ? and also how to change a background color in c++ ? tnx. and Godbless:) |
Aug 29, 2014 at 10:46am
[1 reply] : What do you mean by move? And for windows console apps, check: msdn.mi... (by Aceix)
|
by reefa
Sorting random number array into primes
|
Hey guys, new to this site so sorry for anything im not supposed to be doing. I have just started c++ so still really dull with it. I have a assignment to progr... |
Aug 29, 2014 at 10:34am
[5 replies] Last: Managed to find some online chat and solved the mystery. this is the... (by reefa)
|
by ashtonr132
SDL
|
http://lazyfoo.net/tutorials/SDL/01_hello_SDL/windows/codeblocks/index.php i am following this tutorial but the libraries and programs have been updated since ... |
Aug 29, 2014 at 6:26am
[4 replies] Last: Thanks for the information guys, this wasnt so hard to fix. Bugs like ... (by ashtonr132)
|
by jeffrey1289
Code-Blocks problems!
|
Write your question here. I'm a new student to coding and C++ language, and I'm using code-blocks as the school requires to use. I downloaded the mingw version... |
Aug 29, 2014 at 6:23am
[1 reply] : Would you show us the code? Otherwise it kind of sounds like a virus d... (by giblit)
|
by skkwan
Reverse string.
|
I have an idea for reverse string programme, but i don't know how to code it, i hope someone can help teach me and code it. So this is my concept : declare t... |
Aug 29, 2014 at 5:41am
[5 replies] Last: Thanks buddies! (by skkwan)
|
The program got error (Array) |
The output should be like this ARRAY IS NICE TO BE USED & FUN TO PLAY! ARRAY IS NICE TO BE USED & FUN TO PLAY! ! ARRAY IS NICE TO BE USED & FUN TO PLAY ... |
Aug 29, 2014 at 5:15am
[1 reply] : Your current array size is 39 (with null). line 22 should be "NICE" no... (by giblit)
|
by edwarlkd814
How to determine a second has passed since debugging.
|
I have been reading and editing many functions I found online to practice but to me, it is very difficult concept to understand in c++. I made progress to e... |
Aug 29, 2014 at 4:10am
[3 replies] Last: http://www.cplusplus.com/reference/thread/this_thread/sleep_for/ (by ne555)
|
by kni9ht
Trying to reorganize numbers
|
Thanks |
Aug 29, 2014 at 4:01am
[1 reply] : line 33: size should be size/2 line 35: 0 should be size / 2 You shou... (by Yay295)
|
by Dexter 3202
merging and sorting 2d arrays
|
Hi I'm a beginner and I want to make a program that merges and sorts 2d arrays. I have a program, but when I run it the results are messed up #include <iostr... |
Aug 29, 2014 at 1:37am
[4 replies] Last: I don't want it hardcoded (by Dexter 3202)
|
by Mahkus
Loop for input
|
I have a question about input. I'm very new to C++ and I was wondering how to take input from the user until the user use Ctrl-d to stop. It's a very simple que... |
Aug 28, 2014 at 11:05pm
[3 replies] Last: I've been busy all day and I just now got a chance to reply. Thank you... (by Mahkus)
|
by DevTK
Ambiguous calling the function using fstream C++
|
favorite I have a class, class A, with a data member std::fstream file. The class has a constructor that does not initialize the file. I get a comp... |
Aug 28, 2014 at 11:05pm
[3 replies] Last: > I get a compiler error: > std:basic_fstream <_Elem, _Traits> ambiguo... (by ne555)
|
by Ch1156
Vertex array tile sprites (1,2)
|
Ok so I found out that drawing my tiles to the editor was a really bad thing to do because it created too many sprites and textures and draw calls that it made ... |
Aug 28, 2014 at 10:54pm
[39 replies] Last: check your PM (by Disch)
|
by bwienand
Loop issue/question
|
Hello, I've been trying to learn using one of Stroustrup's books, and I'm running into an issue on one of the exercises. It asks to use a loop to write out a t... |
Aug 28, 2014 at 10:19pm
[6 replies] Last: Instead of a b variable you could just do (int)a or static_cast<i... (by giblit)
|
by hellworld136
Basic c++ math question
|
I'm doing a practice problem that gives me a function header, and a function and expects me to write the code. I'm given(assume lowestTerms is given): void ... |
Aug 28, 2014 at 7:08pm
[9 replies] Last: How about od = ld*rd; , might that be better? (by Chervil)
|