Beginners - July 2010 (Page 26)

Show out the decimal,octal,and hexadecimal values
 
Hi,if got anyone can help me for this question pls give me some idea.Thank you. This is the question. Write a program that print the decimal,octal,and hexadec...
[1 reply] : First problem. You never actually get the user's input for the ending... (by jsmith)
Compiler Greyed Out.
 
Hey all, I've been playing with C++ and I have just downloaded the program. Atm I have close to no programming experience whatsoever, except for some HTML pr...
[1 reply] : Problem Fixed. Restarted Dev-Cpp and the compiler is working again. St... (by Devnissen)
setting up path for Mingw
 
I have downloaded eclipse for running c and c++ programs. I have also downloaded Mingw compiler . But I am not able to set path for MinGw in windows. I have s...
[no replies]
drawing cards from a deck
 
Hi again :p #include <iostream> #include <cstdlib> #include <cstdio> #include <time.h> using namespace std; class Cards { public: int nc...
[6 replies] Last: Thanks, I'll try looking up vectors. I can only find vectors in my boo... (by pabloist)
reverse positive integer number using loop
 
I am a new beginner in c++.I want to write a program that prompts user to input a positive integer number and then output the number with the digits reversed.Fo...
[3 replies] Last: I already solve the question now I want to repeat this.how.continuous ... (by closed account 1RLTURfi)
returning arrays from functions
 
#include <iostream> #include <cstdlib> #include <cstdio> using namespace std; class Cards { public: int ncardIndex; // 0-51. int ncardV...
[7 replies] Last: Yes. (by firedraco)
I'm kinda new to this...
 
Yeah, there is probably an article that the site made for this, but I can't find it, don't get mad please. Anyway, what do you use to make a program? Notepad or...
[3 replies] Last: You need to stop being that paranoid. Do you seriously think the fi... (by Athar)
by vlad61
for() loop
 
I am trying to do do the While( user == gullible ) in every single looping state so that I can understand all of them well. Have fully completed it with the d...
[6 replies] Last: I can't do it. I have tried changing and rearranging the same code ove... (by vlad61)
What's the difference between "cin >> " and "cin. ()"
 
The same goes with cout<< and cout. () My friend gave me some of his code. And I've been looking through it and throughout the whole thing. He's been using som...
[1 reply] : I think it would be best to consult the reference section of this site... (by Zhuge)
calculator functions
 
Hello, I am working on a code to ask a user for a mathematical operation and a number and then calculate the total until the user enters "X" to exit the progra...
[3 replies] Last: When you use cin>> as you are, the enter key the user presses to send ... (by Zhuge)
by EdBoon
zero size array declaration
 
Hi, I am working on a project using c++/allegro and allegro has a struct call BITMAP to work with bitmaps. The bitmap structure for reference: typedef stru...
[2 replies] Last: thanks a lot @helios I really do appreciate it. I will create me... (by EdBoon)
by bobito
How to display the addresses in char *b[4] using cout?
 
Hi, I'm doing some tests on arrays and pointers. I wonder how cout can display the contents of an array of pointers. Thanks. char aa = {'a', 'b', 'c...
[5 replies] Last: please mark as solved. (by stavros)
by ChrisR
Array Sorting - Which Method?
 
Hi, I'm new here. I have a question about array sorting algorithms, and which one would be the most efficient in my situation. I am making a simple 2D game th...
[9 replies] Last: [quote=Athar]In a top-down view, can there even be objects "behind" an... (by filipe)
need some instruction!
 
My hw is: .....................write a function that reads in the operator and returns a boolean – true if the operator is valid, false if not valid. This fun...
[1 reply] : 1. There's a stray ; in front of using in line 3. 2. The return type ... (by Athar)
by c0y454
ShellExecute() Variable Problem
 
Hi, im trying to create a program that executes an .exe file. It reads the path from an .ini file. The ini file contents are read and saved to a variable. ...
[8 replies] Last: @ vexer :: Thanks again :) With your explanations i have managed to... (by c0y454)
vector<structure> object(array) question
 
I have a vector that contains structures, the vector has a total of 4 elements in it of this structure, the structure has 4 fields, here is the structure: ...
[4 replies] Last: Thanks for the advice, that works! Not only codes the addition of the ... (by zumwalt)
arrays and bools
 
so i'm supposed to create a program where a user enters a lottery number and it searches the array of lottery numbers to see if they're a match. i want to know...
[1 reply] : You're on the right track, but you're making things more complicated t... (by Zero One)
basic Calculator
 
Made a basic calculator because iwas bored on workexperience and i thought i'd get some feedback. //////////////////////////// ///// Calculator 300x...
[5 replies] Last: According to C++ standards, you can't have a jump passed an initializa... (by Bazzy)
Loop with how many x's
 
Hey guess, trying to create a program that asks for how many X's in an input, then displays that many in the output. Here's what I have so far, would I need the...
[3 replies] Last: I take it you know how to take it from here? Also, you may want to... (by Zero One)
Control Structures
 
xcx
[1 reply] : if (n % 10 ==0) You mean i instead of n. Other than that, you ... (by filipe)
July 2010 Pages: 1... 2425262728... 31
  Archived months: [jun2010] [aug2010]

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