Beginners - February 2014 (Page 48)

A problem + need explaining
 
Hey guys , I was practicing some of the things that I've learnt " I know there's a better way to do such things but I'm only practicing " here's the code ...
[10 replies] Last: Thanks, all of you. You guys helped a lot ^^ (by Cutefriendzoned)
variable help
 
I am supposed to write a program that takes the numbers of a file, finds the longest streak of ascending numbers, and returns the streak back. I am trying to fi...
[2 replies] Last: Thank you kindly! (by leahayche)
SDL_mixer.h
 
SDL plays .wav extension audio but it wont work with .mp3 files doesn't SDL support mp3 files or do i need to convert it to .wav file first , if it's not clear ...
[8 replies] Last: After trying to load mp3 file using your code given gives me a run tim... (by Sharan123)
How to write '\' to output stream
 
I forgot but how can I print our '\' again? cout << "\" << endl; // dosn`t work
[2 replies] Last: If there are many of them, a raw string literal comes in handy. std... (by JLBorges)
istream ostream?
 
I'm trying to read names and ID numbers off a file. They are formatted like this: sclaus 12 jblack 779 jbanno 334 My program should repeatedly read a user...
[6 replies] Last: eh, mabey so. (by IWishIKnew)
programming using only "if statement" (without the else part)
 
i want to write a program to add the digits of a 5 digit number, using only the "if statement" without the "else" part. Is is possible?
[3 replies] Last: thats true -- you dont need conditional logic for that. but the projec... (by kchmohan07)
Student Needing Help
 
I need to be able to add the sales up and average them out. Could i put the equation in main to calculate the total and average them out? This is just the start...
[7 replies] Last: Have a single main function that does all the things you need your sin... (by MikeyBoy)
help Structure ptogram
 
The instructions are : Write a program that uses a structure named MovieData to store the following information about a movie: Title Director Year Released ...
[7 replies] Last: can you explain why you used an unsign int instead of an int? Unsig... (by Stormboy)
Conversion of Decimal numbers to Binary
 
This program is almost complete, although it performs its function, that is, it converts base 10 number to base 2. However, I want it to be able to request from...
[no replies]
Program to stream in and analyze a text file
 
Write a program to analyze a text file. Read each character from the file, and keep track of the following:  The total number of characters  ...
[no replies]
Temperature Converter
 
// Solved. Thank you everyone!
[6 replies] Last: Why have you deleted your original code? You've just ruined the value... (by MikeyBoy)
Help with Input
 
Hi, I have a quick question to for my programming homework. So what I have to do is see if 3 of these numbers create a triangle, which they do, and it works per...
[2 replies] Last: Thank you so much, sir! (by jordanrracer)
CODE OPTIMIZATION
 
Please, can you take a look at this poorly written code and highlight the problems in it, in order to achieve optimal run time i.e. reduce run time as much a p...
[1 reply] : Duplicate of http://www.cplusplus.com/forum/general/123133/ . Please ... (by MikeyBoy)
Need help finding a logic error
 
I'm working on a palindrome function for numbers. Whenever I enter a 3 digit number, the reversed number loses a value of 1. I can't find what is causing this a...
[3 replies] Last: I misspoke: Change the backwards variable to a double. Also, try putt... (by kooth)
The _cscanf() function
 
Hello i want to use _cscanf without the input character being echoed.For example when i press ENTER to finish the reading it echoes '\r' or when i was press bac...
[13 replies] Last: Depreciated != Deprecated Depreciated: In accountancy, depreciation... (by TwilightSpectre)
thread stopped
 
getting a error message saying "thread stopped" program is based on sorting plz help
[2 replies] Last: #include<iostream.h> #include<conio.h> #include<stdlib.h> void selsort... (by closed account N7kDizwU)
Error with return type
 
The error I'm getting is with the return at the end. It says, "Error: return value type does not match the function type." From what I can tell the function typ...
[5 replies] Last: Its just a return type. You can return a copy , pointer to object , re... (by giblit)
Pushing and array based stack
 
Currently this is my assignment. I'm just wondering my code will work. Create a class/struct. Members: MaxSize const = 10 Define an array that holds 10 items....
[3 replies] Last: The actual elements in the stack are at array , array , array , ..., ... (by JLBorges)
by qmzh85
question on unsigned int and size_t
 
I know to some extent size_t and unsigned int are interchangable but size_t sometimes is preferable since it is more portable. But in the following simple...
[4 replies] Last: Hi, The != in your for loop could cause trouble if you are not care... (by TheIdeasMan)
File Not open
 
I have developed a code here that opens the input file. If the file does not open, I want it to prompt "file not open." The problem in code is that I have creat...
[2 replies] Last: Kind of confused on this, but how necessarily do I fix this? just to m... (by fahmankhan75)
February 2014 Pages: 1... 4647484950... 60
  Archived months: [jan2014] [mar2014]

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