Beginners - April 2008 (Page 7)

by joe25
addition of 2 multidimentional arrays
 
hello!i am a beginner and i do not know how to add 2 multidimentional arrays.i need help.please help me.i need only the ideas.thanks.
[1 reply] : Just iterate through and add them: int array1 ; int array2 ; ... (by gzero)
PLEASE Help with long increment
 
Hi people! I'm starting programming in C++. I thought it would be easy because I have some experience with Java, but it is not so, really. I'm completely ...
[1 reply] : You're going to have to post your code if you want an answer. I can't... (by gzero)
by iggi
c string conversion
 
I seem to be having issues with my program, I am attempting to read in a first name and and last name with a "/" between then separate the first and last names ...
[4 replies] Last: How about this: #include <iostream> #include <string> using name... (by closed account z05DSL3A)
help with some crazy string
 
hi, im kind of new in programing and im trying to make some function that take string and go over the string and "cout" to me the letters that apear in the s...
[4 replies] Last: wow!! thank u guys for helping me, its my first time in this forum,... (by shacharsa)
by aslamc
How quick do I get a response
 
I was just wondering how quick I got responses around in this forum?
[1 reply] : That would depend on what you ask, how soon someone who can answer you... (by closed account z05DSL3A)
How do I use getch() to return a value for numpad 5?
 
How do I have getch() or a similar function return a value for numpad 5 (numlock is off)?
[no replies]
by Robo
Need help with objects in Liar's Dice
 
I'm new to classes and objects, and I am working on a Liar's Dice game for practice. I have come across a few issues. I included a method, roll() and each in...
[2 replies] Last: Thank you so much. This is very helpful. I was having issues declaring... (by Robo)
Restarting a program
 
I have made an area calculator that correctly tells you your area of 6 shapes depending on the information givin. But it's not complete yet, I need it so when ...
[2 replies] Last: Oh, i would have never of thought of that, thank you very much (by Superiormatt)
Help, please, with a basic array/vector error.
 
#include <iostream> #include <math.h> #include <conio.h> #include <iomanip> using namespace std; double x = {0.0}; int j, M=5, N=1; double P = {0...
[3 replies] Last: Thanks for replies. Using bloodshed dev++. The output screen freezes a... (by pyramidork)
by Gregg
sizeof operator
 
Just need some help understanding the sizeof() operator. In main() I have an array int list = {1,2,3,4,5,6,7,8,9,0}; if still in main() I use a sizeof() ope...
[4 replies] Last: Thanks Gray, This works when inside the main. If I call the function ... (by Gregg)
copy constructor
 
Am writing a program using copy constructor the code goes like this class test { int a,b; public: test() { //statements } test(test &t) ...
[2 replies] Last: Also, you don't even need to implement the copy constructor as newer c... (by jsmith)
char array
 
class student { char name ; int rno; public: student() { rno=1; //valid name="abc";//it is not valid } }; the a...
[2 replies] Last: As a matter of coding technique, when initializing data members of a c... (by jsmith)
copy constructor
 
is the below code is valid class test { int a; public: test() { a=o; cout<<a; } test(int a) { a=a; cout<<a; } test(test &t) //copy c...
[5 replies] Last: >> but then this is logically extended to avoid 'a' as an attribute na... (by ropez)
by bashi
Experts Please help
 
i want to create a construct which enables me to have a array of records from different types ie the student array consists of name as string & marks as ...
[2 replies] Last: can i use all the loops on this code plz help i am a beginner (by bashi)
My bools appear as 205 and 105
 
I have a dynamic array called terrain. I was wondering why my code doesn't work until I had to cout<<terrain , which returned 205 when false and 105 when tru...
[2 replies] Last: Sorry, I forgot to add a bunch of stuff, and I can't add because I los... (by Dastreous)
i'm an all-around newb..
 
hey, i'm brand new at this programming stuff, but i'm really interested in learning c++. i've downloaded a compiler and have been reading a few tutorials, etc. ...
[1 reply] : The following code is probably the very first C++ program that most pe... (by rpgfan3233)
How do I find how many integers that equal 5 in an array
 
I know your probably getting tired of me by now but! If I roll five dice and want to keep them for a score but only use how ever many fives are in the roll for...
[3 replies] Last: I appreciate all the help but I got it figured out. Thanks again! (by katielynnsdad)
setw
 
The following code produces the output 1. What changes do i need to hava output 2? #include <iostream> #include <iomanip> #define tamanho 2 using namesp...
[2 replies] Last: Thaks ... that is just what i neaded. The final version will be: #i... (by graciano)
array and pointers
 
What is the difference between a char name ="abc"; char *name="abc"; is there any difference between a integer pointer and char pointer how elements a...
[2 replies] Last: First of all, I'm no authority on the subject of pointers and arrays a... (by rpgfan3233)
Binary Search Trees
 
Hey, so I'm having a lot of trouble writing a class for binary search tree's. It must perserve AVL at all times and do single and double rotations where necess...
[2 replies] Last: @TFulton88 I can give you my binary search tree template class for st... (by guruplus)
April 2008 Pages: 1... 56789... 18
  Archived months: [mar2008] [may2008]

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