Beginners - December 2010 (Page 9)

concatenating confusion
 
I am a little confused as to how this works: cin.get(name, size).get(); I know what it does ...
[2 replies] Last: The best way I can explain the first part, partly because it's somethi... (by Computergeek01)
by MFA
what is wrong with my code?
 
Hi Im a new member and i need ur help. I have to write a program to solve the following equation ...
[2 replies] Last: yup u r absolutely right the problem is with the precision however i f... (by MFA)
by MFA
Can u give me an idea on how to write this program
 
i have a homework to output the array below 0 0 0 2 0 0 0 0 0 2 4 6 0 ...
[2 replies] Last: hhh nice solution. Thanx for the reply, yeah i think i got the idea... (by MFA)
Dynamic arrays ad use of 'new'
 
Hello, If in my program I am going to read a number n and will require an integer array with n...
[8 replies] Last: Pointers have their uses for creating "links" between values or for ea... (by Albatross)
veriable scope of map datatype
 
i am making modification to an existing research application, and i am having trouble with map data ...
[1 reply] : I don't understand. Could you post a code example? (by hamsterman)
by sylar
Linker Error in Program
 
The main file of my program mainfile.cpp. #include "classfile.h" #include "test1.h" int main(...
[1 reply] : You haven't said what the error is. You need to post it verbatum. ... (by kbw)
by Bianco
Trouble with a program on C
 
Two files FA and FB whose names are entered on the keyboard contain integers sorted in ascending ord...
[1 reply] : It looks good so far. You need to have seperate variables for the siz... (by kbw)
Empty the input buffer
 
How can I empty the input buffer? There is a function to do it?
[5 replies] Last: I'm sorry but I don't understand all your code. cin.ignore( numeric_... (by Overflowh)
by tonnot
Global instance vs. Singleton. Pros & cros ?
 
Hello everybody: Can anyone explain me (a link can be appreciated) de differences ? Which is the ...
[no replies]
by linoch
#include "ccc_time.h" doesn't work?
 
Hello, I was trying to program the current time and the time left for lunch, but it indicates that t...
[5 replies] Last: File > New > Empty File BTW, where did you get the code above from? (by Bazzy)
Adding numbers
 
I am trying to learn c++. One interesting program requires to accumulate a running total of numbers...
[2 replies] Last: #include<iostream> using std::cout; using std::cin; using std::endl... (by sylar)
c++ problems with printing bubble, insertion, and selection sort program?
 
I have been working on a program that requires me to use bubble,insertion, and selection sort. My pr...
[2 replies] Last: I check the insertion sort. I did not using function "insertItem", and... (by guevara)
Initialising a class within a loop
 
Hello everyone, I am working on a Draughts game and have got a Draught class. I will need 12 pieces ...
[no replies]
by Zyborg
Can my code be reduced? (I'm sure it can be)
 
I am trying to make a game where the game randomly chooses orcs that you fight. I want the game to ...
[9 replies] Last: thanks JoR I understand rand() a little bit more now. (by Zyborg)
compiled ok but no execution
 
*sort 3 numbers from highest to lowest by functions*/ #include<stdio.h> void read(int & v1,int...
[2 replies] Last: thanks a lot, i corrected it but it keeps giving error before getting ... (by pabloli150)
by wtf
What does this do?
 
I have some globals declared such as: char englishlist = {'a', 'b', 'c', 'd', 'e', 'f', 'g'...
[3 replies] Last: Look at line 10. You're checking for a space as a mark for the end of... (by Disch)
Is one variable initialization better than the other?
 
I see that there are 2 different ways to initialize variables in C++: int owls = 101; // tradit...
[3 replies] Last: With user defined types, a temporary object then copy construction fo... (by Disch)
average is correct but the sum is wrong. :)
 
I'm having a problem with my program. I'm able to input all 10 numbers in but when it out puts the s...
[2 replies] Last: In case you still need the answer... Following main(), it looks lik... (by Maybevin)
by ckdur
Resizing pointers
 
Hello! i'm using this code for resizing pointers (i don't like to use realloc) int CAccReader::...
[3 replies] Last: "CString****" this is because I need to save data, and sub data, and ... (by ckdur)
by moe93
Continue statement not within a loop.
 
#include <iostream> using namespace std; int main() { int drinks; cout<<"Hello t...
[4 replies] Last: Like I said, continue quits the current iteration of a loop, so if a c... (by quirkyusername)
December 2010 Pages: 1... 7891011... 35
  Archived months: [nov2010] [jan2011]

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