General C++ Programming - November 2015 (Page 15)

Help on a series
 
6 8 11 15 16 21 22 26 29 31 I am trying to solve this series.. Supposedly the user inputs n required number of digits and the program outputs the relevant nu...
[no replies]
Not able to pass this problem.
 
Chef arranges the N robots in a row, in the (increasing) order of their indices. Then, he chooses the first M robots and moves them to the end of the queue. Now...
[8 replies] Last: For the small testcase (n<1e5) you can simulate, but for the big one (... (by ne555)
by joeeey
Help with class!
 
This assignment I'm working on is to make a histogram that finds how many times each letter is displayed. This is my homework assignment so I am not looking for...
[1 reply] : Hello. Please use code tags for all your code - http://www.cplusplus.c... (by TarikNeaj)
Help! i been looking for the dangling pointer can not find it
 
#include<iostream> #include<fstream> #include<cmath> #define ofile "log.txt" #define ifile "integer.dat" using namespace std; struct countNode { ...
[12 replies] Last: Thanks allot i figured out the issue with the code, i want referencing... (by nameishi)
Bunch of binary plugins, how do I make this work?
 
Okay, I'm currently on a Linux system but I want something that's very intercompatible. So, my program needs to load plugins for expanded features. The only pro...
[4 replies] Last: (unread) http://www.tldp.org/LDP/LGNET/issue84/bradley.html http://tld... (by ne555)
-858993460 error after string input
 
Hello, i am writing a c++ program, i want to use a function that has a lot of cin inputs, but after the first string input (when the input is int or double it ...
[2 replies] Last: > And this is an example of my code http://www.eelis.net/iso-c++/testc... (by ne555)
Repeating characters problem. :(
 
I'm having a problem with a program. The program should make an char array with max 80 chars, then the user should input something (for example, user inputs: ab...
[2 replies] Last: Thanks a lot, that was really helpful !! :) (by whyunomad)
How to put work into functions..
 
I have my code set up to work exactly as I want it too. Some compilers give me an error on the way I got my array to be a value defined by how many values the ...
[5 replies] Last: When j becomes equal to size-1 , what would be the value of j+1 ?... (by JLBorges)
by eZeth
Using template
 
Pardon me for not quoting the code. I can't seem to quote it. Previewing the message also doesn't help. As you can see, I tried using template but it doesn't...
[2 replies] Last: Pardon me for not quoting the code. I can't seem to quote it. Preview... (by Peter87)
array overflow
 
how to store 10^9 numbers in an array.
[15 replies] Last: well ok i will try it.thnxx (by samarth123)
Access sectors in hard disk
 
What is the API/library to access hard disk sectors by C++?
[2 replies] Last: thanks (by csstudent123)
void function
 
I'm trying to create a function that will set the first character in every string to uppercase and the rest of the characters to lowercase. When I run the progr...
[3 replies] Last: You current program is almost working: you need only to change void u... (by fcantoro)
Help with processing boolean in a structure
 
So i have code where i need to process a string as a yes or no and then return the boolean value in my structure that corresponds with yes or no and im having t...
[1 reply] : What are you trying to do on line 14/16? (by coder777)
by WAKS
problems with multiple function calls
 
Hello! I'm making a 2D platformer game, and are currently working on collision and AI. The collision is working fine, but I have encountered a problem with m...
[11 replies] Last: @mikeyBoy Ahh stupid me, of course it will overwrite the last variable... (by WAKS)
I am just trying to develop a social networking kind of thing in c++.
 
if(cnfrm=='Y' || cnfrm=='y') { d_lay(); checkid(G.id); char x ,cx ; srand(time(NULL)); for(int i=0;i<10;i++) { x =random%(26)+65; if(i==2) x =random%(...
[1 reply] : You're not calling the random function. See example here: http://www.c... (by mutexe)
What is wrong with my Program?
 
I need to turn this in for an assignment and I cant get it to compile #include <iostream> using namespace std; int main() { void Sum(double); Sum(a); ar...
[1 reply] : The problem above is that you try to define one function inside anot... (by Chervil)
Here's a problem about arrays and pointers;
 
On my leisure, I was looking in random college work repos on github and I came across one problem (probably simple) that I couldn't solve. Write a function th...
[2 replies] Last: Well done. The stackoverflow link says it all. The question was a litt... (by closed account 1yvU5Di1)
text file adding, and averaging(withnumbers)
 
Hello, I need some help with a couple of if statements regarding a text file. I have data in a text.file like this: 33 60 0.6 26 65 0 33 70 0 I am suppose to te...
[2 replies] Last: Actually the most difficult part you have done already. You opened the... (by Thomas1965)
s
 
I have been given the assignment at the following link: http://www.cs.ecu.edu/~karl/3300/fall15/Assignments/Assignment6/assn6.html I have completed everything...
[no replies]
reseting for loop / automatic door code help
 
** New to website** i want my code to be able to go from any "state" to opening just like a real life automatic door can but i dont know what to add to the for...
[no replies]
November 2015 Pages: 1... 1314151617... 26
  Archived months: [oct2015] [dec2015]

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