
please wait
by Carcamo
Need help with these random numbers
|
So I've been trying to learn c++ alone with help of guides, but I came to a problem where I needed to know (as funny as it sounds) how many pack of breads and s... |
Jun 30, 2016 at 10:27pm
[3 replies] Last: Thanks! I'm really new to this and I'm doing problems in spanish. I di... (by Carcamo)
|
by pmas98
Doubt in using an array
|
I have a big doubt into converting an integer into an array in C++. So, actually the doubt is in using this array<int,5>. How do i use it? B/c i need to do the... |
Jun 30, 2016 at 10:23pm
[7 replies] Last: Easy, just use the rule you established earlier. Set all elements to ... (by closed account 48T7M4Gy)
|
by aminbhst
counting digits of a number
|
Hi every one I have a question. I joint a c++ class and they taught us how to make a program that can counts the digits of a number . But there was something ... |
Jun 30, 2016 at 8:39pm
[2 replies] Last: Hi, c here is used as a counter. it basically counts the digit. lets ... (by Root919)
|
by FreshBoi22
object created in Function accessible by other functions?
|
I created an array of objects in a function...now is it possible for me to access those objects in a separate function? void seasonEpAssign() { const i... |
Jun 30, 2016 at 7:17pm
[1 reply] : is it possible for me to access those objects in a separate function?... (by AbstractionAnon)
|
by FreshBoi22
File input question
|
I'm building a program to randomize show selection for game of thrones. I built a class for use as an episode template. I want the show title to be incl... |
Jun 30, 2016 at 6:10pm
[1 reply] : Use getline. http://www.cplusplus.com/reference/string/string/getline/ (by AbstractionAnon)
|
by hamlet
help withthis code
|
i am trying to saved one in one list the result of my permutation and give me error. The code is like fallow: #include <algorithm> #include <cassert> #include ... |
Jun 30, 2016 at 5:44pm
[3 replies] Last: How to use code tags - http://www.cplusplus.com/articles/jEywvCM9/ (by closed account E0p9LyTq)
|
by datsuphu
Loops with array and pointer, which one is better
|
Hi all. My question is the same to the title of this topic, i'm not sure using pointer and array which ones is better (i mean faster) here is a simple code de... |
Jun 30, 2016 at 4:16pm
[4 replies] Last: > i'm not sure using pointer and array which ones is better (i mean fa... (by JLBorges)
|
by blesaidoss
Help with coding error
|
I have done this short program to process students marks, ca;cu;ate percentage pass and fail but every time i enter the marks I miss one entry.The number wrote ... |
Jun 30, 2016 at 4:07pm
[6 replies] Last: while(cin >> mark && mark != -1) { // ... } (by closed account 48T7M4Gy)
|
difficulty of a 3d game? |
I wasn't sure how to title this, because I don't know much of anything about programming or languages other then words I've heard. My extent of knowledge with c... |
Jun 30, 2016 at 3:44pm
[2 replies] Last: I also would recommend to post on the job section. Learning the skills... (by Thomas1965)
|
by meahmed
adding cascaded data in a text file
|
Dears, Having a text file contains data like: 2 4 5 6 8 10 How to add the neighbouring data in C++, I mean to add each two and three channels as: 6 (2+4) 11 ... |
Jun 30, 2016 at 3:25pm
[1 reply] : Having a text file contains data like: You'll more than likely need... (by closed account 48T7M4Gy)
|
by MaBunny
Getting this error for the first time(don't kno what to do)
|
Hey guys,so I'm working on a small project of mine and got some errors while compiling the source. The program has a Config class to store the configuration ... |
Jun 30, 2016 at 2:47pm
[6 replies] Last: Heres my Github repo tht ive made:- https://github.com/MaBunny/My_IRC... (by MaBunny)
|
by judylove
Bool Function
|
Cannot find what is wrong, please help create a bool function to check the entered word is whether a palindrome. Thanks for your help in advance. #incl... |
Jun 30, 2016 at 1:50pm
[6 replies] Last: Thank you Half Life G Man, You saved me from the last few days to sol... (by judylove)
|
POS System using c++ |
Hi guys, as you may know (in my username) im a noob programmer. So i want to ask help on what i did wrong? there's few error but it contradict my idea/thinking ... |
Jun 30, 2016 at 12:59pm
[3 replies] Last: if (choice == 'No' || choice == 'no') // in my compiler theres an err... (by jlb)
|
Program returns imprecise results |
The answers my program returns are all off by minute amounts double getDistance(string fileName, string activityType, string reportType){ ifstream megaFile; ... |
Jun 30, 2016 at 11:27am
[2 replies] Last: I'd say the use of eof() as the loop condition is a problem. Try re... (by Chervil)
|
by DodoTedo
main must return 'int' . Please i can't find my mistake . Could somebody help me.
|
#include <iostream> #include <fstream> #include <cstdio> #include <string> #include <exception> using namespace std; void pixelToGrayscale(int& r, int& ... |
Jun 30, 2016 at 9:38am
[2 replies] Last: ... Thank you so much ! What a stupid mistake ... Have a nice day :) (by DodoTedo)
|
Processing an input file |
I'm writing a program that takes in a file in the format: id number name address phone number The input file will repeat this set of four lines an unspec... |
Jun 30, 2016 at 6:33am
[1 reply] : Is the file format fixed, or can you change it? If you are able to ch... (by jlb)
|
Reversing a multi digit number |
#include<iostream> using namespace std; int main() { int number, reverse = 0; cout<<"Input a Number to Reverse and press Enter: "; cin>> number; // ... |
Jun 30, 2016 at 5:33am
[16 replies] Last: Great really Nice expalanation...love it.. U rock.... (by salmanasghar12)
|
by Laganstoop
Clean Code and functions
|
Can anyone please review my code and tell me how i can improve upon it? Like adding functions, whitespace etc. Any help is appreciated! My code: http://co... |
Jun 30, 2016 at 5:18am
[2 replies] Last: I would start by fixing the compiler warnings: main.cpp||In function... (by jlb)
|
by danban
Testing for a specific letter in an array of characters
|
I prompt them for a code (will be in the format 'a1111') and I need to test the first letter. If the first letter is a 'C', a 'D', or an 'H', the program will o... |
Jun 30, 2016 at 1:58am
[2 replies] Last: That worked perfectly, thanks! And sorry, I didn't know how to do tha... (by danban)
|
by BryanTriana
Cant understand why this isnt working
|
I have a pn_count() function that is supposed to calculate the number of prime numbers under a given parameter. This function works based on the sieve of atkin ... |
Jun 30, 2016 at 1:18am
[3 replies] Last: Every time that you call atkinsieve() the function will execute. Tha... (by ne555)
|