
please wait
by SVcpp
Help with code?`
|
Hello, I guess I'm not as savvy with while loops as I thought. I know that I have to declare a value outside of the scope to have the loop run. I just don't... |
Aug 4, 2014 at 9:45pm
[2 replies] Last: Thanks! I figured it out a little later with help, but this helps too!... (by SVcpp)
|
by lilmula01
I'm a beginner but I need help bad!
|
Hey guys. I'm quite the beginner at C++. This question has been bugging me for hours and I CAN'T SEEM TO GET IT DOWN. Please help me! This is what I've been wor... |
Aug 4, 2014 at 9:43pm
[5 replies] Last: I finally just decided just to delete everything except the bool and i... (by lilmula01)
|
by vadkortefa
Looping through files
|
Hello, I'm trying to run several files through a simulation, where each file name has letters and numbers in them. Suppose I have four files, one1.dat, one2.... |
Aug 4, 2014 at 8:52pm
[5 replies] Last: Thank you very much, this is exactly what I needed! (by vadkortefa)
|
by ej711
Checking if 3 Variables are Equal
|
I need help with a program I am making. The user inputs the values to 3 variables. I need the loop to stop when the variables are equal. I tried putting: ... |
Aug 4, 2014 at 8:49pm
[13 replies] Last: while(variable1 != variable2 || variable2 != variable3) { //get ... (by giblit)
|
by JohnMorris
Switch within a switch called from a function
|
As the title is referencing is I want to setup functions to call at certain point within the code. For example if I set up four functions fn1, fn2 fn3, fn4 can ... |
Aug 4, 2014 at 7:59pm
[14 replies] Last: How does this behave? #include <iostream> void showMenu() { std::cou... (by keskiverto)
|
by xx1182
SDL and renderers
|
Oke. I'm starting using SDL, and i need an optimized img loading function. Currently in the new SDL2 there are Renderers, and i'm using the corrisppetivly libra... |
Aug 4, 2014 at 7:32pm
[3 replies] Last: I guess SDL.h contains a forward declaration of SDL_Texture without a ... (by Peter87)
|
by Oboko
How to share cross-platform program using Boost libraries
|
Hi, I've written a very small, supposedly portable, http server that runs as a daemon using Boost.Asio, developed in Xcode on mac. I've used the IDE build op... |
Aug 4, 2014 at 7:23pm
[1 reply] : Well first off, you need to decide how you want to link to Boost. You ... (by ResidentBiscuit)
|
by ianElliott
yet another primary-expression compiler error
|
Could someone help me with this primary expression compiler error? proj7.cpp:52: error: expected primary-expression before ';' token admiral% vi proj7.cpp ... |
Aug 4, 2014 at 6:32pm
[2 replies] Last: Okay, awesome. That did the trick for now, thanks. I figured it was so... (by ianElliott)
|
by Pter0dactyl
%d vs %s
|
I declared a character array and at the time of taking input I used %d instead of %s in function scanf. Isnt my compiler suppose to flash an error for this? Or ... |
Aug 4, 2014 at 5:18pm
[2 replies] Last: GCC will warn you if you use the -Wformat flag (included by -Wall). h... (by Peter87)
|
by ci one
storing one item in two different vectors
|
It seems it's not possible to store the same item in *two* different vectors, right? The way I tested this was pushing the item to vector1, then to vector2, ... |
Aug 4, 2014 at 5:03pm
[10 replies] Last: Thanks, makes sense. I think the double asterisk signature is certainl... (by ci one)
|
by danzal
i cant open text file
|
im unable to open my text file #include <iostream> #include <fstream> #include <iomanip> using namespace std; int main() { char u; int id, yrs,... |
Aug 4, 2014 at 4:58pm
[3 replies] Last: why is my output like that You just need an endl in your cout s... (by Chervil)
|
by Ozwurld
Help Simplify the following for loop
|
Hello all, I've been given an excersize to simplify the following forloop but i think its already simplified, what are your thought, is there anything more i ca... |
Aug 4, 2014 at 4:38pm
[6 replies] Last: Instead of for( int j = 2 you could put for( int j = 0 That requi... (by Chervil)
|
by beckfordcub5
changing numbers to upper case letters
|
Hi, I was wondering how I would change the numbers 0-9 to the upper case letters A-J. I dont want to have to write a switch statement or an if else for each num... |
Aug 4, 2014 at 3:33pm
[4 replies] Last: Hint: For These Type of Programs always make use of the ASCII Table :... (by Disch)
|
by Deviouscola
Efficiency Question
|
I'm working with what is essentially an excel file, in the sense that it has rows and a defined number of columns. I am currently holding each column in separat... |
Aug 4, 2014 at 3:16pm
[1 reply] : I will also be going through a pointer to accesses fields for compari... (by AbstractionAnon)
|
by beckfordcub5
output largest negative number
|
Hi , I was wondering how to write this program: Input double numbers until sentinel value of 0. Output largest negative #, if theres no negative number it w... |
Aug 4, 2014 at 11:02am
[3 replies] Last: As giblit has said, it's as simple as that. (by guteyuro)
|
by Rashad2
Algorithms
|
Hi guys. Im wondering if there is a place were i can practice reading off algorithms that show steps on how to write a program and the programmer writes it. I w... |
Aug 4, 2014 at 10:10am
[2 replies] Last: you can try Algorthms in C by robert Sedgewick https://www.google.cm/u... (by shadowCODE)
|
by sanann
pointers using boost::ublas::matrix
|
Hello, Using boost matrix, implemented matrices to generate 2 sets of low pass and high pass filters. these wwere implemented as a function. now i need an the ... |
Aug 4, 2014 at 9:25am
[no replies]
|
by maiden
Program exits if non-integer is entered
|
How to make this program prevent from terminating after entering non-integer such as "letters",? #include <iostream> #include <stdlib.h> #include <time.... |
Aug 4, 2014 at 9:19am
[7 replies] Last: Yes, by program logic. "123" is one input. "+" is the next input. Writ... (by keskiverto)
|
by Nikko YL
(algorithm) transform every element and append to the same container
|
I have a vector with 3 string elements {"zero", "one", "two"} . What I'm trying to do is to "repeat" every element and append to the back of the vector. So the... |
Aug 4, 2014 at 9:15am
[6 replies] Last: Thank you. I have learnt a lot from your reply. (by Nikko YL)
|
by ppoy123
HELP ME! C++ EXAM
|
1) Make a program that will determine whether the given number is even or not. Sample Output Input a number: 2 2 is an even number 3 is not an even number ... |
Aug 4, 2014 at 9:06am
[5 replies] Last: Oh and by the way the modulus operator is the same as c = round(a/b) ... (by giblit)
|