Beginners - March 2017 (Page 16)

Modulus Issue - Lucky Number
 
Hey there, I'm making a program that calculates a person's lucky number in accordance with a formula given to me. I have tried a variety of things - but suffice...
[10 replies] Last: num1 is uninitialized now. should be num1 = staticmess<etc (by jonnin)
ee
 
[3 replies] Last: What you need the most of the times is to compare the result of a roll... (by Enoizat)
by cw8jwh
ili9327 chipset and LCD_Write commands
 
Would someone help me with a backlight issue, please? I am using an MCUFRIEND 3.5" TFT LCD screen, and the silkscreen on the back says 'ili9488' but it only re...
[no replies]
hpp and cpp
 
i m reading about the classes and writing example codes to understand. the book im following now came to a point that it first declares the class in ...
[3 replies] Last: i use dev c++ please don't, it's horribly out-of-date for more up-to... (by gunnerfunner)
by stav
whos in charge of c++ ?
 
since theres multiple c++ compilers how to "they" maintain standards and who decides them? also who are "they"? like, who's in charge of c++ and get to dec...
[1 reply] : See: https://isocpp.org/std (by JLBorges)
class problem. would this work as I tried to?
 
"class tire" is given and it calculates distance a tire ran by the inputted number of rolls. Now I would like to build "class Auto" that has frontRight/Left, re...
[3 replies] Last: at the moment all tyres/tires roll the same distance. i'd add another ... (by gunnerfunner)
Segmentation Error. I Think?
 
I'm almost complete with this program but am getting a reoccurring error that I can't diagnose. #ifndef RATIONAL_HPP #define RATIONAL_HPP #include <cs...
[6 replies] Last: Oh yeah, sorry; I have line 1 correctly in my cpp, I just posted it he... (by JohnBravo)
read txt file / print / records / arrays
 
Hi C++ folks. I'm stuck here trying to save data from a txt file in a 2D array in order to use this in a bigger program. If I read the txt file without using re...
[4 replies] Last: Glad that's working ok now. A couple of other comments. You could use... (by Chervil)
reading dynamic array from txt file
 
Hello, got a small problem , I've made code for writing 2d array to file, but when I try to read back it to array, compiler doesn't see column and rows count in...
[1 reply] : in my example i've assumed that the array row and col information is o... (by gunnerfunner)
How to use a variable declared in another dialog class in Visual C++
 
Hello everyone, I have created a list view(Declared in dialog class CDataDialog) with data . I want the list view to have as rows-cells as the conductors so I...
[1 reply] : Why don't you simply modify void CDataDialog::InsertItems() to accep... (by Enoizat)
Help me with class pls
 
I would instead of having to set name,lastname and phone in the code itself like to set it in the console and then print it, thanks. #include "stdafx.h" #inc...
[1 reply] : #include <iostream> #include <string> struct kontakt { // constr... (by JLBorges)
Must Return a Value; Vector of Integers; Word Count
 
I'm having some problems with a program that I'm writing where you find the count of words in a file. The issue I'm having is with my function "get_word_counts"...
[1 reply] : The posted code compiles fine. This means the problem is somewhere els... (by coder777)
Vocal keys
 
So I have written a program that checks for the frequency of signed 16bit raw audio by counting the number of times the data crosses the x axis. It's pretty acc...
[8 replies] Last: I'm hoping that as I go through these articles and books I can start n... (by newbieg)
by sengab
Casting int to enum.
 
Hello guys, I have a quick question regarding enums. I have an enum called test which is made of multiple colors as shown. I want iterate using a for loop from...
[1 reply] : #include <iostream> // http://www.stroustrup.com/C++11FAQ.html#enum ... (by JLBorges)
Can't get code to output numbers in input file
 
Write your question here. #include <iostream> #include <string> #include <fstream> #include <iomanip> using namespace std; const int DATA = 30; int main...
[9 replies] Last: Thank you for all your help, it's greatly appreciated! (by kattykat243)
Need help with error checking.
 
Hi, I have a menu in my code that allows the user to select from three options. the options are 1.load quiz 2.display quiz and 3. quit. I have been adding some ...
[2 replies] Last: The value is six because of my .txt file. Though it could change if I ... (by pleaseINeedHelp)
codeblock file wont run on windows
 
Write your question here. I have a problem(don't know how to) with codeblock after completed the code, I hit f9 it works fine, but if I run it from windows b...
[5 replies] Last: If code:blocks can run your program, you have already built your .exe ... (by closed account E0p9LyTq)
help with program
 
I have tried multiple times to get this program to work. I have researched the web and I am coming up with nothing. #include "stdafx.h" #include <iostream>...
[4 replies] Last: Please edit your post and add code tags (highlight the code and then p... (by jlb)
Calling A Text File
 
Hello everyone I wanted to know how to call a text file into my code and then how to take the text from the text file and separate the information into columns....
[1 reply] : Here's an example doing just what your asking about. Read the first po... (by SamuelAdams)
C++ Intermediate Help
 
Write your question here. // determine average grade for test double GradeBook::getAverageGrade() { int total = 0; // initialize total // ...
[6 replies] Last: Huh that worked! Thanks! (by Failure)
March 2017 Pages: 1... 1415161718... 36
  Archived months: [feb2017] [apr2017]

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