Beginners - March 2012 (Page 16)

static variable
 
What is the use of static variable? Is it necessary when programming games?
[2 replies] Last: http://lmgtfy.com/?q=c%2B%2B+static+keyword (by S G H)
array help!
 
so heey guys again.. /* 6-60 Coding A study of cryptography and its growth as a science can shed light on the nature of languages and on certain aspect...
[6 replies] Last: Yeah, sure you can. It's your array. :-) (by MrHutch)
Help requested for programming functions.
 
I have a very basic understanding of how to code functions. I understand that you must prototype the functions before using them. I am attempting to write a s...
[9 replies] Last: Thank you to everyone for the help. (by dsustudent59)
by Spock
I have an error message I can't resolve.
 
I'm creating a little app to calculate the amount of hours in a given amount of years. I've concatenated the output however I get the following error: erro...
[8 replies] Last: You can use net beans or Xcode. Both have in program running windows.... (by ui uiho)
by Nido
Square root without using math.h
 
I am trying to find square root of number without using math.h library but i am still unable to find its logic. Though i have found that how to find Factorial ...
[7 replies] Last: Yeh... that doesn't work. Try 15 with that and then with mine. Urs ... (by ui uiho)
Alternitave for GOTO?
 
OK so I am a beginner to programming and trying to figure out how to not use the goto code as i understand it has issues. I understand that I can use a while bu...
[5 replies] Last: Thanks guys I understand it now. (by lukemills2010)
by azess
sorting linked list
 
Hi all I am writing a program that creates a linked list of 5 players and would like to sort them by their scores (total). My main program works fine, that i...
[no replies]
by dusk
one choice not working and another choice being activated twice per use?
 
this is the one that is happening twice/three times when you type the choice once if (choice == 'st' || choice == 'ST') { SheildTackle = (rand() % 25)...
[no replies]
Copy constructor, returning pointer
 
Hi guys, Need a little help with a polynomial class. The function "Polynomial operator +(Polynomial& one, Polynomial& two)" makes my program crash. I have t...
[10 replies] Last: toomanystars: To sum it up, I don't see a problem with your construct... (by webJose)
by nayabM
pplzzz look for the error in my code!
 
#include<stdio.h> #include<stdlib.h> #include<time.h> #include <conio.h> int main(void) { int num; int randnum; int tries; ...
[4 replies] Last: [quote=man] c The usual skip of leading white space is suppressed. T... (by ne555)
by Spock
Cookie Monster 'Virus'
 
I've written the Cookie Monster program to test my memory on what I've learnt so far. However, when I run the program, if the user enters several words, the me...
[12 replies] Last: Without adding any extra code the best way to keep your program open i... (by Naureg)
hashing with linear probing(if it collides)
 
what is the problem with my code? pls help... int ss; // global variable int hash::hfunction(int item){ int loc; loc = item % 10; ...
[1 reply] : code tags please!!!!!!!!½! + explaining what the code should do if we... (by Mrcerimo)
Problem with functions - first attempt at C++
 
Hello - This is my first attempt at writing a little program in C++, a simple guess-the-number game. You get three tries to guess a number between 1 and 10...
[6 replies] Last: "For example, BeginGame() has most of the code, instead of Main();I k... (by Mrcerimo)
My Problem In Jacobi Iterative Method
 
Hi All.I'm Very Very Glad To Join This Lovely Site & Speaking With You. In This Term At My University I Have Numerical Methods & My Teacher Asks Me To Write 1 ...
[6 replies] Last: Can you be more exact? I don't really understand what are you saying i... (by CosminNTG)
Car platenumber
 
I have to make a programm with C++ which recognizes the car palatenumber. Normal platenumber for example 123ABC Not a local platenumber 1R or CLOUD7 I know t...
[5 replies] Last: You can do it exactely as you can acces a vector-component, by it's in... (by CosminNTG)
Gaming???
 
so im pretty new into C++ but ive learned the basics and i have absolutley no idea how to write even the simplest game! All i want is a very simple game like po...
[7 replies] Last: There's source code out there for simple games. Download it, print it... (by pakupakuman)
Learning C#?
 
Ok so I keep hearing good things about C#, so I figured I'd give it a shot. Know of any good sites, besides MSDN? I like MSDN and all, but it's good to have a d...
[3 replies] Last: http://sharpertutorials.com/ http://www.csharp-station.com/Tutorial/CS... (by naraku9333)
something weird with setw() URGENT
 
See the following: cout << setw(10) << this->studentID << " " << setw(12) << this->studentName << " " << setw(10) << this->studentMajor...
[3 replies] Last: fixed, i added setw() for " / " and for the credits thanks anyway (by Tony Karam)
sort integers using if-else
 
I wrote this code to sort 3 integers but I can't figure out how to add a 4th. The program is supposed to sort 4 integers using only if-else statements (no loops...
[1 reply] : well....if the number if integer increase, so does if-else statements.... (by SUH)
by nayabM
repeating or exiting
 
a program is successfully built how to add the options of do you want to play again (y/n)
[1 reply] : string playAgain = "y"; while (playAgain == "y") { // your code he... (by Moschops)
March 2012 Pages: 1... 1415161718... 71
  Archived months: [feb2012] [apr2012]

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