General C++ Programming - February 2014 (Page 24)

How to add values of a for loop?
 
I want to add each of the values that are calculated by the end of each for loop. For example: for(int i = 0; i < 10; i++) { int x; } I want to be able to ad...
[6 replies] Last: Thanks, you're awesome. Now I will go play around with the operator un... (by DyslexicChciken)
std::array
 
I am following this tutorial: SFML Game Development and i have checked and double checked and even copy and pasted this code and i still get the same error. ...
[2 replies] Last: What is SceneNode and LayerCount ? How are those defined? (by Smac89)
infix to postfix reading from Text File
 
So i solved my earlier problem but now how do i make it read from the text file that i have and output the postfix notations? Because right now it is only outpu...
[10 replies] Last: not everybody knows everything there is to coding. I don't know some... (by giblit)
Dynamic memory help (array of char)
 
General Purpose: Delete all "white spaces" in text file, until the read-in char is _not_ a whitespace (mark as start of text file). Problem: Cannot seem to s...
[3 replies] Last: #include <fstream> #include <string> #include <iterator> #include <io... (by JLBorges)
array and array pointer same thing?
 
From my understanding, when you declare something like char str = 'abc', it by default becomes a pointer to the first address of the array, so there is no need...
[3 replies] Last: Your declaration is equivalent to this one below. No, it isn't. The... (by cire)
Understanding Pointers In Respect to SDL
 
Hello all! I've been trying to grasp the concept of pointers. I thought I had it, until I came back to the usage in SDL. I think it's to do with the way SDL st...
[19 replies] Last: Well, I used to know a bit about functions in C++, and I've programmed... (by George951)
Question re Visual Studio C++ Express
 
I have noticed something that suggested VS C++ Express does *not* support the Resource Editor. This may explain why I have not been able to work out how to "...
[2 replies] Last: Thanks for responding so promptly, kbw. I am still missing somethin... (by johngross)
Code Help
 
Trying to get this code to clear, but when the program runs, I am getting an error. Here is the code: string getCategory() //Get the category. { char cchoic...
[2 replies] Last: Thanks Guzfraba!! That did the trick!! I new it would probably be so... (by karichie)
by JorC
Help with a Bug
 
hey everyone, I'm supposed to make a program that can read up to 1000 lines(and place each line inside an array) and then make it output in reverse order. Now e...
[4 replies] Last: ahh thanks so much, guys!! really appreciate it! (by JorC)
Any help regarding functions?
 
I have an assignment that I have been working for a week and a half already and I can't seem to get any closer to completing it and it is really messing with me...
[9 replies] Last: All of the comments I made concerning ReadDial have yet to be addres... (by cire)
Shaders running slower than Fixed Pipeline (1,2)
 
While testing some simple examples with glDrawArrays I noticed switching it to shaders can cut my frame rate by over half (from 600- 300). I know I am using a ...
[21 replies] Last: Just don't dive into the 7870 developing slowly-performing application... (by S G H)
How do I attach an image to a post?
 
See Title.
[3 replies] Last: I like imgur.com (by Peter87)
Visual C++ 2008 CLR Project
 
Can someone direct me to an instructional on how to use the CLR in Visual C++? I am working on a program, and think that it will look great as using the Windows...
[2 replies] Last: Out of curiosity what does CLR mean? (by solarblast)
Reading In from File/ Array
 
Hello, I am trying to read in doubles from a file and when I try to display nothing displays, but the file is in the same directory. This is my code. ( this...
[1 reply] : Use this example below that i've made. it is using the c++11. Anyway, ... (by bufige)
Help with program
 
I have to write a program to calculate sum, mean, variance, and standard deviation and I was able to do the sum and mean but I don't understand the variance and...
[2 replies] Last: http://www.cplusplus.com/forum/general/112111/ $ g++ foo -W{all,extra... (by ne555)
Converting strings to dates
 
Does someone have a quick code for converting strings to Dates in C++. Example: What is the date: User response: 12/05/14 Can someone tell me a way I ca...
[1 reply] : Can someone tell me a way I can code this to recognize it as a date, ... (by JewelCpp)
Need help parsing serial ASCII stream please
 
I am fairly new to C++ programming and I'm working on a project that will read and parse a 2400baud serial ASCII data stream. For now I'm using an Arduino Uno a...
[2 replies] Last: Thank you JLBorges. I'll give that a try. -Mark (by msiminoff)
infinite loop
 
these are codes for gauss siedel iteration... seems the loops are running for infinite times..please help me finding the fault. the moment i used k loop, thing...
[2 replies] Last: i actually have the answer to this question and it gives me the ans in... (by praneshiitm)
Understanding Visual Studio C++ IDE
 
I'm trying to get my foot in the door with the VS C++ 2013 IDE. In particular, I'd like to know how it works with say an example or three that details the steps...
[4 replies] Last: OK,I created a "New Project", and it shows Templates on the left. Con... (by solarblast)
by nn208
Finding the root of a function using secant method
 
hey! I want to find the root of an equation f(x) by using the secant method (http://en.wikipedia.org/wiki/Secant_method). #include <math.h> #include <...
[1 reply] : What are you doing on line 32? (by kbw)
February 2014 Pages: 1... 2223242526... 33
  Archived months: [jan2014] [mar2014]

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