Beginners - March 2014 (Page 61)

please help me solve this...
 
hi all master...can help me with calculation for average in array? im blank..doing search but not helping me..sorry...all week script is same? i want get averag...
[1 reply] : error compile log Compiler: Default compiler Executing g++.exe..... (by shuyina)
by enemy
Pointer to a structure
 
Hello! Please, if one structure has more objects (let's say 8), pointer to which of them is pointer of the structure? Many thanks!!!
[2 replies] Last: " A pointer can point to an struct object, but a pointer can't point t... (by enemy)
Test if vector has even amount of elements
 
I would like to know an if statement that will test if there are even amount of element in a vector. EDIT: LoL just figured it out: if (storage.size()%2 ==...
[no replies]
by chofs
how to separate an integer into a single digit
 
hey guys jst wanted to knw how can i separate an integer into a single digit..........e.g 12345 into '1','2',3','4','5'
[3 replies] Last: you can also use a mathematical operator... easy to read and understan... (by aliasdan30)
Odds of 100000 games of craps
 
Hello all. Really at my wits end with this. I made a craps game and that was fine. On top of it I was supposed to then make something that could give me the odd...
[no replies]
Can't find a logic error
 
This program is supposed to accept integer inputs until -99 is input, at which point it's supposed to output the greatest and least values input. But when I run...
[5 replies] Last: Numbers are read in a loop. Let us take it step by small step: This ... (by JLBorges)
by delio
How can I make zoomable square table in SFML?
 
I have 2 questions. 1.How can I make zoomable square table like in the picture below? http://i.stack.imgur.com/LKmtD.gif At first, there is no line of til...
[no replies]
Resize Console Window Question
 
Well hello there, recently I've make some string which contain a long sentence and a lot of words and when I run it to see the output, the sentence is to long t...
[1 reply] : Portable way : none, console is just a medium for input/output. std::... (by MiiNiPaa)
Hangman boards
 
This is what I have to do: ◦Indicate to the user whether or not the letter to guess was valid or invalid (case insensitive search). ◦Draw the hangman boar...
[no replies]
HELP! - Bell Curve Simulator
 
The program simulates a ball going through a pyramid of pins, and calculates which slot it ultimately ends up in. As balls accumulate in the respective slots, a...
[no replies]
Avoiding Global Variables
 
How would I fix my program to avoid my variables being global? (Note: I took out the actual code for viewing simplicity.) #include <iostream> using na...
[2 replies] Last: You can pass arguments to functions by value and by reference, and ret... (by keskiverto)
by enemy
"point" class questions
 
Hello! Please, if we have point.h file, like this one: // point.h class point { private: int x, y; public: void init(int x1, int y1); int ...
[1 reply] : It is normally done in the main programme file. -Create the main file ... (by Aceix)
by enemy
Link about "get"
 
Write your question here. Der All! Please, can someone send me a link where get / getX is good explained? Many thanks!!! // point.cpp #include <iostr...
[2 replies] Last: Hello! Does it mean, they do just what I define them to do? In other w... (by enemy)
by enemy
init
 
Write your question here. // dot.h class Dot { private: int x, y; public: void init(int x1, int y1); int getX(); int getY()...
[2 replies] Last: Hello! "sth" stands for "something"! Thank U!!! :) (by enemy)
Whats the answer with these questions?
 
1.How many data types can the elements of an array have? 2.What happens if the number of initializes is more than the size of the array? 3.Suppose that we...
[1 reply] : a combination of Googling and executing code for yourself will answer ... (by metulburr)
by Wedge
class ifstream variable not recognised from header file
 
I am attempting to write a script to extract a table of information from a PDF file, that is in a standard format. I have started to write a class definition...
[1 reply] : std::ifstream, std::string, std::getline, etc. (by MiiNiPaa)
stack overflow.... help...
 
how to solve the"stack overflow"problem????? i'm practicing to write a program about "maze" the following are parts of my code it have a problem of stack over...
[1 reply] : You are recursevly call your function. Looks like it is either inpt ve... (by MiiNiPaa)
how can I write this program?
 
I was doing practice problems and I came across this program and I have no clue how to write it. this is my first c++ course so i'm pretty much new at this. her...
[1 reply] : Please note, that this is not a homework site. We won't do your homewo... (by MiiNiPaa)
Program running, then crashing
 
Okay, I had an earlier post http://www.cplusplus.com/forum/beginner/125473/ I figured out what I needed to do and attempted doing it. My code is sloppy I'm s...
[4 replies] Last: I haven't studied your code in detail, but it seems that you are doing... (by abhishekm71)
by Sam99
Linked list problem while taking input
 
Whats wrong here? The compiler says, Data does not name a type. Question: How can I add some info instead of a single value as a node in Linked List? Pl...
[1 reply] : Well, there is no type named Data defined anywhere. Ming tellying what... (by MiiNiPaa)
March 2014 Pages: 1... 5960616263... 79
  Archived months: [feb2014] [apr2014]

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