Beginners - July 2010 (Page 5)

conditional (ternary) operator not providing answer that I expected.
 
I have as basic a question as I think has ever been asked on this forum. I have searched through the conditional/ternary operator responses on this forum and s...
[3 replies] Last: Thank you both for the info! Surrounding the cond stmt with the paren... (by asperber)
Difficulty loading proper characters from a .txt file
 
I'm creating a small text based game and I would like to make level creation easier by simply being able to type the characters used to build the level into a n...
[4 replies] Last: I cut and pasted it into Code::Blocks and I got a strange error. std:... (by HooklessFastener)
file problem
 
struct patient { int ID; char name ; char adress ; char age ; }patients; i want to make file to every patient , my problem it how to make the name ...
[1 reply] : Are you using fstream to output to a file? (by Vexer)
error compiling in VC2010
 
While attempting to compile in Microsoft Visual C++ 2010 Express I was given this error: error LNK2001: unresolved external symbol "class std::basic_string<c...
[1 reply] : Is message a global or static member? If so, you need to define it, as... (by helios)
Game
 
So I have to work on a hangman game, but im having some problems with it. It keeps showing the word you enter and does not stop the game when you are out of tr...
[4 replies] Last: Thanks so much for the help! (by koutsos1)
Efficient N-length array-like object?
 
I'm a new programmer working up to implementing a major Engineering project. Right now, I'm trying to put together a simple program to perform a simple linear ...
[5 replies] Last: A vector indeed preallocates some memory. You can use the capacity mem... (by Athar)
class/header files
 
I'm making a class to add, subtract, multiply, and divide fractions. here's the actual .cpp file. #include <iostream> #include <string> #include "fraction.h...
[5 replies] Last: Ok, now here's how the function definition file looks. where do i go f... (by madelineosman)
Data Unit Converter
 
My code Wont let me have more than 9 options if someone tries to choose 10 the program thinks 1 is the option and 0 is what it needs to convert. How can I get a...
[5 replies] Last: Ok Its working now thank you all who helped. (by Megaorange)
ansi-C++ compiler test
 
Am about to get serious about studying and learning C++, and the C++ Language FAQ under the heading Information on this web page provides a test to check if my ...
[11 replies] Last: Twud be simple if not for 1st day experience in C++ exposure, but by s... (by holadebeto)
by dean
giving an istance method to a superclass's constructor
 
Hi, it is my first post here~ :). I find this website very useful and I am often using it to solve my c++ problems! Anyway I was not able to find how to pass a...
[2 replies] Last: This is can be resolved by using a templated base class. http://en.... (by PanGalactic)
Open File to Char Array
 
I'm trying to make a database to help me locate vehicle service tickets faster. My problem is that I'm trying to open a single file and save the contents into ...
[5 replies] Last: Learning to use a database C++ API is a non-trivial exercise. There i... (by PanGalactic)
create Circular linked list
 
Hi . I have question about circular linked list . how can i create first node in circular linked list struct Node { int item; Node* next; }; int main...
[4 replies] Last: Hi . my problem is when enter a last node when cout list the last da... (by ehsangha)
by Erain
Grid-based Motion Planning
 
I'm looking for a simple motion planning algorithm (e.g. A*). I've tried all sorts of Google searches, but to no avail so far. My preferred way for it to wor...
[3 replies] Last: Ok, I think this will do -> http://theory.stanford.edu/~amitp/GameProg... (by m4ster r0shi)
by Nevo
Problem with files
 
Hi, first, sorry for my bad english xD. i have a problems with files, i want to read some names(with 30 characters), a '\t' character, and a number (an age),...
[2 replies] Last: The problem is that i need to use getline() because name got ' ' char... (by Nevo)
by koopa
another quick question
 
hi, easy one, i hope, in a simple program, where the user is requested to input a number (stored as an int), if the user accidentally inputs a letter the con...
[8 replies] Last: hi, sussed it! needed a cin.sync() post the cin.clear() (by koopa)
Image Processing , what should I know? and C++ general question
 
Hi, I am Msc student in the Image processing field and I mainly use Matlab. I see that most of the companies that use image processing use C++ and not Matlab....
[no replies]
by Mreza
Unexpected closing
 
Hi! I just wrote this code: //This program take some numbers and output the average of them, by changing the type #include <iostream.h> void main(){ int ...
[1 reply] : Firstly, use int main() instead of void main() and <iostream> as oppos... (by bluezor)
setting parameter in setprecision
 
Dear Friends, I have created a class. In this class there is my own display function. I have created two objects of the same class. Now I want to print these...
[4 replies] Last: Thanks a lot dear I got it (by kashifflavio)
by royiy
cos
 
Hi, I need to calculate cos by cosx=1-x^2/2!+x^4/4!-x^6/6!+x^8/8!-x^10/10!+x^12/12!-x^14/14!+x^16/16!-x^18/18!+x^20/20! I think I need while. tanks.
[2 replies] Last: check some of the other recent posts. I found your problem being discu... (by closed account D80DSL3A)
taylor sequence in c++ (1,2)
 
hello, i have a small project which ask the user to input value of 'x', then show sin(x),cos(x) and tan(x) using this fourmla http://www.daniweb.com/foru...
[26 replies] Last: The second formula is the one being used in the functions here. Your r... (by closed account D80DSL3A)
July 2010 Pages: 1... 34567... 31
  Archived months: [jun2010] [aug2010]

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