Beginners - April 2011 (Page 26)

Problem Working With Double Numbers in C
 
Hi, For some reason I am having trouble manipulating large double numbers in C. For example, with the following code: #include <stdio.h> #include <math....
[1 reply] : Floating point numbers have limited precision. See here: http://www.pa... (by Athar)
output statement
 
is cout<<"x=";x; is correct plz explain
[1 reply] : using namespace std; #include <iostream> int main() { int x = 0; ... (by mobat)
by nammae
Problem: Using self-defined libraries in Code:Blocks 10.05
 
Hello, everybody. Because of many reasons, I decided to use Code:Blocks. Its version is 10.05 (includes mingw) and my OS is Windows XP SP3 And I got a problem ...
[2 replies] Last: Thank you so much, Athar. It solved my problem. (by nammae)
Pass structure info. to another function
 
Hi all, I'm having yet another problem with my program. What I'm attempting to do is pass information stored in members of structures to a different function to...
[4 replies] Last: That'd probably be helpful haha, sorry for not including. Here it is: ... (by zdcoombs)
UpdateWindow()
 
As far as i was aware the UpdateWindow() function did this: "The UpdateWindow function updates the client area of the specified window by sending a WM_PAINT ...
[1 reply] : I'm not 100% on this as I'm going from memory here, but I think the OS... (by Zhuge)
by ascii
Averaging Problems
 
i feel stupid asking this because ive made programs that average numbers before, but right now im baffled. the problem i have to solve is as follows: write a ...
[2 replies] Last: i was going for the average of each set of 5, but i think youre right!... (by ascii)
Urgent: Program due!
 
Hi, new here and need a little help. I am a little stuck on this problem right now, but still trying to figure out myself. This is the book's problem for ref...
[7 replies] Last: A couple things I see: * getRational() shouldn't be printing anything.... (by Zhuge)
Voids
 
I was wondering if 1. Does a void basically just place code in from a different section and you can call it whenever you want? 2. Is it possible or is it ethi...
[3 replies] Last: They are great when used with structures. (by mobat)
WM_PAINT
 
Hi, see: HDC handleDeviceContext; PAINTSTRUCT PaintSt; RECT aRect; switch(msg) { case WM_PAINT: handleDeviceContext = BeginPai...
[10 replies] Last: Fair enough :) (by TpOreilly)
your current project?
 
What are you working on right now? I'm learning SDL.
[18 replies] Last: Bjarne Stroustrup "C++ Progaming lanuguage" is No 1 http://www2.resear... (by sasanet)
by uTil
ifstream fail isn't cleared?
 
Hi this is a question regarding how flushing an ifstream works. I have a text file : a 1 and execute the following code: int i; char a; i...
[no replies]
Expected primary expression before 'unsigned'
 
Hi, I'm new to the forums and the language. I'm working on an assignment for uni, and am completely stumped as to the source of the error I keep on getting. Her...
[2 replies] Last: Oops, that's not how line 15 looks in my code. Here's the correct line... (by maneatinglizard)
Getting file extensions and file size
 
Im tyring to just get the file extensions and file size without outputting the file name from any path folder this is what i have but it gives me the filenam...
[12 replies] Last: The good news is it's only worth 10%, and you might get part marks for... (by RedCoatsForever)
Segmentation Fault
 
Hey. I'm learning c++ and I'm doing a program that requires I make multiple user defined functions. At this point I'm working with my first function where I hav...
[4 replies] Last: char continyou = 'y'; ^ clever xD still you should probably just... (by ascii)
Need help with for loop!
 
The user will enter the value for "n" where "n" is the number of values in the data set to be entered. Give the user 3 attempts at entering a value for " n " w...
[4 replies] Last: A for loop is a short hand tool; It's a while loop in disguise. Wit... (by Mathhead200)
Avoiding integer division for calculating average?
 
Hi all, I created a program that takes in 3 test scores that the user inputs using an array. The program then calculates the total and average of the 3 scores....
[3 replies] Last: When you divide with even one double or float you will get a double or... (by Mathhead200)
I need help getting a program to run
 
I am hoping to remake a great old videogame called "the quest". Its really fun but the problem is that its 16 bit and I have a 64 bit os. any way I can run a 16...
[5 replies] Last: I was wondering if there was some kind of 16 bit emulator? (by bboy212)
SDL/Microsoft Visual Studio
 
Ok I have SDL set up with msvs2010 and was wondering if there was some way I could make a SDL tutorial template? It bothers me that I have to set up the linker ...
[no replies]
by Spada
read() and write()
 
Hi guys I am a beginner and i'm trying to deal with I/O Systems. It is still very cloudy to me and i don't undertand why the following code does,t write the ...
[1 reply] : What does it print? (by hamsterman)
Check the computers time and display a messege
 
Ok , so i want my program to check the computers time and display a messege for example If its 18:00 The program says "Good evening , did you have your ...
[1 reply] : I think you need http://www.cplusplus.com/reference/clibrary/ctime/loc... (by hamsterman)
April 2011 Pages: 1... 2425262728... 55
  Archived months: [mar2011] [may2011]

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