General C++ Programming - September 2013 (Page 22)

Using initializer lists
 
I am trying to write a program that will initialize a new "Square" object with private const data me...
[3 replies] Last: Well, I would still suggest you leave the converting from C-string to ... (by Daleth)
Help with my array
 
How can I get the array to repeat itself after it hits 9? So like this 0,1,2,3,4,5,6,7,8,9,0,1,2,3,4...
[3 replies] Last: #include <iostream> using namespace std; int main() { const int arr... (by bc87)
doubly linked list reverse
 
my code is #include<stdio.h> struct node { int info; struct node *next, *prev; }; ...
[1 reply] : http://www.cplusplus.com/forum/general/110540/#msg603546 (by Duthomhas)
dynamically allocate array
 
someone please help me so I want the user to be able to enter as many numbers they wish. so this is ...
[13 replies] Last: I mean how do I let the user enter the size of the array followed by t... (by Stephaniei492)
Finding The Probability of Moves
 
hi. I'm writing a program that finds the probability of moves a Knight can make on a chess board. Th...
[3 replies] Last: If you don't want to use a lot of if statements, then here's a version... (by manudude03)
Help with an array
 
How would one go about creating an array that cycles through the same numbers? for example {0,1,2,3...
[2 replies] Last: Something like this? #define ARRAY_LENGTH (15) #define REPETITION_LE... (by doug4)
i am hving trouble with this program.plz correct it
 
initilze (N*N) matrix with random number in the range 1-9 #include<iostream> #include<conio...
[no replies]
Pass by value arguments changes orignal copy?
 
//This program calls unionLL function which takes list1 and list2 objects of //LinkedList type as ar...
[1 reply] : class LinkedList { private: Node* head; public: //... }; void u... (by ne555)
Python Programming for beginners.
 
First off, i am sorry if this is the wrong plase to post this. I dont know where to. I am looking...
[3 replies] Last: There are posts all about the difference on every Python forum. Googl... (by cnoeval)
Troubles with vector of objects?
 
Alright, I've been working on a version of Battleship and I am having some issues I'm pretty sure wi...
[2 replies] Last: Ok well as can be seen I use push_back() several times here so that ... (by Austin J)
Recursive Functions
 
Hi guys. I'm having a hard time trying to understand Recursive Functions. void printnum ( int begi...
[7 replies] Last: nice explanation... I was trying to say the same thing :) (by Albo Coder)
by azman
begineer
 
i'm new at c++ programing.can anyone help me with this program??
[2 replies] Last: Maybe you should try to explain what program you are using....Otherwis... (by ragecoder)
Saving unicode data to a .txt file
 
Hello, I have a problem when i try to save unicode to a .txt file. I need to store in a file names...
[2 replies] Last: It worked with UTF-8 and UTF-16LE. Thanks a lot. That was the problem.... (by Gabirvl)
by DIP RO
Function call is skipping! Dont know why
 
When I call the member function in the main function, two functions are working fine but the third o...
[3 replies] Last: for(int i = -1; i < names.size(); ++i) ¡¿ -1 ?! (by ne555)
Ascending Order of an Array
 
I tried to make this code to output an array in Ascending Order but the output is showing weird outp...
[2 replies] Last: Thanks a lot! It's so silly of me to not have seen it. (by kunalsulekh)
i am confused.plz help me.
 
how to creat a dinamic ARRAY of size (n*n) where n is specifeid by user wirit a function. # inclu...
[6 replies] Last: okt nx..i will try.if i fail,thwn will tell you (by Mehdinaqvi)
by Cinolt
Overloaded Operators
 
I'm implementing a rational number class: #include <iostream> #include <stdint.h> using namespace s...
[5 replies] Last: You talk about limiting the number of member functions, but I don't s... (by cire)
Need help in File Parsing in C/C++ !!
 
Hi All, I have to write a C/C++ code which can read a text file with the following contents : ...
[6 replies] Last: You are using C. C++ has much more "convenience features". You do as... (by keskiverto)
arrays question
 
My problem is that I'm trying to add parts of an array into a string variable for output. Numeral =...
[4 replies] Last: But you could do: Numeral = string(_THOUSANDS ) + _HUNDREDS[hundred ... (by cire)
Non-scalar type requested
 
Here's my constructor: GuidedTour(string id, string description, double fee, int numBookings, stri...
[7 replies] Last: Please don't do that. It's rude to PM (why should you get help but no ... (by LB)
September 2013 Pages: 1... 2021222324... 36
  Archived months: [aug2013] [oct2013]

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