Beginners - January 2009 (Page 2)

An exercise from a test
 
can someone answer this problem in c language? Write a function to check if its parameter (positive integer) is a perfect square. Then apply this function to...
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ (by Zaita)
by yasser
Find The Error(s); funny;
 
who can find the Errors in this statments ; 1- Assume that: char str[ 5 ]; cin >> str; // user types "hello" 2- int *zPtr; // zPtr will ...
[6 replies] Last: it is problem .. what is the diffrent between my Q and legit programm... (by Zaita)
no more
 
changed my mind
[no replies]
Using 'invalidate' for the first time
 
I have a program that draws brackets on the screen to indicate the far left position and far right position of a car. The brackets appear on the screen when a u...
[1 reply] : I think that is the flag you have to use in the RedrawWindow functio... (by Bazzy)
overloading methods
 
HI, why the compiler consdier the arguments of method while calling overloaded function and not function return type. thanks in advance............
[2 replies] Last: He's asking why that is the case, not for the fact that it is. I th... (by Duthomhas)
extremely large data file and permutations
 
Hello, I am trying to work out the quickest way to run a set of permutations. I have a file of results from another analysis that looks like this: 1234...
[3 replies] Last: Thanks to both of you. After having said I didn't think it would be f... (by jem8271)
How to set -1.#IND to print as '0'
 
I have a function that calculates the area of a triangle; however, when the area for the triangle is negative, the area is represented as '-1.#IND'. How do you...
[6 replies] Last: Thanks for your help :) (by graphite)
Creating a first game
 
I have been programming in c++ for about 6 monthes now and I am wondering how I should start if I would like to make games. If anyone has any ideas on where to...
[2 replies] Last: I'd advise you to download the DirectX SDK, and start going through th... (by MDevonB)
Error Message - Expected ; Before String Constant
 
Hello, I am learning C++ and I tried entering a code from a book into my compiler. Here it is: #include <iostream.h> int main() { int x = 5; ...
[2 replies] Last: Oh, wow, you are a life saver, psault! My head has turned into a compl... (by crescent)
Programming Flowchart
 
How do I make a programing flowchart? Or can someone show me an example of one and explain it.
[1 reply] : http://www.cplusplus.com/forum/articles/1295/ Your question is hugely... (by Zaita)
Setting variables using if/else statements
 
I'm trying to write an interactive story, setting the main character's gender as a variable so that the proper pronouns will be used. I'm taking an introductory...
[2 replies] Last: I'll save you posting in an hour or two about why cin >> meh; isn't ... (by Zaita)
by Oromis
What are vectors?
 
Hello people, My first post on this site, aldo I've used this site a lot already. The tutorial and reference are great. I've some questions about vectors....
[16 replies] Last: Thanks! Of course, I understand my class won't be even to compare with... (by Oromis)
visual studio 2008 library files vs
 
i started playing with directx in visual studio 2008 where i included the tools-> options-> projects and solutions-> vc++ directories -> show directories ...
[1 reply] : Because you have to tell the compiler to link to that library and Visu... (by Bazzy)
arrays and functions
 
I was wondering if there is a way to use a function to define the contents of an array with a function. I am trying to do something with the Fibonacci sequence ...
[4 replies] Last: ok so now im trying to import a file turn each line into an integer an... (by therealdeliverance)
ANSI escape codes
 
I need help with ANSI escape codes, i heard they are werry usefull, but i can't find nothing on google to learn about them. I am pretty new to programming so so...
[7 replies] Last: You need to be running ANSI.SYS for those VT100 escape codes to work i... (by Duthomhas)
How to open files
 
I am trying to create a few programs that can open other programs... one is going to be used to open a music file and the other to open other applications. If...
[1 reply] : About files: http://www.cplusplus.com/doc/tutorial/files.html Sorry, ... (by Scipio)
Using reference parameters.
 
I am writing a function to do percent values... I need to return them all to the main function.. I know OF reference parameters.. not how to use them or how to ...
[2 replies] Last: i would also suggest you put all three variables in a class/struct. th... (by anders43)
Exception handling in turbo c?
 
Hello to C++ lovers. i am mak from india. i am using Turbo c/c++. but i could not use exception in my compiler and also i couldn't use bool datatype and so ...
[3 replies] Last: C++ features were introduced over a number of years. RTTI, exceptions... (by kbw)
by vad
compiling code with a makefile
 
Hello all, I was wondering if someone could help me out. I'm not a programmer so please bear with me. The code is a disparity-map generation programme that is...
[2 replies] Last: Thank you for your reply. The thing is there is no documentation to s... (by vad)
counting the whitespace from the end
 
hi folks, new to c++ . i am trying to count back in a sentence to find the last white space then reveal the characters after it. i am kinda stuck in the whil...
[13 replies] Last: ok no prob , thanks for your help. (by winggeek)
January 2009 Pages: 1234... 16
  Archived months: [dec2008] [feb2009]

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