Beginners - December 2008 (Page 2)

by pepu
C++ Starting with graphics
 
Hi, i finished learning CONSOLE c++, now i would like to learn c++ graphics, i have been reading, and there are a lot of API´s to start working.. What API sho...
[4 replies] Last: George, it is nice to see that a MS employee/groupie is so unbiased. ... (by Duthomhas)
problem receiving: "1.#INF" in numerical integration of a function
 
I'm using 4 methods: Simpson's, trapezoid's, rectangle's and the tangent's. Integrating the function: "2/sqrt(1-pow(x,2.0))" for the 2 first methods I receive ...
[1 reply] : 1.#INF means +∞. If you divide by 0, that is the result lim (... (by Bazzy)
searching_sorting 2d arrays
 
please help, my task is to make a program that will accept no. input from the user (an array of A ). the entered values will be sorted and lastly, the user w...
[no replies]
WORD COUNER C++
 
IM DOING A WORD COUNTER PROGRAM BUT HAVE A PROBLEM WITH THE "void sort_word"... PLEASE HELP ME IF YOU CAN... THANKS #include <iostream> #include <cstring> ...
[1 reply] : What is "a problem"? Be more explicit. (by helios)
Pointer to Member Function Giving Errors
 
I've been working out of Sam's Teach Yourself C++ in 21 Days. One of the exercises in the book involved the following code that I wrote: #include <iostream...
[7 replies] Last: In doing some additional research and some testing, I managed to get t... (by creo)
Program Unexpectedley crashes?
 
This is a small part of a program I'm working on. long factorial (long a) { if (a > 1) return (a * factorial(a-1)); else return (1); } vo...
[3 replies] Last: On line 13. This kind of syntax T array ; creates an array of siz... (by helios)
Class within a Class
 
I don't understand why this first bit of code works, and not the second. I like the look of the second code better, is this the most efficient way of doing this...
[5 replies] Last: Remember that pointers must be made to point to something valid, or t... (by helios)
by Rasmo
Change a variable during loop
 
Is there a way to change a variable inside a while loop so that each time it loops the variable is updated with the new information that can be keyed in. I h...
[1 reply] : So, basically, you want to be able to perform user input while still d... (by helios)
by hsn
Vectors - Past Exam Question
 
Hi, I'm currently revising for my C++ exam and I'm going through past papers and I'm stuck on the very first question, can someone explain this to me, I feel li...
[4 replies] Last: Thank you very much for your replies fellas. :) (by hsn)
how to define a variable for name
 
Dear Sir, I am a beginner doing ist excercise How to define a data type which will represent a name. I have to write a programme forreading a name of user and ...
[5 replies] Last: Wow. Those error messages suck. Looks like you're wrong, because th... (by helios)
how to write superscript and subscript in turbo
 
sir, i am a begginer using turbo ver 3.0. How to write xsquared and x cube etc in algebric notation. regards arora sk
[3 replies] Last: That's a rather odd way of asking how to do exponentiation. http://... (by helios)
by simsim
Can you expline this program
 
I found this program in this website, but I didn't understand some functions in it. please, can you expline "what works of each function in this program?"( quic...
[no replies]
Problems Passing Arrays
 
I'm currently working on a program that reads in values to one array, compares those values to another array which has values read into it from a data file, and...
[2 replies] Last: After making many modifications to the code, mainly those suggested be... (by varyant)
by sacred
Solving Cryptarithmetic problems using 'enum'?
 
Hey guys. I have a problem in my book "Absolute C++" which I'm having trouble getting past. Here is the text from the book: In cryptarithmetic puzzles,...
[3 replies] Last: Anyone? (by sacred)
Function name as parameter?
 
I want to do something like this, but I don't know how: // +------------------------------------+ // | Brad Summers, (c) Contrast Gaming | // | testcode2....
[3 replies] Last: void (*otherFunction)() This means "a pointer called 'otherFunction... (by helios)
Moving out of C++
 
I've began coding a while ago and am going through a C++ book, as well as some tutorials and am reaching the end of the lessons. Although I've noticed throughou...
[1 reply] : throughout all of C++, you are stuck in the console What are you talk... (by helios)
: error C2015: too many characters in constant
 
it seems after fixing the error i get a new error, i fixed the quotes now i get this Compiling... test.cpp C:\Program Files\Microsoft Visual Studio\MyProj...
[3 replies] Last: Why do you edit your first post instead of adding a new one? Using... (by Bazzy)
I am getting wrong result
 
I am a begginer , I have solved a question for converting Total days into years Weeks and days. The programme is compiled runs ok but result I get every time wr...
[2 replies] Last: Dear Sir, I had been struggling hard to find a reason. I salute you ... (by surinderkarora)
by simsim
why cannot convert more than 10 binary digits to decimal number
 
hhave downloaded this program that convert binary numbers to decimal number. But, I found that it works properly with binary numbers upto 10 digits. It gives wr...
[1 reply] : See, the problem is that whoever wrote this was a total noob at the ti... (by helios)
Writing to a file
 
Here is a piece of code that is supposed to overwrite a certain portion of a file: int bucket; fstream primary; char pbucket ; . . . primary.open("primar...
[1 reply] : std::fstream::ate sets the file pointer at the end of the file. You do... (by helios)
December 2008 Pages: 1234... 17
  Archived months: [nov2008] [jan2009]

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