General C++ Programming (Page 22)

Loop won't break right
Hi folks! Got stuck on an assignment. It's 99% done and does what I need it to do except for one thi...
[2 replies] Last: Had to tweak it a little bit to fit my code, but it made SO much more ... (by Corbenik)
File handling problems for struct.
Hi guys. can someone help me? my problem is that i want to put the data i streamed to a file back to...
[3 replies] Last: > what is stm stm is the name of the variable (of type 'reference t... (by JLBorges)
What does ambiguously overloading the initializer_list constructor mean.
Hi guys :) Pardon me if I have not framed the question clearly :/ I was reading through Herb Shut...
[no replies]
Random number generator
#include<iostream> #include<cmath> #include<string> #include<cstdlib> using namespace std; ...
[6 replies] Last: thanks so much ! (by programnick)
by dkaip
My wxFrame dont take key events
I have a wxFrame and do not take key events. Can it happens because my keyboard is an old ps2? I am...
[1 reply] : I am using wxWidgets 3, Mint OS. (by dkaip)
Urgent Help..Array of Structures
I have an assignment and I am stuck on it and need help. Im not very good with coding so I appreciat...
[4 replies] Last: Does what i have satisfy what is needed (by coolwhip125)
cin to an enum
How do I overload the >> operator to cin to a type enum?
[6 replies] Last: Great thank you all! (by jarvisw2)
help with program that accepts a date in the format MM-DD-YYYY from the user and determines and disp...
[1 reply] : DUPLICATE POST - same program, same problems (by whitenite1)
Phone Database Program - Need to Call One Function to Another
Hello, I am trying to write a mini-phone database program that can display phones based on name, pro...
[18 replies] Last: Yea the first loop is doing that. No 4 characters, based on x amount o... (by realmeal100)
by Aris
Read chars strings doubles from a txt file and put them in a class vector in order to use them
So, I have this records.txt file : c Ann y c Bob n t Ann +534.50 t Bob +40.00 t Bob -...
[1 reply] : A few problems: Line 10-13: Why are your member variables public? T... (by AbstractionAnon)
by AdamG
Extract Values from a complicated string
I am looking for a function to extract values from a string here are three examples of the string...
[3 replies] Last: Very longwinded compared with the slick regex version above, but hopef... (by lastchance)
Just a bit of help with a function
help with program that accepts a date in the format MM-DD-YYYY from the user and determines and disp...
[3 replies] Last: Yes. Thank you! I've corrected it now. (by JLBorges)
Does strtok() changes the string passed by value.
I am passing a string by value to func() which uses strtok() function. But when I am printing back t...
[7 replies] Last: Thanks, Cubbi! (by JLBorges)
Urgent! Can someone please help me with this C++ problem.
I've been struggling to do this as I've only just grasped the beginnings of class, public, private, ...
[4 replies] Last: (by mbozzi)
Need help looping through a text file
#include<iostream> #include<string> #include<fstream> using namespace std; i...
[2 replies] Last: This part of the code has problems: // Use a while loop to loop t... (by Chervil)
Help with I/O
I am going to say this outright this is an assignment for school and my teacher has said i can come ...
[19 replies] Last: I am still doing this program but my teacher isnt in any hurry for it ... (by Shiro12)
by slei
String literal and char*
Hey, I've rarely used char* in my past. I just try to avoid them and use strings as much as possibl...
[10 replies] Last: is constexpr for variables already in c++11 ? cant remember, yeah, bu... (by slei)
Statistical groupings in data
I have data files that I sort through each column and analyze. I have a program that imports .csv fi...
[9 replies] Last: if large, pre-allocate that vector. Push-back is smart enough to atte... (by jonnin)
Check if char contains certain word
I have a little software program, where I do an API call to retrieve the name of a device that's as...
[2 replies] Last: You haven’t shown us any code, but you can use the C strstr() func... (by Duthomhas)
by Drei3
how to put printf in a inifinite loop
ive been trying to put printf in an infinite loop but printf just wont show up. Also I want to know...
[2 replies] Last: while(true) { printf("derp "); fflush(stdout); } (by jonnin)
Pages: 1... 2021222324... 28
  Archived months: [sep2017]

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