Beginners - February 2014 (Page 16)

by leo255
Need to merge two arrays, and sort them
 
Hi all, I need to merge two arrays. I already have a bool function that should find out whether or not a particular array is sorted, and I call it inside my me...
[1 reply] : Line 15: last iteration will have i==elements-1 Line 17: access a[i+1]... (by keskiverto)
Constructor with variadic templates or something like that?
 
Suppose we have enum Pet {Dog, Bird, Cat, ....}; struct PetStore { double dogWeight, dogHeight, // and many more int catAge, // etc... Color bi...
[7 replies] Last: Emulating C99 style 'designated initializers': #include <iostream> #... (by JLBorges)
help with guessing game
 
Write your question here. hey guys for some reason everytime I use this program it messes up it doesn't show the messages as I have them there and theres 2 m...
[3 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using namespa... (by shooter1234)
Gallons to liters
 
Hey guys, I'm back. I was doing quite well on my own for awhile too! -Anyway, I'm writing a program that converts gallons to liters using a FOR and a WHILE loo...
[2 replies] Last: This is why I love this site! Thank you so much! (by Kevin15663)
by icegb
Problem with a simple beginner program...
 
Hi, I tried to build a simple program giving temperatures in °C and °F. Here is the code: #include <iostream> #include <cstring> using namespace...
[no replies]
swapping nodes in a singly linked list
 
I am trying to write a program that gets the input from a word file puts the word in a node and puts the frequency in the node as well. I got that working but n...
[no replies]
Diamond shape explanation
 
Hi there , the below program prints a diamond shape. this program was written by Fazle R Dayeen. I am very interested in printing different patterns like this....
[3 replies] Last: Would you please suggest some tips to understand such problems ? Lo... (by Disch)
Using Maths to print patterns
 
Hello There, I need your expert advice on a tricky programming related question. How to use maths functions to print a particular pattern such as diamond or a ...
[2 replies] Last: thank you brother you solved my problem. :) You gave me the clear Ide... (by JDragon)
by TX9200
Vector, class and pointer
 
Suppose that I have a class which has a vector of pointer to another class class b { public: void genericFunction(); } ========================= #include <v...
[1 reply] : #include <iostream> #include <vector> struct A; struct B { B() ... (by cire)
by Shoxin
Help with classes
 
I am trying to teach myself C++ through the use of e-books and videos and I have a question on classes. I am using a basic text based pokemon game as an exampl...
[3 replies] Last: Either : #include "stdafx.h" #include <iostream> #include <string> ... (by SorinAlex)
by Leon23
Pressing return key to skip to next!
 
I was making this program where I had to take inputs in an array. And I wanted some places in the array to not be filled. That I press the return key and the pr...
[5 replies] Last: #include <iostream> int main() { const std::size_t N = 10 ; ... (by JLBorges)
Matrix Multiplication
 
Hello everyone, I recently tried to do a program to multiply 2 matrices. I did everything right with the exception of 3 lines(IN BOLD) that were missing on my ...
[no replies]
by bllnsr
returning values from a function using pointers.
 
Hello everyone I am new to C++ especially pointers so I need some help with them. I want to print 15 multiples of any integer entered by the user and I know tha...
[2 replies] Last: thanks for your help ShodanHo and here is the code after correction wh... (by bllnsr)
by Leon23
Stack - Push 'n Pop
 
Hey guys! I was trying to make Stack's push and pop functions. My push() is working fine but my pop() is giving me a headache. It doesn't delete the very last e...
[3 replies] Last: y inside the pop function is a copy of the variable that you passed to... (by Peter87)
trying to integrate 2 functions of trype x^a by parts
 
I admit this is a little ott for a 3rd program but it nearly works it's just the final lines the compiler has a problem with. #include <iostream> #includ...
[3 replies] Last: i think im getting closer with this.... it's a start anyway..... it ju... (by jordy1993)
by RabMac
Making an Account Number
 
Hi, I was wondering is someone could help me with this problem. I am making a bank program and I need to assign each new customer an account number. The acco...
[6 replies] Last: > [Linker error] undefined reference to > `Customer::number_of_accoun... (by JLBorges)
Simple DeleteRegKey fail
 
I cant get my head around this one My regdelete was working awhile ago but i have added heaps more to my code an now i dont know if i changed anything to this. ...
[1 reply] : You should try this example: http://msdn.microsoft.com/en-us/library/m... (by modoran)
Play sound buffer contains mp3 data
 
I have buffer with mp3 data (mp3 data can be unfinihsed). How to play it? Maybe some library? I am coding under Windows, but it would be better if this lib is ...
[1 reply] : Use BASS library, it is cross platform and very easy to use: http://ww... (by modoran)
Array must be initialized with a brace-enclosed initializer
 
Hello everyone, I have a string "path" that I'm trying to assign to the variable "src". But when I try to do this, I get the error "Array must be initialized...
[4 replies] Last: It works now. I made: char *src=&path ; I don't know what I just... (by theRunner)
by RabMac
Issue with my class
 
Hi, I am trying to create a class that adds one to the variable "number_of_accounts_created" each time an object is created. However, this value is being set...
[2 replies] Last: Cheers mate, I thought that was where the problem was. I will get my t... (by RabMac)
February 2014 Pages: 1... 1415161718... 60
  Archived months: [jan2014] [mar2014]

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