Beginners - July 2016 (Page 24)

Resume a solution
 
Hi, I have a time dependent problem which needs to be solved. I need to solve my model for different...
[3 replies] Last: Maybe save the state of the machine/program at the particular intermed... (by closed account 48T7M4Gy)
How to adapt to read a file in different formats?
 
Hello, I am in a mess I wouldn't know what to do if I were to retrieve data from a file in differ...
[1 reply] : If the first field (name) does not contain embedded commas or white sp... (by JLBorges)
2arrays & Structures
 
Expect the following to print values of the 2D array #include <iostream> using namespace ...
[9 replies] Last: The above approaches seems complicated for me, but thanks anyways (by Ehit Karim)
Project Euler, problem 21
 
I'm trying to solve problem 21 from Project Euler site, I think that I don't have any mistakes, but ...
[16 replies] Last: Woah, I noticed this : Amicable found (284 - 220) Amicable found (22... (by Naughty Albatross)
Function determining distance object falls with time given as argument
 
Good evening guys. I'm working through this problem and feel like I've exhausted my resources. T...
[5 replies] Last: Cheers, no pills required - just experiment and practice :) PS There'... (by closed account 48T7M4Gy)
by WhatIf
c++ binary files
 
Hi, I have been searching online for examples on how to write binary files in c++ but the only exam...
[7 replies] Last: > Does that mean that the null-character ('\0') is written to disk? Ve... (by Naughty Albatross)
Random Number Generation
 
Okay, so lets assume im using a simple number generator such as : int ranNum; srand (time(0)); r...
[8 replies] Last: Anyway, it is not needed. Not now... It never was. I couldn't have... (by Yawzheek)
Finding Actual STL/Legacy Code
 
I suspect the title may not be perfectly clear, but I mean to ask if it's possible to find the actua...
[8 replies] Last: I'm not even going to lie to you, for some stupid reason I thought str... (by Yawzheek)
CSV importing and storing in vectors as ints and floats
 
I have a csv file in the format of: col1, col2, col3 54647, 656, 656 65654, 536, 656 65656, 656, 65...
[6 replies] Last: Thank you! (by BMW330i)
Operator Overloading
 
Hi guys, I have a problem. Maybe someone can help me. In the first example I tried to overloading op...
[4 replies] Last: Yes, you are right. Thanks a lot for your help. You are a good man :D (by Dezibil Ad)
Function with parameters (1,2)
 
Values arent passing correctly #include <iostream> #include <iomanip> using namespace std;...
[20 replies] Last: If you don't need switch yes you can use if : while (item != 8) { ... (by Naughty Albatross)
by Kaisky
pointer to object, but object gets lost...
 
Hi! So in the following code i have a class, 'Box', that saves a integer 'value'. Then i run a funct...
[5 replies] Last: So i always have to create an empty constructor Box::Box() {} as well... (by AbstractionAnon)
Help for beginner
 
Why is this making the program crash? #include <iostream> using namespace std; int main() {int...
[3 replies] Last: ah yeah, I am dumb. Thanks :) (by Kostadin)
Number range switch statement
 
Hey guys, I just started c++ after doing a few years in python and java. I thought I'd give c++ a ch...
[12 replies] Last: Keep up the good work :) (by closed account 48T7M4Gy)
coloring a single word in a text
 
how do i color a single word in a text? lets say if i have the text: "hello i'm Bob" i want to col...
[6 replies] Last: thanks everyone for help i have done what i needed without coloring by... (by globaltourist)
Beginner questions about overloading + operator
 
This is from Ivor Horton's Beginning Visual C++ 2013: It gives an example of overloading + operator...
[2 replies] Last: 1) No. Copy elision (Return Value Optimization), creates a single in... (by AbstractionAnon)
by Carat1
help with getmodulehandle
 
I need help adding an address to GetModuleHandle. I'm using GetModuleHandle to get the module addres...
[2 replies] Last: i found a video that can help me http://m.youtube.com/watch?v=imgEgeoY... (by Carat1)
round() problem
 
Hi there I want to solve this problem mealprice=12.00 tip=20 tax=8 they're given as input I sh...
[3 replies] Last: You are very welcome. :) (by Thomas1965)
by Lodi
c++ 2D dynamic array defaulting to size 4
 
Hi. Below is my c++ code. I am trying to create a 2D dynamic array which is created with the correct...
[4 replies] Last: Thank you Peter87 and kemort, works perfectly now. The example also ma... (by Lodi)
by hrxs1
while(cin) does'nt react to keyboard input
 
Hello everyone, I am currently working with Stroustrup's Book "Programming Principles & Practice Usi...
[9 replies] Last: Glad to hear :) (by Naughty Albatross)
July 2016 Pages: 1... 2223242526... 30
  Archived months: [jun2016] [aug2016]

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