Beginners - May 2014 (Page 44)

by Huppa
Function Returns
 
Hello, I want to be able to change my code so that each function will return the respected calculation (i.e. rect_area will return the area). How would I go...
[3 replies] Last: What compiler are you using? The current standard doesn't require C++ ... (by BHX)
Bad pointer error in linked list
 
I'm learning linked list and I have a problem with this code. If I write line "delete add;" (***) in this code, the programme complains " Bad pointer error" wi...
[3 replies] Last: Yes, there is a leak when 'ex' goes out of scope at the end of main().... (by keskiverto)
by ak16
strlen()
 
Hi friends - char* ptr_temp = new char ; char temp ; printf("\nptr_temp size %d",strlen(ptr_temp)); //16 printf("\ntemp size %d",strlen(temp...
[2 replies] Last: In both cases you have uninitialised data. Since a c-string is a null... (by Chervil)
by Pauli
Returning two arrays from function
 
So i wrote this code and been trying to figure out how to get two arrays from it to later use. So this is part of the code i'm working on vector<float> ca...
[2 replies] Last: Thanks that does it.. Works just perfectly. Its funny that i used lik... (by Pauli)
by ak16
What is diff between Heap and free store?
 
Hi friends, What is diff between Heap and free store? I read from here- http://www.gotw.ca/gotw/009.htm but still not clear. Please request to reply ...
[8 replies] Last: Thank you Canis. As you said following is straight meaning? > Heap ... (by ak16)
by danzal
Why is my formula not working ?
 
My fahrenheit doeesnt work #include <iostream> using namespace std; int main () { int celsius, Fahrenheit; cout << "Enter temperature in Celsiu...
[8 replies] Last: Well @danzal in resume: Fahrenheit = 9/5*celsius+32; We found that... (by eyenrique)
by Yeti86
String into float Array
 
Hello everybody, I have a formatted string like: ((floatnumber, floatnumber)(floatnumber, floatnumber)(floatnumber, floatnumber)) And I want to write t...
[1 reply] : Is there a problem with my Question? I get no answers. Would be glad... (by Yeti86)
Initialization list for array of struct
 
Hello, I would like to creat an array of struct objects all created by initialization list. Here is what I have: //My struct ( I know its not in English bu...
[11 replies] Last: Gratitude. Thanks again for your afford ;) (by Furjoza)
Sorted List Class w/ fstream int&string input
 
I am trying to build a program that uses the SortedList class, coupled with a text file consisting of integers and strings, where the program will read the inte...
[1 reply] : To use iterators for your class you will have to define them first. L... (by codewalker)
homework please help me
 
How will I add the existing content of the text file to the newly inputed date(hoursworked & minsWorked) to compute the total number of hours works please help ...
[no replies]
It is a homework question but!
 
I am only asking if I have fulfilled the requirements of the homework. If not, I understand. I am simply asking a yes or no response. The requirement is th...
[3 replies] Last: also currently you are taking an input of avg =0; into the function, w... (by mxood)
read files to unsigned int
 
How to store a file to unsigned int //Main.cpp #include <iostream> #include <fstream> using namespace std; unsigned int key ; int main(){ ...
[2 replies] Last: so if want to output back the data with 0xFDA5 0xD54E 0xFC00 0xB55... (by Lim Boon Jye)
how to change a string?
 
Whats a simple way to change a date around in a string instead of 7/1/03 the user types in the date so this has to be a fix for any type of input how do...
[1 reply] : If a user inputs a date and you want to change it, you need to know wh... (by PrivateRyan)
by allekj
Help.. How can I use arrays to make this more functinalbe
 
looking to use arrays for the temperature change but unsure how to set it up. I want it to print our like I have below so I can then find the max amount in each...
[4 replies] Last: allekj, make sure you pay attention to what wildblue has to say becaus... (by dub1987)
Input/Output file
 
Hello there, I am still new in this whole programming language. Can you assist me regarding on Input/Output file question as below? Write a program that tabu...
[1 reply] : Do you already know about data file handling in C++? I'd suggest that ... (by The illusionist mirage)
HOME WORK ABOUT DAILY TIME RECORD HELP ME PLEASE.
 
How will I add the existing content of the text file to the newly inputed date(hoursworked & minsWorked) to compute the total number of hours works please help ...
[no replies]
output word in reverse.
 
hi i am trying to do a program that will output a string in revers, more like a word, like, (string too gnirts), with user input. i have done a quick program th...
[8 replies] Last: Prompt the user for a string. Output the string in reverse. that is th... (by JulyZerg)
DTR (DAILY TIME RECORD)
 
How will I add the existing content of the text file to the newly inputed date(hoursworked & minsWorked) to compute the total number of hours works please help ...
[no replies]
hypergrade problem.!!!
 
i have a problem, when i run my program though hypergrade, it tells me that i am missing the "\n" on line 18, but its there. and i dont know what to do. please ...
[no replies]
by lays
problems about smart pointers
 
it's a bout unique_ptr. If I pass the unique_ptr back from a function, will the dynamic allocation portion in memory be released and the receive unique_ptr r...
[5 replies] Last: JLBorges, thanks. It's really a good way. (by lays)
May 2014 Pages: 1... 4243444546... 55
  Archived months: [apr2014] [jun2014]

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