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

C code: Getting a "cannot convert double to double*" error
 
Hey all! This is C code, but I thought it similar enough to C++ to post it here... Anyhow, I'm getting 4 compiler errors, that are all telling me "cannot ...
[3 replies] Last: What standard of C are you compiling with? Try using -std=c99 or -std=... (by LB)
Question to a Sinus-Regression Algorithm
 
I found a algorithm for a sinus fit. Unfortunately, there is no hint how the input data should look like. Maybe someone can help me with that and understa...
[no replies]
Use DirectX or OpenGL?
 
I am because I don't know what to use OpenGL or DirectX ? I heard some people saying I can use both. How is this? what is better for online games? And when I c...
[1 reply] : Thanks anyway I knew it I will use directX11 and learn this tutorials-... (by Gameman)
Need to know how to open a help file from C++
 
I've written a program for my assignment and well it working fine but what I can't get my head around is how to call a CHM or a PDF file and display it and retu...
[9 replies] Last: Use ShellExecute, it was designed for this purpose. http://msdn.micros... (by modoran)
by Nouf
C++ vector reaching it's maximum size
 
Hi, My program enters the size of the vector from the user and then creates a vector of vectors (lets say SIZE1). In addition the user enters the number of v...
[3 replies] Last: You are running out of memory for your data; C# won't be able to help.... (by JLBorges)
Classes C++ Constructor
 
Hello, I am creating a class that has a private array on the heap with a constructor that takes the size of the array and initializes it on the heap. Later I ha...
[1 reply] : #include <iostream> struct A { int size; int* array = new in... (by cire)
by LB
What are they useful for?
 
http://en.cppreference.com/w/cpp/language/member_functions #include <iostream> struct S { void f() & { std::cout << "lvalue\n"; } void f() &&{ std::c...
[5 replies] Last: > so it's a way to manually optimize the program It could be used for... (by JLBorges)
Class Car
 
Implement a class Car with the following properties. A car has a certain fuel efficiency (measured in miles/gallon or liters/km—pick one) and a certain amount...
[9 replies] Last: The problem says mpg must be 0 in the beginning. If that was the ca... (by giblit)
infix to postfix conversion
 
edit-using array based stack class So i am having a problem, i do not understand how to convert an infix notation into a postfix notation from a txt file. The i...
[3 replies] Last: i read it but i am still confused on how to implement the code however (by azntrindo)
Using an API function that has a char pointer as an argument
 
I am using a small robotic-car that is controlled by writing C/C++ codes under Linux. I need to use a particular function from the library provided by the manuf...
[2 replies] Last: Thanks for your reply. It gives me the idea of how to proceed. (by renegade007)
by MrHobo
Function failing?
 
I'm supposed to write a program that converts temperatures using void displayMenu() int getChoice() void generateTable(int startTemp, int endTemp, int step...
[5 replies] Last: It's the same end result. (by Computergeek01)
by Renato
Variable not storing the value.
 
So i'm creating bank system. W Where I have function that reads the text file (balance), and I make a deposit, which adds what was in the balance = deposit...
[18 replies] Last: Thanks a lot Disch , that makes sense to me :) (by TheBeardedQuack)
Finding text inside a text using substring
 
In c++, i know there is a find function, but i don't want to use that. How can i find a word inside another word. So i have to take 2 strings. EX: string 1: mi...
[no replies]
by Renato
Add and minus from the text file arent give the right value.
 
I'm going to try explain the best way i can. I'm creating a bank system. So I know to make a deposit to the balance, which add ups what is the balance to ...
[1 reply] : I've fixing the problem to return to the menu, not return to the readB... (by Renato)
C++ question. Plinko Simulator
 
I am trying to begin a project that will simulate the game Plinko from the price is right. Were a puck is dropped down a board of pegs, the peg can either bounc...
[no replies]
C++ Nested Loops and Histogram
 
Hello, I am making a histogram program that prints on the ith line the ith char in the symb array the number of times that appear in the ith index of count. Ex....
[1 reply] : First of all, there's a problem with your code. You have declared and ... (by xismn)
-1.#IND error
 
Hey there, I have some coding experience but I still seem to get the occasional confusing error. For the most part I believe I have this code written correctly ...
[1 reply] : An IND error in visual studio basically means NaN (Not a Number). Thi... (by Hippogriff)
chapter 13 Stroustrup text box, math for rounded box class
 
I'm trying to create a box with rounded corners using FLTK. I got the the box to print with the arcs in the right positions, but my math appears to be all wonky...
[no replies]
Federal Tax Program Issue
 
I can get this program to run, but it always says that it returns a tax of 0. Any idea as to why that is? Write a program that can be used to calculate the...
[1 reply] : ... but it always says that it returns a tax of 0. Any idea as to why... (by Computergeek01)
Program doesn't work correctly
 
So I made a program that I keep continually modifying but as of right now I am using it to count my methods. using namespace std; class loc { public: ...
[4 replies] Last: Nope, code in C++ will only do what you tell it to. Unless you tell th... (by Computergeek01)
February 2014 Pages: 1... 2526272829... 33
  Archived months: [jan2014] [mar2014]

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