Beginners (Page 116)

atoi instead of stoi
 
Hello, So I'm working on a program that computes the difference between two times that are input...
[no replies]
Syntax error
 
Hi am getting a syntax error in my pack_init function but I am not sure how should I fix it. I am ba...
[no replies]
Entering Data into a 2d Array.
 
Hello everyone, I'm trying to enter data into a 2d array, but I am not sure if I am doing it right. ...
[4 replies] Last: #include <iostream> using namespace std; int main() { const int r... (by anup30)
For loop troubles.
 
I'm having issues and for the life of me I cannot figure out what I'm doing wrong. I debugged thi...
[2 replies] Last: doh, thanks a ton. (by mishappp)
Sum of random number
 
Here I have a program that asks for how many random numbers I would like to generate. Say one of the...
[2 replies] Last: On a second thought, #include <iostream> #include <vector> #include ... (by shadowCODE)
input source
 
I always have this question but am not sure if I should ask it here Well am wondering if c++ prog...
[6 replies] Last: Thenks i appreciate, lemmi check it out. (by andy1992)
Classes and inheritance
 
So I wrote a simple code about classes. I have two questions: 1) can I avoid giving definition of ...
[9 replies] Last: So I can't avoid not defining the default constructor in this case, b... (by MiiNiPaa)
Design a 4 bits Shifter.
 
Does anyone know how to design a 4 bits Shifter. In this circuit, you should have 4 inputs for input...
[2 replies] Last: Example: for the input value 1010, it is 0100 after a left shift or 01... (by whoovian11)
by iluv41
infinite loop issue
 
The goal of this function is to convert a large number of inches into the format 'miles, yards, feet...
[4 replies] Last: is your function complete? There should have been compiler errors from... (by shadowCODE)
Asterisks
 
I am doing homework, but I am lost on while statements. I know this is currently if for/if, but eve...
[7 replies] Last: Adding "cout << endl;" after the "while (y <= x )" loop produces the o... (by Esslercuffi)
by anup30
How can i see time consumption?
 
i have two reverse function below, i think they don't consume equal time. although they take minute ...
[2 replies] Last: Thank you. may you live long :) (by anup30)
Having issues with my linear linked list
 
I am trying to create both a minimum heap and a linear linked list to store values in order, listing...
[5 replies] Last: Still can't figure this out. Still displaying the values in the wrong... (by Spectre216)
by Nezar
How can one avoid opening a file that doesn't exist ?
 
Hello there, I've written an object oriented program that simply counts and returns the lines of a...
[2 replies] Last: Oh, what a stupid bug, how could i miss that ?!!! o_O Thanks bro :) (by Nezar)
by iluv41
my constructors only run once
 
I have 3 constructors. One default constructor, one constructor with 1 parameter, and one constructo...
[2 replies] Last: hey there, Let me see your code :) (by Nezar)
by iluv41
identifier is undefined
 
So I know the error "identifier "Convert" is undefined" probably has something to do with the way i ...
[1 reply] : Convert is a member function. That means it can only be called on clas... (by MiiNiPaa)
by Daviid
I dont know if this is possible, but i need some help
 
My class is writing a text adventure game, but we haven't learned all of what we need to do it. so w...
[9 replies] Last: I think i can get it from there. thank you for the help (by Daviid)
cannot initialize array..
 
I am getting an error message when i am trying to initialize an array. int rute(int goalx , int...
[3 replies] Last: Replace int decision = {0}; with int decision = {array[x+1] , ar... (by shadowCODE)
Switch structure using char
 
my switch structure keeps exiting and I don't know why.. I had it working great until I switched fro...
[8 replies] Last: please post your code you'r working with so we may help (by andy1992)
How to implement?
 
I am trying to implement the pseudo code described here http://www.societyofrobots.com/programmin...
[1 reply] : The data on the "boundary nodes" is coming from his IR sensor on top o... (by Computergeek01)
Help with an array
 
I am trying to write a game where you need to try to guess the random number between 1 and 100. The ...
[5 replies] Last: Since you had not initialized i, the value stored in i was just whate... (by Esslercuffi)
Pages: 1... 114115116117118... 125
  Archived months: [sep2014]

Cannot post in this page. To post a new message, go to the first page.