General C++ Programming - June 2017 (Page 4)

Reading .txt file into 2D array
 
I need to read a .txt file as shown below. Might be hard to read, but it is shown as a 5 by 7 table. I need to input all the data from the .txt file into the ar...
[7 replies] Last: Oh, yes that works. Thank you! (by doublemirchi16)
Removing SPECIFIED and not duplicates in Vectors
 
for (unsigned int i = 0; i < CUSTOMER_NAME.size(); i++) { if (CUSTOMER_REMOVE == CUSTOMER_NAME.at(i)) { CUSTOMER_NAME.erase(remove(CUSTOMER_NAME.begin(), C...
[4 replies] Last: The title of your post states you want to remove specified but not dup... (by gunnerfunner)
Crash With Custom Vector Class Using std::strings
 
Hi there! I've been creating my own vector class as a learning experience and also because I wanted something a little more versatile for me than std::vector. ...
[2 replies] Last: Haven't looked at the code; but the problem seems to be: We should not... (by JLBorges)
log in times,time of the eachuser problem for compilate
 
hello everyone i need help with this code need a dev c++ program does analyze an archive with the time of use from a platform of web. the archive have just 2 ...
[1 reply] : Duplicated Post @ http://www.cplusplus.com/forum/beginner/218312/ (by chicofeo)
do while looping problems
 
#include <iostream> using namespace std; int main() { double gpa = 0; int exam = 0; cout.setf (ios::fixed) ; cout.setf (ios::showpoint) ; cou...
[4 replies] Last: With the continue sitting out on its own - it's going to run in all ca... (by wildblue)
by sharbu
Calling a function inside switch case- Multiple Definition error
 
/* * Program to implement Linkedlist. */ #include<cstdlib> #include<iostream> using namespace std; class List{ private: //data ...
[5 replies] Last: thanks ;-) (by sharbu)
Read access violation
 
Hello! New to this forum. My code compiles properly and both requesting and withdrawing functions work properly. When I go to display the landing times/fligh...
[5 replies] Last: It seems like every time I try to display the landing times and flight... (by Descensum)
vectors
 
I have a 2d vector.I have inserted its initial pairs.Now I want to insert any transitive pair in the original vector.Using c++ vector when I try to insert secon...
[3 replies] Last: > they are not getting inserted ¿how did you check that? > a [t+1]... (by ne555)
question about read access violations
 
hi there, i've been having no issues on the first code, when i run the second code, it shows.... Exception thrown: read access violation. std::_String_alloc<...
[1 reply] : ¿why aren't `{O,}newnode' local to the function? the function seems ... (by ne555)
Arrays Printing Garbage Values
 
Hi, My program is supposed to print from the input file (My array size is 10). But it is printing some weird values. Can someone please explain what is going ...
[13 replies] Last: @kemort- not sure. Sorry. @OP That's OK despite the strange requirem... (by closed account 48T7M4Gy)
by Jax123
Name app.
 
Hello guys, this my assignment. I find it really hard for a beginner like me. would appreciate if you could give me a hand. Here is what is required: IN...
[6 replies] Last: Then after that, you add comments like pseudo code to get your thought... (by DTM256)
[FLTK] hide() from callback??
 
Hi everyone, I am wondering if it is possible to hide() a window from a callback? Maybe this involves returning "value()" from the callback, I don't know. vo...
[no replies]
Read a text file, store in an array and then output reverse the text file
 
Hi Guys! I am new here and really stuck on this question. So I want to read a text file and store in an array and then print the output in reverse. I got an er...
[6 replies] Last: If you change to string inputs , you'd also have to change the functio... (by wildblue)
Arrays Problem
 
Hi, My program is supposed to print from the input file (My array size is 10).But everytime I run the program it gives me warning massage saying the program h...
[4 replies] Last: @Jib- Thanks for your suggestions. I managed to solve it. (by meprogrammer)
by Kalcor
Concept behind this "maths"
 
Captain Bill the Hummingbird and his crew recieved an interesting challenge offer. Some stranger gave them a map, potion of teleportation and said that only th...
[3 replies] Last: > I just don't get the maths behind this wide equation Hint: If we s... (by JLBorges)
Is this writing style good?
 
Is this good way to do it? To make window's friend class engine and then let the engine access window's private functions? class Window { friend class Eng...
[no replies]
License System
 
Hello i would like to use an license system, but i cannot find any guides or avaliable sources for this: What i want to do: - Server Side Application - Web...
[no replies]
by Yany
How to disable the Windows Start key of the keyboard ?
 
Hi all, I'm developing a special application in MFC. A Real Time Control System with exclusive uses that requires data protection. Its dialog interface ...
[7 replies] Last: Thank you very much Thomas, With a few change for adaptation it worke... (by Yany)
by Kalcor
Subsegments of an array 2
 
I succeeded in coding such thing in a basic way but it runs into a time limit error because the time limit is only 2 seconds on the system, I tried it in 2 ways...
[2 replies] Last: Thanks alot buddy ! <3 (by Kalcor)
by Kalcor
Can't get this
 
I didn't understand exactly what this question said, nor what the editorial said also same goes for the solution e.e, can someone explain to me what exactly is ...
[no replies]
June 2017 Pages: 123456... 11
  Archived months: [may2017] [jul2017]

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