Beginners - October 2011 (Page 14)

by kw1991
can someone show me LoadImage function?
 
can someone please tell me how to use the LoadImage in WinAPI? I just want to display a bitmap image on the screen I tried looking up this function but all th...
[4 replies] Last: Assuming you're using pure win32 and GDI and you want to display the b... (by gpotw)
thanks
 
Thanks for your time.
[9 replies] Last: /* * main.cpp * * Created on: 25/10/2011 * Author: Yazamut4 ... (by jakeshapi)
by abby11
Help with outut display "No data"
 
Hello, I made a simple code to process the root mean square of a sequence of user entered variables. It works for that task but I cannot figure out how to sp...
[7 replies] Last: Looks great its working now thanks again. (by abby11)
by edbtzy
Strings and Function Calls
 
im trying to create a MySQL client program that asks user for specific information and then queries the database. I need to be able to send functions by added ...
[2 replies] Last: Thank you for the reply but i fixed the problem simply by converting t... (by edbtzy)
intersection of two lines
 
How can we check that whether the given two non parallel lines will intersect each other or not?? I stored the x and y coordinates of starting and ending point ...
[3 replies] Last: @ Intrexa : Why would I want to create and track an entire object if ... (by Computergeek01)
Roman Numeral to Decimal Converter
 
I am trying to make a program that converts roman numerals to decimal form by adding and subtracting. EX: LX = 60. I would like to know if im doing this right ...
[5 replies] Last: I'm not sure how much this matters, but...something like "XXLVI" is no... (by mzimmers)
How to use If Else statements whith char
 
I'm trying to make my program output what your weight would be on a plant or the moon depending on what letter the user inputs. So far it's not working, if i us...
[6 replies] Last: A suggestion: Use the toupper function on your "if" statements. Inpu... (by Austin Covello)
How To Make Buttons Work (Help)
 
Hi guys. i want to make this little program so i want to make save and cancel buttons work. for example with save button i want program to save this file in .tx...
[no replies]
class problem
 
Code 1 #include <iostream> using namespace std; class data { public: int x; } int main () { data.x = 1; // x error because its non static return 0; ...
[3 replies] Last: @Gaminic and @ Krofna, thank you for the explanation. I understand now... (by radit91)
help mean and median
 
I need to write a program to find the mean and median of house prices in Cape based on last month’s sale of 25 houses. Their sale prices in $ ‘000 were: 1...
[1 reply] : I need to write a program to find the mean and median of house prices... (by webJose)
please notice
 
i wanna input clock like this 04:56,but i don't know how to put colon here. please help.
[1 reply] : You can build it as a string. http://cplusplus.com/reference/clibrary/... (by Intrexa)
by homsta
Why can't my functions see each other?
 
I have three functions all above the main function. Based on user input I want them to be able to call the other functions, but for some reason if one function ...
[4 replies] Last: Ya I figured it wasn't good form, but unfortunately I'm on a time crun... (by homsta)
operator>>
 
Hi guys!! Im getting an error in this function: class complex{ private: float real,imagin; public: ... friend istream& operato...
[2 replies] Last: that`s it! thanks :) (by julof26)
Transposing files I can not load into memory
 
Hi, I am trying to transpose a file to output into a new file. This would be easy if I could load it into memory and use a couple of for loops. However, the ...
[2 replies] Last: You may need OS-specific APIs for very large file support. In Windows,... (by gpotw)
by loloA
Functions: Code works, but how?
 
Hello: My final program for Math Tutor works...and I’m not 100% why. I’m just wondering if you can tell me how the parameters and arguments "numCorrect1...
[1 reply] : Also, I don’t know how "numCorrect" can be working correctly when ... (by ThangDo)
Assigning Specific Digit to a Value Or Use a String Method?
 
Hello, all. Presently, I am trying to program a game. In it, the game board is made up if a 2D integer array. The integers are 2 digits long, i.e. xy. Th...
[2 replies] Last: Thanks for your help. I will look into this. (by Hydrolisk)
by seppel
counting constructor calls
 
I counted 1 default ctor, 2 copy ctor and 1 assignment calls for the following statements and I am wondering for what 2 copy ctor calls are necessary? T t503...
[2 replies] Last: Thanks! (by seppel)
by Yezman
Return the sum of the first 'n' primes
 
I have to write a function that: //Requires: n >= 0 //Modifies: nothing //Effects: returns the sum of the first 'n' primes // a parameter of 5 will return...
[1 reply] : Your suggested for loop for(int numberOfPrimes = 0; numberOfPrimes <=... (by Computergeek01)
by tonnot
How to build a ms toolchain with only the files needed (not the whole visual studio )
 
I'd like to prepare a compiler and debug structure with only the files needed for it. I like to do this using the ms SDK, is it possible or have I to install ms...
[2 replies] Last: Yes , the second. And I need to compile using ms compiler because I n... (by tonnot)
Problem with vector
 
So down here is my code, the meaning of this prog. is that I will have a word, type out a '_' for every char in theWord. Everything is compiling like it should...
[3 replies] Last: thank.. you! :) (by Andre Ekblom)
October 2011 Pages: 1... 1213141516... 59
  Archived months: [sep2011] [nov2011]

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