Beginners - November 2016 (Page 24)

by fout
ifstream
 
I need some help modifying this program so that it can read a file with invalid data. The invalid data is in a file that looks like this: Robert Smith S45 78...
[5 replies] Last: Sometimes when dealing with invalid data, one has to consider very man... (by Chervil)
Text From A .TXT File (HTTP)
 
Hi Guys! I am trying to obtain text from a .txt file online. The .txt file either contains "Yes" or "No". Is there a way I can download using winsock2.h or ws2...
[2 replies] Last: I would do it like this: #include <windows.h> #include <stdio.h> #p... (by Thomas1965)
Class help
 
I wanna ask why my program terminated with a class like this: class Stop{ public: Stop(){Aid=0; parent_count=0}; int next; int parent_count; bo...
[12 replies] Last: tomtran3110, Which compiler are you using? Are you compiling within t... (by lastchance)
Line calculator
 
Not entirely sure what's going on here. The program is supposed to show if the entered points will make a line that is horizontal, increasing, decreasing, verti...
[3 replies] Last: I ended up fixing it earlier, my issue was the data types lol Thank yo... (by muffsez)
Output Troubleshooting Assistance!
 
asasasasas
[18 replies] Last: Have you actually tried to run the program and test it on your end, b... (by lastchance)
Win API BringToTop WM_QUERYENDSESSION
 
What this thread Involves: WM_QUERYENDSESSION and BringWindowToTop WmProc & WIN API So this is my first time ever investigating or looking into Win API(s) and ...
[1 reply] : My advice is to learn the fundamentals of C++ first, before diving int... (by xismn)
unique operation
 
Dear all, I am trying to figure out some operations of algorithm in C++. One of them is unique and its return value. Quoting from cplusplus.com: An iterator to...
[5 replies] Last: Yes. I tried the following code: #include <iostream> #include <ioman... (by ivanov ivan ivanovich)
Sudoku Checker Algorithm
 
I have created a Sudoku Checker Algorithm based on a vector<vector<cell> > of type cell. This specific code is supposed to go through all 9 sub-squares of 3 by ...
[6 replies] Last: I think you're misunderstanding what find_violations() is intended to ... (by mbozzi)
C++ problem with the function
 
Thank you.
[2 replies] Last: Thank you. (by noymiller)
Homework problem with Arrays
 
My program isn't working the way I want it to obviously. But one very strange thing that I cannot figure out one bit is when I answer with all B, the final scor...
[2 replies] Last: Ok, I switched it all up but the program still isn't working right. If... (by SkarFaceT9)
Invalid conversion
 
On line eight I am receiving the error 'invalid conversion from 'char' to 'const char*'. #ifndef VALIDATE_HPP_INCLUDED #define VALIDATE_HPP_INCLUDED #i...
[2 replies] Last: Thank you. (by Jack816)
Timing Question
 
So I was trying to make a program that completes task in a specific amount of time but every timing example I came across uses a type of sleep to wait a certain...
[1 reply] : You'll need to set up a timer class with a data member timeStart = 0 s... (by gunnerfunner)
const&
 
What does const& in following code mean? const char*const & p ="!!!!"; cout<<*p<<endl; cout<<p<<endl; output ! !!!!
[2 replies] Last: const char* const& p ="!!!!"; Reading the above from right to left:... (by gunnerfunner)
Verification in vector<vector<short> >
 
I am trying to find a way to verify the correctness of a Sudoku board. I was able to make a function but that function does not actually do anything. I made the...
[2 replies] Last: Mr. JLBorges, thanks for your response but I haven't much experience u... (by CelestialX)
Need a faster program (time limit exceed)
 
Make a program that prints 1 if there is a permutation or 0 if there is not. The first number of the input tells you how long the sequence is. Example: 5 1 2...
[8 replies] Last: Thanks for all (by Oriol Serrabassa)
Error
 
On line four I am getting the error 'expected primary expression before int'. I've fiddled around with it and I just can't figure out what I'm doing wrong. ...
[2 replies] Last: extern const double DEATH_RATE = 0.1; extern const double CONVERSIO... (by Jack816)
decrpyption problem
 
Ok, i am aware of the rule of asking for help with homework. i have a good idea of what i need to do, but the code i have written only prints out 1 letter pe...
[4 replies] Last: i have read elsewhere that it should read "Attack at Dawn!" (by fishcode223)
infinite loop during maze?
 
Im writing a program to recursively solve maze. Ive written part of the program but it seems to be stuck in a loop. Im trying to get it to display the maze aft...
[2 replies] Last: Actually im changing the maze to recursively solve itself. I tried sol... (by kingkush)
problem
 
[1 reply] : problem Yeah, there must be a problem. What is the problem?... (by Chibiken)
Read in characters and place in multidimensional array
 
I am trying to read in a word and then place it into a 4 by 4 array, excluding any repeating letters, and then place the remaining letters in the alphabet in af...
[1 reply] : would you mind posting some code we can look at? (by Bdanielz)
November 2016 Pages: 1... 2223242526... 44
  Archived months: [oct2016] [dec2016]

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