Beginners (Page 66)

Insert Element in Vector for Every certain element
 
I want to add a element such as a space "" inside a vector<string> myvector. For example: my...
[4 replies] Last: I was wondering if there is something like this for(size_t i= 1; i<d... (by sadij97)
A quick question about if/else
 
I need help with the following problem. I normally would just type a conditional expression like it ...
[5 replies] Last: "nested statements" means having statements inside of statements (by PBachmann)
"system cannot find the file specified"
 
I have a Mac running VMware Fusion windows 7 Virtual Machine so that I can write my code in Visual S...
[no replies]
by Areks
Adjusting the value of one object in a vector based off of the value of another object in a different vector...
 
So I've got one vector with all my citizens and another vector with all my cities. What I would li...
[no replies]
by sg1997
Help with using SDL platform on C++ Error ?
 
Hello! I'd really appreciate if someone could help me. Im using SDL for the first time and I do not ...
[1 reply] : Disable the precompiled header option in Project Options. (by Moschops)
Project: Need help with calling by reference
 
Hi, I am referencing someone's code given I have a similar project coming up. How would I go about d...
[1 reply] : The options are to use by value and by reference. There is also return... (by keskiverto)
Removing and counting vowel, C++
 
->Hello, my program is to get user input and print their sentence into a non vowel sentence while sh...
[4 replies] Last: No worries, I really do mind if you use my code. I'll be more than hap... (by capscore)
Multiply diagonals of 2D array
 
Write a program in C++ that stores the following elements in a two dimensional array and prints out...
[2 replies] Last: You've got most of the code for the upper left to lower right diagonal... (by AbstractionAnon)
passing by reference
 
hi guys,how come when passing &x I get an error I thought that since I specified I would be passing ...
[7 replies] Last: You're welcome! (by MikeyBoy)
unexpected output
 
Hi people,I'm getting an unexpected output when I call this program just for example I add 200 to th...
[2 replies] Last: that's strange maybe it's my codeblocks? or something because for some... (by adam2016)
displaying data in arrays
 
If asked to display data column by column and row by row using a while statement in the outer loops ...
[9 replies] Last: Chervil I understand the necessity of constants in this example. The... (by Billyin4C)
Writing User Input to binary file.
 
Hello everyone, I've been trying to do this for a while now and I'm just not getting where I'm going...
[10 replies] Last: The issue now is that it overwrites the data already inside the fil... (by Chervil)
by Ocen
do while loop won't stop for input after first loop
 
Hi, I am trying to write a program that converts a postfix expression to infix. It works just fine ...
[3 replies] Last: Awesome. Thank you so much for the great responses; clearing the buff... (by Ocen)
Exit code with no corresponding return statement
 
I have a program that, when run with the same parameters, will sometimes complete its task successfu...
[4 replies] Last: Alright, will do. Thank you (by DrZoidberg)
setting up an array of different unordered_maps
 
I'm attempting to build an array with two elements. The first: std::unordered_map<std::string...
[4 replies] Last: 1. Can I use this forum for this discussion? What discussion? 2. Is... (by coder777)
Using OpenBLAS libraries in Code::Blocks
 
I've downloaded the pre-built OpenBLAS libraries for Windows and have followed all the steps here: ...
[1 reply] : and have followed all the steps here: Those steps are for another li... (by coder777)
by lang02
Nested For Loop Pattern
 
I've searched and have only found diamond patterns or box patterns with an asterisk. I need to ma...
[5 replies] Last: The problem with "clever" is (as the below probably shows) that it is ... (by keskiverto)
Help with averaging and conditions.
 
Hello there,i am having a bit of trouble here, i am making a program that will average 3 test scores...
[2 replies] Last: IT would be better to make a function that prompts for a number inside... (by dhayden)
Need help with function prototype and parameters
 
Can you tell me why the function test(int,int=2,int=2)(line4) is match with test(third,second)(line1...
[2 replies] Last: third u have given the default parameter it means if u want to deal wi... (by sylphsang)
function to create pointers to objects stored in a vector?
 
I am currently writing a program involving complex numbers (converting between rectangular and polar...
[3 replies] Last: Thank you very much for your help, I have managed to get my program wo... (by toasterstoast1)
Pages: 1... 6465666768... 90
  Archived months: [feb2016]

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