General C++ Programming - February 2019 (Page 7)

Dynamical interpretation and functioning of mathematical expressions
 
Dear all, I am wondering if I could parse mathematical expressions (c.f. tan(x)+1, exp(2*t)) and use them as functions in run time. Probably there are some ...
[3 replies] Last: You should take a look at boost. There are several parsing libraries. ... (by coder777)
Paring string's from a file into a map
 
I'm fairly new to c++ and definitely hit a road block. Please bare with me. I'm trying to read a file that could look like so... HI bye goodbye foo bar boy...
[2 replies] Last: chris2013.dat: HI bye goodbye foo bar boy girl one two three Hin... (by Enoizat)
Prefix function doesn't process numbers with more than one digit correctly
 
So my prefix takes a char array then get rid of the spaces reverses it, then processes it. It only works for equations for numbers with single digits like 1 + ...
[2 replies] Last: Line 117: You have a memory leak. ptr is never deleted. In fact, pt... (by AbstractionAnon)
student management system
 
I am trying to create a student management system as my first software; i want to keep the data in a file; work on getting and storing the names to file has ...
[16 replies] Last: spotting errors comes from making mistakes which comes from coding. A... (by jonnin)
by H00G0
How would you go about coding a console?
 
Hey guys! I'm working on a project of mine and I'm building a GUI for a program which itself relies on the use of a console to operate (if it makes any diffe...
[7 replies] Last: @mbozzi Instead of re-explaining everything, you can find a post here... (by H00G0)
Need help with file handling
 
Hello, World! I need help with my data file reading, so currently my data file looks like this: Apple Inc 1 2018 05 18 2019 05 18 1 Motorola ...
[2 replies] Last: Thanks, for your reply, i managed to fix my errors, btw i am using str... (by poviigna)
VTK: vtkSTLReader with normal of cells
 
Dear all, I am handling vtk library. To read STL file, I utilize vtkSTLReader class. STL specification defines there is information about normal of cells as ...
[no replies]
Trouble with assignment. Please advise!
 
This is the question: To make phone numbers easier to remember, some companies use letters to show their phone numbers. For example, using letters, the telepho...
[2 replies] Last: > while(getline (myFile1, sentence, '\n' )) > I honestly have no idea ... (by ne555)
help with #define
 
I need to do something like this: #define ACTIVATE_MODE(x) mode#x(); void mode1(); void mode2(); int main(){ int i; cin >> i; // i = 1 ACTIVATE_MOD...
[2 replies] Last: you can also just do this: #ifdef use1 //set this in your project set... (by jonnin)
help with pointers and DMA
 
I keep getting an error that says flyCatching not returning a value and cant figure out how to get pointers to work with arrays so that they return the values y...
[3 replies] Last: Your flyCatching function's signature expects you to return a void* po... (by Ganado)
How to implement a function template entirely in terms of class template?
 
I am trying to understand how to implement function template in terms of class template but not sure if I am doing it the right way. I tried finding an answer t...
[5 replies] Last: @mbozzi, apologies for a late response :/ Here is the text I referred... (by kapil2905)
How do I solve a Balanced array problem
 
Hello guys, So I have this problem: "An array is called balanced if its even numbered elements (a , a , etc.) are even and its odd numbered elements (a , a , e...
[3 replies] Last: [quote=CollinsLainzo]you even optimized my code like some kind of comp... (by lastchance)
Inherited Class - Member Functions of Same Name
 
If two classes have methods with the exact same name, and one class inherits the other, how does the program know which method should be called? Example: clas...
[7 replies] Last: Good advice, I had forgotten about that in my post. So it isn't comple... (by Ganado)
"printf" did not work
 
i have a problem that "printf" didint show what i want void obj_function() { for (i = 0; i<no_of_facloc; i++) { for ( k = 0; k < no_of_facloc; k++ ) ...
[11 replies] Last: thank you everyone.. i know what wrong about the coding.. thank you so... (by shuthairah)
by H00G0
Question about security and data encription (1,2)
 
Hello Guys! I've already posted about my project earlier, since it's coming to it's completion (meaning all the features are implemented and everything works...
[22 replies] Last: Thank you jonnin and FurryGuy, I will surely look into this! (by H00G0)
How do I Check serial numbers in two different lists ?
 
I am trying to check the serial input on 2 different serial lists. There are two serial lists; Bundle serials (stores and checks the file in "../Individual_Reg...
[no replies]
by SkoobD
RECURSIVELY FINDING PATHS THROUGH A MAZE.
 
Following program reads and prints the maze in the maze.txt, but it doesn't do any changes to the maze according to void path(int y, int x). I couldn't figure o...
[1 reply] : Use code tags. Your post is almost unreadable without. (by lastchance)
Need help with an assignment
 
Write a c++ program to solve the following expression, [ 2a - 4b +3ab -5a +2b ] . I have not idea where to begin. If anyone could give me some suggest...
[4 replies] Last: professor means by solve is to simplify the expression Then he proba... (by Grime)
How to refine your skills after graduating from texts
 
Dear experts, I am wondering how enhancing my programming skills.Could you, experts, introduce your ways? Software development seems "arts" compared with sci...
[3 replies] Last: Thank you for your advice. I feel scientific technique is also import... (by Mitsuru)
Help Searching vertically
 
Hello and thank you in advance! here is my issue: The code takes in a separate file called "words.txt" with 5 rows of 5 letters in those letters is the scrambl...
[1 reply] : one way is to transpose a copy of the puzzle and reuse what you have. ... (by jonnin)
February 2019 Pages: 1... 56789... 11
  Archived months: [jan2019] [mar2019]

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