Beginners - October 2014 (Page 8)

Need help with homework
 
I've done most of the program myself but still having troubles on some parts of the if statements.In the program i'm suppose to put any three numbers that range...
[15 replies] Last: I did the problems by doing the long way, but now i'm having trouble w... (by angryplayer557)
resizing array, deleting old array terminates program
 
I am looping this function to extract transaction from the list. it works fine for the first loop, but gets terminated on the second loop for deleting the list....
[4 replies] Last: thank you, just realized I am not supposed to delete temp as list is n... (by djhyun0001)
theatre seat reservation
 
my code is not working can any1 check it and tell me whats wrong or can sme1 plz write the program for me using 2d arrays Write your question here. Write a pr...
[2 replies] Last: yudz: // Store the data in a two-dimensional array of characters. //... (by PCrumley48)
count giving large number
 
When i build the solution, the program gives me an unnatural number for the count, which is supposed to mention how many times the most used random integer is f...
[3 replies] Last: k indicates which number in the series i am going to use. dhayden your... (by jado765)
by CDavis
Localtime to Localtime_s
 
I'm having issues converting my local time. Can anyone tell me what I'm doing wrong My code when I got the localtime error time_t tm = m_Flight.dateStam...
[1 reply] : What sort of error are you getting? (by dhayden)
Putting Implementation in .h file
 
I have an assignment where I need to put the implementation in the header file instead of the .cpp file. I know it's not normal to do so, so I would like to kno...
[1 reply] : Well, this is most of what you need to know: myheader.h inline int h... (by S G H)
Please help: insert in the middle of a simply linked list
 
Hello everyone, whats wrong with my code? When i want to capture in specific position, it does, but delete the rest of the list int i=1; pP...
[4 replies] Last: I just fixed, just rewrited the whole code in new files and now is wor... (by dualdark)
Finding the first even digit in an intger
 
here i wrote the code to print the even digits of an integer in the proper order but i need to just print the first even digit. Im at a lost here and relatively...
[1 reply] : Your can make a little change to your second while loop. For example: ... (by liuyang)
by HG319
Multidimensional Array with rand()
 
This is part 2 of an earlier post. I know how to create a 5x5 array. I am just having problems with part where they can occur one time. I hope someone can he...
[1 reply] : Hey bs319 don't post multiple questions on exactly the same topic. It'... (by closed account 48T7M4Gy)
Why won't this validate my input for values between 0-10?
 
Hi, I am having trouble with this input validation code. When I input values of the designated range (0-10) the first time through this loop it allows the progr...
[7 replies] Last: Thank you PCrumley48, Peter 87, and anup30 for your helpful comments. (by samintheoc)
I'm having problems separating code.
 
Hello, my teacher told us to take his program and divide the poker hand into a class and using functions. I am having a problem putting the code in a class as...
[no replies]
Array Functions Issue (srand)
 
Hello, My code below is printing the same number (which is negative and shouldn't be with the if and while statements I put to filter them out?) 50 times. An...
[4 replies] Last: Thanks AbstractionAnon, I starting out doing as you said...actually I ... (by JoJodoggy1)
by Java90
Agenda with only structs...
 
Hi, I need some advice how can I read a data of my file.txt and compare with a string entered by user... I just made a 1st and 2nd option (funtion LOOK_FOR) o...
[2 replies] Last: I tried with that and I couldn't fix the problem....I need to compare ... (by Java90)
storing string characters into integer vectors
 
Can someone help me find what is causing the program to crash. I've been trying for awhile and cant figure it out. #include <iostream> #include <vector> #inc...
[1 reply] : well, I ran it with a simple 3+2 equasion. briefly debugging, first t... (by Esslercuffi)
Need HW help ASAP thanks
 
Im very new to coding and dont understand how to do this. can someone plz help. thanks Write a complete program that will read your initials (first, middle...
[6 replies] Last: ok thanks for your help :) (by Badatcoding)
by vxk
array query
 
In the following code why does the third cout statement throw an error ? int main(int argc, const char * argv ) { int c = {1,2,3,4,5}; st...
[7 replies] Last: ohh yes c++ is equivalent to c=c+1 or c += 1 but in *(c+1) i a... (by vxk)
Why do you pass objects by reference?
 
I was watching one of bucky's tutorials about friend functions and this was the code he used in his example: #include <iostream> using namespace std; class S...
[2 replies] Last: Thanks! (by Whooooo)
Can Anyone Help Out a C++ Beginner with Code ASAP?
 
Hello everyone. I really need some help from you guys since I'm a beginner to C++ and I need to get this program working properly. I made some changes to it to ...
[no replies]
Help with an error: undefined reference
 
I keep getting the same error: |In function `main':| 65|undefined reference to `calccost(int, float, float)'| but i have used the same variables and nothin...
[1 reply] : That error indicates you have not implemented a function named calcco... (by AbstractionAnon)
Why Runtime Error?
 
I am solving a problem at codeforces 17A - Noldbach problem (http://codeforces.com/problemset/problem/17/A) I've written the following code for this. But I ...
[3 replies] Last: You loop condition is wrong: tou are looping one more time than needed... (by MiiNiPaa)
October 2014 Pages: 1... 678910... 70
  Archived months: [sep2014] [nov2014]

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