
please wait
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... |
Feb 22, 2014 at 8:54pm
[1 reply] : Line 15: last iteration will have i==elements-1 Line 17: access a[i+1]... (by keskiverto)
|
by prestokeys
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... |
Feb 22, 2014 at 8:40pm
[7 replies] Last: Emulating C99 style 'designated initializers': #include <iostream> #... (by JLBorges)
|
by shooter1234
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... |
Feb 22, 2014 at 7:58pm
[3 replies] Last: #include <iostream> #include <cstdlib> #include <ctime> using namespa... (by shooter1234)
|
by Kevin15663
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... |
Feb 22, 2014 at 7:07pm
[2 replies] Last: This is why I love this site! Thank you so much! (by Kevin15663)
|
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... |
Feb 22, 2014 at 7:04pm
[no replies]
|
by Brian518
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... |
Feb 22, 2014 at 6:30pm
[no replies]
|
by JDragon
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.... |
Feb 22, 2014 at 6:10pm
[3 replies] Last: Would you please suggest some tips to understand such problems ? Lo... (by Disch)
|
by JDragon
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 ... |
Feb 22, 2014 at 6:02pm
[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... |
Feb 22, 2014 at 5:46pm
[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... |
Feb 22, 2014 at 5:20pm
[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... |
Feb 22, 2014 at 5:11pm
[5 replies] Last: #include <iostream> int main() { const std::size_t N = 10 ; ... (by JLBorges)
|
by ninjask93
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 ... |
Feb 22, 2014 at 4:51pm
[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... |
Feb 22, 2014 at 4:36pm
[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... |
Feb 22, 2014 at 4:15pm
[3 replies] Last: y inside the pop function is a copy of the variable that you passed to... (by Peter87)
|
by jordy1993
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... |
Feb 22, 2014 at 3:39pm
[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... |
Feb 22, 2014 at 3:31pm
[6 replies] Last: > [Linker error] undefined reference to > `Customer::number_of_accoun... (by JLBorges)
|
by poohpooh
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. ... |
Feb 22, 2014 at 3:14pm
[1 reply] : You should try this example: http://msdn.microsoft.com/en-us/library/m... (by modoran)
|
by Megaxela
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 ... |
Feb 22, 2014 at 3:08pm
[1 reply] : Use BASS library, it is cross platform and very easy to use: http://ww... (by modoran)
|
by theRunner
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... |
Feb 22, 2014 at 2:22pm
[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... |
Feb 22, 2014 at 1:53pm
[2 replies] Last: Cheers mate, I thought that was where the problem was. I will get my t... (by RabMac)
|