Beginners - November 2013 (Page 47)

by JohnJH
need idea..
 
i made a class, which stores it's parameter in a certain way.. i have a .txt file i need to read, and use those inputsparameter for my class. I've made an arra...
[9 replies] Last: I've solved my problem :) (by JohnJH)
Error with Undefined reference
 
How I can fix this error? Undefined reference to 'objZmogus::PridetiNauja()' Undefined reference to 'objZmogus::Rezultatai()' problem is in main.. P...
[1 reply] : I can see the definitions for those methods, so it must be that you're... (by MikeyBoy)
Finding The "Counter" Total of A Loop
 
*
[2 replies] Last: //This program uses a While loop #include <iostream> #include <ioman... (by SamuelAdams)
Compare these two codes
 
Does anyone possibly explain for me which code is the better one? These all work fine. Style 1: // Bug Buster #include <iostream> using namespac...
[8 replies] Last: You could use a smart pointer to manage the release. You'd probably n... (by kbw)
by niyona
Help with assigning random int's to array
 
Write your question here. I am working on an assignment - to create and array, assign it 25 random integers, display the array, then sort the array in ascendin...
[6 replies] Last: My question is this: How would he be able to alter the array by using... (by cire)
Enumerated Types.........Exercise
 
At the end of chapter "Switch Case and Enums". There is one question Write a two-player tic-tac-toe game; use enums when possible to represent the values of th...
[no replies]
Hardcoding text file
 
Hey again everyone! So I'm trying to "hardcode" a file xfile.txt into my program, I;m supposed to be able to access the file and pull info per line. Will Wha...
[3 replies] Last: Will this work in opening my file and be able to use it line by line? ... (by serrld113)
by faris
print function
 
why print function do not display output #include <iostream> using namespace std; class Shape { public: void setWidth(int w) ...
[3 replies] Last: When you have a function that has a return it basically puts that valu... (by crimsonzero2)
Infinite loop
 
Hello, I have been trying to get this right for a while but I just cant seem to get out of the loop. Any ideas on how I can break out of it? This is the problem...
[5 replies] Last: Thank you annatar (by dachain)
file input-output; getline; stuck.
 
deleted.
[4 replies] Last: going to dissect this and try the string route and see how far I get. ... (by sarga301)
data doesn't pass from a class to another
 
i was trying to do a inheritance class whereby it's similar below, but why, whenever a class end, the value returns to it's original value?? Is there anyway tha...
[6 replies] Last: [quote=eddytan95]must going to hv [quote=AA]Don't know what that mean... (by keskiverto)
Arrays issue. won't break out of loop.
 
I'm currently trying to learn arrays, I'm trying to make a set of parallel arrays that will take a user-defined amount of total points for a class, determine th...
[8 replies] Last: Gotcha. Useful to know, thanks. Alright, so looks like minPoints is ... (by bigpurpleharness)
by GGG
Grade program
 
I'm writing a program for school and I really have no idea where to start. I'm really new at C/C++ programing so bare with me please :) . I must make a progr...
[4 replies] Last: Sry for the delayed reaction :D , but BIG THANKS to both of you ! (by GGG)
Using data files
 
So I am given a data file with a list of students names and their answers for a given test. How do I read in the file and store the students names and their sco...
[6 replies] Last: Well, all of the input takes the form of strings. In this case, you co... (by Chervil)
by Chix0r
Decimal-to-binary
 
All I need is a program that will switch from decimal numbers to binary. And it would be easy to do that using strings and so on, but all that I'm allowed to us...
[3 replies] Last: Use another value as a mask, its purpose is to select just one bit at ... (by Chervil)
While loop.
 
I've been having some trouble with a while loop in a program for a tic tac toe game and i can't seem to figure out what I'm doing wrong. what happens is even ...
[2 replies] Last: Alright, thank you. It now works fine. (by Clinker)
by faris
class and pointer
 
how to declare pointer for the derived class Perimeter in main and give an output? #include <iostream> using namespace std; class Shape { ...
[1 reply] : i wrote an answer to similar question few days ago: http://www.cpluspl... (by tath)
Using Parallel Arrays to store countries
 
So I am stumbled on this question, I am learning how to use Arrays and I do not understand the concept clearly enough to write this program. I wanted some help ...
[12 replies] Last: @BHXSpecter Nevermind I found out the solution I had to set the widt... (by canucksfan1)
Beginner Poker game project help.
 
I need help creating a poker program for my c++ class. I'm only allowed to use loops, arrays, if statements... and all of the beginner stuff. I need help seeing...
[1 reply] : You'd better start learning programming itself and C++. It is too hard... (by rodiongork)
typcasting in pointers
 
I have to typecast following dynamic arrays, to change the int into unsigned char, I tried in following way but it does not work, please tell me the solution ...
[4 replies] Last: Where we use dynamic_cast? dynamic_cast is used to cast pointers o... (by Catfish666)
November 2013 Pages: 1... 4546474849... 80
  Archived months: [oct2013] [dec2013]

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