Beginners - October 2013 (Page 14)

need help urgent!!
 
Write your question here. #include <iostream> #include <cmath> #include<iomanip> #include<string> using namespace std; void main (void) { cons...
[2 replies] Last: Lets say that the input was 42<Return> foo<Return> Where `<Return>' m... (by ne555)
change a linked list to insert right instead of left
 
Hello all, I have a linked list that inserts and removes left which of course means the data I am reading in from a file prints backwards. I have tried everythi...
[2 replies] Last: Thank you sir! (by trevormoon)
Parsing a string of integers into multiple integers
 
I have a string "n,n,n" where each n is a value 0 to 19. I know I can use find(), substr(), and atoi() to breakout the integers, but I saw somewhere someone...
[5 replies] Last: If you don't mind a slightly longer compile time you can get much fast... (by Duthomhas)
Bond calculation
 
Hi, I am trying to write a very simple bond calculation and I dont seem to get it right. I include what I have so far, also I know I didnt add the principal pay...
[5 replies] Last: thank you very much. (by JohnMyer87)
Search an array for an element
 
I'm trying to prompt a user to enter a number 1 through 20 whose elements are all stored in an array. If they select a number 1 through 20, the program would le...
[4 replies] Last: if (search == array { cout << search << " is in your array" << end... (by arkad)
by watusa
Inserting c_str into char*
 
How do I take a c string and input it into a char* array? Basically I want to take a few sentences and add them one at a time into a char array. Example: c...
[3 replies] Last: You can make a pointer point to the address of a specific array elemen... (by mobotus)
How do I convert an int to a string?
 
So I am making a program that prints 5 random cards. I am using a class and I need to set an int between 1 and 4 to a suit in ascending order. Where should I ch...
[4 replies] Last: That's it! Thank you so much for your help! (by Emma Naylor)
4260096 in output dont know where come from :(
 
Write a program that calculates the marks of 5 subject of 03 students this is question n i,ve done this but there is some little bit problem so plz help me he...
[2 replies] Last: int main() { student1(); student2(); student3(); return 0; } You d... (by mobotus)
Help with strings and linked lists
 
Hello all, I am having some trouble adding strings to a linked list program my professor gave us. For some reason the only thing that will work with the sll is ...
[4 replies] Last: Hello again NwN thank you for helping me, this is my first time using ... (by trevormoon)
Can't get info from a dat file
 
Ok, so I need to use an array and get the information from a .dat file. The dat file would have something like 40 15.5 45 16.75... to make 7 rows and 2 column...
[6 replies] Last: Well, that's sort of a solution, but it doesn't look right to me. I ... (by Chervil)
for loop is not setting element 0 to NULL
 
Hello - I am trying to set a loop where I set values from one array into another but shifted by one element. This means that my second array (array2) needs to ...
[3 replies] Last: You are, again, accessing outside the bounds of array2 causing undefin... (by cire)
by algo89
Constructor Initializers
 
I'm currently reading "Accelerated C++" and I have just read the chapter on defining types. I basically understood what constructors are used for and why they a...
[3 replies] Last: Hi there, Well, technically you're not required to implement a defaul... (by closed account o3hC5Di1)
by sknn
Program error (occurs when sending bigger numbers to function with vector)
 
Hello, I'm trying to solve problem 14 from projecteuler (Longest Collatz sequence). It's my first try so probably the code or program is not good at all. I need...
[2 replies] Last: thank you, NwN. Int was the problem there as you said. Changed it in... (by sknn)
Help with BST Destructor and Size Function
 
I'm currently getting these two errors: Access Violation Error in my Destructor Access Violation in my Size function I know what they mean but I'm not sure wh...
[2 replies] Last: Destructor's fixed! HAPPY DANCE!! (by natekelsey)
Lost with Arrays
 
hello - I'm lost and trying to write a program that takes in a sentence from the User and converts it to pig latin. That is, remove each first letter of a wor...
[5 replies] Last: Look over the string class here http://www.cplusplus.com/reference/str... (by mobotus)
by dilver
binary code
 
here is an example of random binary code : 000000000110000001100000000000000000000001000000 000100000000000001110000001001000010000001101001 0001000000...
[10 replies] Last: I looked into the two sites but they did not help me because they have... (by dilver)
display issues
 
I need the "void get_gas_data_1..." to only display if the user enters ten or more gallons. However, both voids for "get_gas_data" show up no matter what number...
[5 replies] Last: when you call the function you must supply number_of_gallons. An ex... (by Manga)
need video tutorial in c++. please send to franklyn1great@gmail.com
 
Write your question here. if you can assist.Thanks.
[1 reply] : have you tried youtube? There are scores of them. (by abhishekm71)
by byakk0
ascii and hex code display
 
Pulling my hair out hunting for answers...Now that you have that visual, Here is my question. I am working on a code where the user enters a letter and it will...
[4 replies] Last: Yup...I guess I missed that one. It is late...or maybe it is too early... (by byakk0)
I need help guys to understanding function
 
could you please get help to understand to write program has two function . i found it hard and i am look to get easy to follow it . for example to calculat...
[1 reply] : Function help here: http://www.cplusplus.com/doc/tutorial/functions/ ... (by Chervil)
October 2013 Pages: 1... 1213141516... 86
  Archived months: [sep2013] [nov2013]

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