
please wait
Adding odd and even numbers |
Hi guys. Ive tried several ways of doing this program, taking 4 numbers, then adding the even together , then the odd. I keep getting weird answers. Also, I'm s... |
Dec 23, 2017 at 9:28pm
[4 replies] Last: Thanks a lot, I'm starting to have my normal day thinking being preced... (by danpbrown1973)
|
by lithony
how would you store string in the object
|
Does anybody knows how to store the received message ( 'string' )to object? ErrorMessage errorState; void NonPerishable::message(const char* string... |
Dec 23, 2017 at 8:45pm
[3 replies] Last: To put what's been said another way consider the following; std::s... (by Joe C)
|
by Daim
Noob need help
|
l just want to know how "GetYN" function is working like in "GetYN" function i declare that the "ch" does not equal to "Y and N" but when i am calling "GetYN" f... |
Dec 23, 2017 at 6:21pm
[2 replies] Last: Hello Daim, Welcome to the forum and thank you for using code tags. ... (by Handy Andy)
|
by leedlee
how to use <graphics.h> header file in dev cpp?
|
i got sample snake game code from an open source and it starts with the <graphics.h> header file. the compiler can't run the program. anyone knows how to solve... |
Dec 23, 2017 at 6:08pm
[2 replies] Last: You need SDL_bgi . http://libxbgi.sourceforge.net/ (by Duthomhas)
|
by Bopaki
I do not getting the output that I expect on my pogram
|
When I compile and run my program I expect 6 to be written to the output file, but I get 10757710 written there. What could be wrong? //Reads three nu... |
Dec 23, 2017 at 1:43pm
[4 replies] Last: #include <fstream> int main() { const char infile = "file.dat" ... (by JLBorges)
|
by salmanilyas
if-else error
|
I am having problem with this statement please help.thanks for your time #include <iostream> using namespace std; int main() { int a=10,b;... |
Dec 23, 2017 at 4:26am
[7 replies] Last: thanks alot jonnin it was very helpful. (by salmanilyas)
|
by lithony
creating an object in dynamic memory
|
Hello, i am unfamiliar with c++ and I was wondering how you could make helper function to create an object in dynamic memmory and return its address class_n... |
Dec 23, 2017 at 3:55am
[3 replies] Last: JLBorges is demonstrating to you how you would accomplish this using s... (by Uk Marine)
|
by lithony
return value doesnt match the function
|
I am getting an error saying return value does not match the function type at the return sku part. Anyone knows why? const char* NonPerishable::sku() const ... |
Dec 23, 2017 at 3:20am
[2 replies] Last: The name of the function sku in the inner scope hides the name of th... (by JLBorges)
|
by liz Lopez
bar graph
|
Create a program that displays movie ratings on a bar chart, similar to the one shown in figure 8-28 Figure 8-28: How many reviewers? 4 Movie ratings mus... |
Dec 22, 2017 at 10:38pm
[4 replies] Last: thank you. (by liz Lopez)
|
Why is my editSquare function not changing the value in the square? |
Hi. I'm working on a project that's supposed to allow the user to play Sudoku. I believe I have most of it figured out, but when the user tries to edit the valu... |
Dec 22, 2017 at 9:53pm
[4 replies] Last: Hi. I'll do this, but here's why I think it's not working. I'm suppose... (by closed account NhUR4iN6)
|
by salmanilyas
Increment/decrement operator Problem
|
I need help with this increment statement: expected answer was 39 & 13 BUT i get 37 & 13 #include<iostream> using namespace std; int main()... |
Dec 22, 2017 at 8:41pm
[8 replies] Last: Ok thanks for your time sir really appreciate it. (by salmanilyas)
|
by ehsan687
When I right std::cin.get(); it's not working
|
why??? |
Dec 22, 2017 at 3:32pm
[3 replies] Last: Hello ehsan687, In addition to what bheadmaster says, what does your ... (by Handy Andy)
|
by abhinavT
what is the use of :: in c++?
|
what is the use of :: in c++? |
Dec 22, 2017 at 2:44pm
[1 reply] : "::" is the scope resolution operator, and it is used to define scope ... (by bheadmaster)
|
by H00G0
Game project recommendations.
|
Hey people! So I've had an idea for a game for a while now, while I'm learning C++. I think I can get around with pretty much the “basics” of object orient... |
Dec 22, 2017 at 1:49pm
[11 replies] Last: I thought of making the tutorial of the game first, implementing the ... (by MikeyBoy)
|
by Phatnaru
Beyond the tutorials & pulling data from webpages
|
Hey guys. So, I'm a noob. I just finished all of the tutorials, and I'm wanting to get started on my first non-tutorial program. I work a job where I receive... |
Dec 22, 2017 at 12:56pm
[4 replies] Last: Do download a file you can use URLDownloadToFile - no need for any lib... (by Thomas1965)
|
by Simon Maribo
I will learn programming.
|
Hello, I will like to be good at programming. So I will ask about how to start. I have never used programming before, but I really wants to learn it. If you kn... |
Dec 22, 2017 at 6:07am
[5 replies] Last: Go look at Bucky's videos: https://thenewboston.com/videos.php Pick a... (by Nexius)
|
please help me. i have a presentation tomorrow |
#include <iostream> using namespace std; void display(); int fabricNum; //declared variable globally int main() { int x,y,z; cout<<"enter warp... |
Dec 22, 2017 at 5:03am
[7 replies] Last: Oh dear, this is gold haha. How tempting is it to answer every post wi... (by H00G0)
|
by Sh0es
Is my constructor wrong?
|
I'm trying to make a working vector-type object as a personal exercise in data structures. I have the following primitive data in it. T* data; int size; ... |
Dec 21, 2017 at 9:39pm
[7 replies] Last: AList<int> arr; arr = AList<int>() So here you have an object of t... (by Repeater)
|
by leorio
Strictly Increasing Sequence of Integers
|
Hey, guys. This is a problem on CodeFights that I'm trying to solve. Given a sequence of integers as an array, I have to determine whether it is possible to obt... |
Dec 21, 2017 at 6:49pm
[11 replies] Last: Yeah, I should have tested against more values but at the time of writ... (by rabster)
|
by SpringLC
Binning an array of data.
|
Hi, I have an 1 dimensional array of values. I did plot a histogram of the data in python (using the hist function), and it turned out great. But now I want t... |
Dec 21, 2017 at 2:55pm
[2 replies] Last: since you are using a vector you can actually do most of the work here... (by jonnin)
|