General C++ Programming - October 2016 (Page 22)

How would I make a Mandelbulb (C++ / SDL)
 
I've created a Mandelbrot in C++ / SDL. And was wondering how I'd make it 3d to created a Mandelbulb. Heres my current code #include <SDL2/SDL.h> #...
[1 reply] : I don't know about the fractal bit, but I would consider rendering bac... (by mbozzi)
by elay
array of 0's and 1's int vs char
 
char arr // actually im going to have hundreds of indexes { {'0','0','0','0'}, {'0','1','1','0'}, {'0','1','1','0'}, {'0','0','0','0'} };...
[3 replies] Last: Cool, a Tetris Game! Now that that's out of the way, may I ask what e... (by closed account 49iURXSz)
by stav
how come i can run something on two different processors ?
 
if i write my code and compile it on a intelx64 bit processor how come im still able to run it on another processor with a different architecture?
[3 replies] Last: Depends on the scope of the question. You can write code and run it th... (by closed account 49iURXSz)
Else Statement Runs Incorrectly
 
Hey everyone sorry I forgot information I was so darn upset trying to figure this out. I need to show two responses per data set at most. For example: Enter ...
[10 replies] Last: Let me see if I have this right. You have a data set corresponding to ... (by closed account 49iURXSz)
Quick question about universal window applications in VS 2015 regarding screen resolutions and display
 
In Visual Studio 2015 (Universal Window Application, C++), is there a way to code a button to change the window’s resolution once it is clicked? I’m buildi...
[no replies]
Problem with pointer array
 
Hey Guys, i've got a Problem with an Array of pointers. First of all my classes struct sFace { sPoint* points ; sCell* neighCells ; sFace* ...
[1 reply] : why i must not use the &-operator in curFace->neighFaces &= curFace-... (by ncomputersorg)
Doubly Linked List question
 
Hello! what do i need to do to make those things work?. Maybe it's too hard to tell? Prepend(value) : adds an element to the start of the list Append(value)...
[2 replies] Last: Okay, thanks Duoas. I'm just stressed since i'm studying and have to l... (by Janbananberg)
Intropy compile time library - C++ open source library
 
Dear community of the cplusplus.com forum! We are pleased to share with you this C++ open source library published under the ISC license. Its purpose is t...
[no replies]
Rearray binary tool - C++ open source code
 
Dear community of the cplusplus.com forum! We are pleased to share with you this C++ open source code published under the ISC license, that works as a high per...
[no replies]
Entropy estimation tool - C++ open source code
 
Dear community of the cplusplus.com forum! We are pleased to share with you this C++ open source code published under the ISC license, that works as a high p...
[no replies]
How to compare a single value from each line of an input file?
 
I'm trying to write a code that will compare a value from each line of an input, and rank the top two based on that value (in this case their weekly sales). But...
[3 replies] Last: You are mistaken. You cannot sort "line by line." (It is impossible.) ... (by Duthomhas)
Terminate program without exit the window
 
Hi, my code exit the console when the input is valid. But what i want is that it stop after showing "Invalid value !" and remain in that page, it does not exit ...
[1 reply] : Either run your program from the console (recommended) or put your pau... (by Duthomhas)
Why can't I use multi-dimensional arrays as class fields?
 
Specifically, why is this not allowed... class Field { private: int field ; public: }; Do I have to dynamically allocate to get around this? How would ...
[2 replies] Last: And to be absolutely clear, all but the outermost dimension of any arr... (by Duthomhas)
Converting text into morse code
 
What's up guys. My assignment is to convert user inputted text into the designated morse code value for each letter in the alphabet. I can't figure out how to r...
[6 replies] Last: And spaces have a particular coding. (by closed account 48T7M4Gy)
Problem returning a value from a function.
 
I am having problems returning the value that I want from my function getPrices(). This part of the program is supposed to prompt the user to take up to 25 pric...
[2 replies] Last: Awesome! Thank you. (by phalloides)
Trouble with non-execution of code within program
 
Below is what I have written so far for program that pulls numbers from a text file designated from the user, reads them into an array, uses it to find the aver...
[1 reply] : Please edit your post with code tags. See http://www.cplusplus.com/art... (by keskiverto)
Need Help with the code........
 
I need help sorting a file and displaying out the parts from binary file to output on the scree. anyone knows how to do the code for it?
[2 replies] Last: It's important to reiterate/emphasise that the sorting is done after ... (by closed account 48T7M4Gy)
by agulbs
How to Read a string vector character by character
 
I need help with my program. I need to create a file formatter where i read from a file, create a new file and format the contents from the original file to 60 ...
[1 reply] : Sounds like you need to search the strings in question for sub-strings... (by closed account 48T7M4Gy)
Help with scanning a string
 
I can't seem to figure this out. I have a string: string s = "If you can't rhyme against the DARK SIDE of the force, why even bother! So many dudes been wi...
[2 replies] Last: for (int i = 0; i < s.size(); i++) { if (isalnum(s )) ... (by Friedmagickarp)
by Lola02
Help is needed in a assigment "Strings"
 
1) Declare a new string named "dataSource" that has the following value: "I wonder how they extract e-mails such as coolperson@yahoo.com or teacher@school.ed...
[4 replies] Last: Thanks for everyone that replied really appreciate it this what i h... (by Lola02)
October 2016 Pages: 1... 20212223
  Archived months: [sep2016] [nov2016]

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