Beginners - November 2009 (Page 14)

c++ classes, need easy understanding?
 
im learning c++.(using Sams-teach yourself C++ in 10 mins(per chapter)) I have been doing well and everything seems to be coming to me pretty easy,plus I am fa...
[3 replies] Last: What in particular are you having trouble with? It will be easier to h... (by mcleano)
Functions
 
#include <stdio.h> #include <math.h> #include <conio.h> void main(void) {float x,w;const float a=2; clrscr(); printf("Culege valoarea lui x:\n"); scanf...
[2 replies] Last: Should i replace pow with sqrt?...I have radical of 3 degree....I don'... (by Andrew1990)
GDB, stackdump errors
 
Ok, I did have a post about this a week ago or so, and someone told me to use gdb, which I went away and learned all about (handy). At the time I realized my mi...
[3 replies] Last: ok figured it out, silly VIM error the condition was still stuck on ... (by gcampton)
item database in .txt solutions
 
hello everyone! I am a beginner in programming. I am making an RPG game that mostly resemble ragnarok but text based. my problem is on item database. i need s...
[4 replies] Last: thanks again! I'm gonna look at it in further detail later. research t... (by ragnamanga)
by j3tt
Display bonus amount (learning functions)
 
I'm getting 56 errors on this. I'm still learning the basics of functions and how exactly to set them up... //Calculates and displays a bonus amount #i...
[18 replies] Last: yea pretty pisspoor example if you ask me LOL, anyway verging on troll... (by gcampton)
getline for reading string file
 
I am having trouble loading the txt data into my array with the getline function. /* Global Headers*/ #include <iostream> // include s...
[5 replies] Last: void Program::setInFileName(string inFlNm) { inFile = inFlNm;... (by gcampton)
Is size_type and size_t the same?
 
as above?
[10 replies] Last: btw, where can I find all the typedefs and function prototypes of eac... (by JivanAmara)
Code C2562
 
I am writing a code that draws 4 triangles. I keep geeting code C2562 'Triangles::drawTriangles' : 'void' function retruning a value. PLease help. I am using Vi...
[6 replies] Last: No, not exit 0; . Literally, exit(0); . It's a function, not a synta... (by helios)
by jimctu
char to int problem
 
hi everyone... I have an array of chars: ifname in this array i can have anything, letters, numbers, special characteres... i have to get the ascii code of...
[2 replies] Last: chars are just integers. You don't need to do anything special to get ... (by helios)
function isnt returning the right numbers
 
im making a function to calculate stats for a text rpg i am making(this is just part of the actual game). i input the numbers and when i display the numbers i i...
[2 replies] Last: You seem really confused on how functions work...go read this: http:/... (by firedraco)
brute force
 
i need a help in a program ,, which searches the given pattern in the given text. using brute force ....
[1 reply] : i need a help in a program ok ... ,, My brother uses dou... (by DrChill)
Assistance needed with a c++ lottery program!!
 
I am trying to figure out how to make a program that determines what the chance is of winning a Powerball style lottery. To do this, I need to generate a "winni...
[5 replies] Last: what are code tags? I'm sorry if I'm an idiot but I'm just trying to l... (by rietveldjared)
maximum file positions using fstream?
 
Hey There... I have the following question: While using fstream file-operations and searchin/counting/etc file positions; Is the maximum number of posi...
[1 reply] : Yeah, addressing beyond 2Gb is typically a problem for most OSes and f... (by jsmith)
Cannot print the contents of a Linked List
 
Hello everybody! I'm having a difficulty printing the contents of a list. The following for loop will not run at all.I mean even if the list was empty the for ...
[2 replies] Last: Looks fine, it should print. It will be interesting to see the implem... (by writetonsharma)
what is "\t"?
 
just explain it... just like how you explain to a complete noob... :D
[2 replies] Last: P.S don't use /a it's hella annoying :( (by gcampton)
sorting string array
 
Sorry I know there's lots of topics on this, i did internal search and was flooded, with hundred of pages. But my question will be brief and at least in my mind...
[7 replies] Last: woops sorry, missread... :D thank you very much (by gcampton)
Number program - Sum of Even Digit
 
What should be the correct way to find the sum of even digit for Line 21? For example, 123456 sumEvenDigits = 2 + 4 + 6 = 12 #include <iostream> using na...
[1 reply] : You are not summing the even digits, you need to initialize sumEvenDig... (by Bazzy)
Confused by the commentS
 
#ifndef __ASGN3_H__ #define __ASGN3_H__ #include <iostream> #include <string> using namespace std; #define MAX_ELEMENTS 10 class StringSet { publ...
[5 replies] Last: thx all of you, i get it , you are so helpful. (by lampardlau)
qns on int args for cstring functions
 
why does isalpha, etc take in an int value as opposed to a char?
[2 replies] Last: so is the local parameter 4 bytes for 1 byte? (by unregistered)
Classes have me completely at a lost. Need some info (1,2)
 
Well we started classes last week in my C++ class but I have had swine flu and missed a lot of it. Anyways heres my assignment: a. Construct a class named R...
[20 replies] Last: You could keep it as it was, you just would need to check if g was N... (by firedraco)
November 2009 Pages: 1... 1213141516... 25
  Archived months: [oct2009] [dec2009]

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