Beginners - April 2012 (Page 49)

by HenryJ
Weird wxWidgets Problem, Please help!!
 
Hi guys. Im finding errors witth these two lines of code. wxScreenDC Canvas(); Canvas.DrawLine(Start,event.GetLogicalPosition(Canvas)); Please help...
[2 replies] Last: oh yeah, forgot about that!!, Thanks for reminding me Disch!!! (by HenryJ)
using atoi and error :unresolved external symbol
 
Hello I have been working on this code for my class and just not sure what the errors mean or how to fix them. Also I am not sure what the next step is that I n...
[4 replies] Last: No this is the only one. So to finish this program should I use if e... (by user056)
Irritations with an extern variable
 
Hey there. I've not been programming for long but I have a fair understanding of C++. At the moment I'm building an object orientated program which I've come...
[4 replies] Last: That's not the main problem. Consider this: what if your D3DSetup.cpp... (by hamsterman)
Order of Operations problem.
 
I'm not sure if the problem is because of how the compiler handles nested order of operations or if it is because of the casting between two types. const ...
[4 replies] Last: that works also. (by ui uiho)
Idea about Snakes game
 
I want to make snakes game using structures and 2D array , I am confused how to use Structures in this game . I want idea about this . Please help me , I wi...
[4 replies] Last: you are not at classes and you want to make a live action game. once y... (by ui uiho)
Rock Paper Scissors!
 
So, I'm not yet worried about giving the option to quit, I just want to at least be able to have the program post the results to the console. I've tried a coup...
[8 replies] Last: Ahhhh... looks like i just needed to add #include <string> ....duh! I... (by Shinigami)
Erasing from vectors
 
say I have: vector<string> list; which contains the words: the and fry bug pie and I want to remove bug, but I didn't know its exact position in...
[6 replies] Last: thank you (by Praetorx)
An Algorithm for Shifting
 
I'm looking for an algorithm that is capable of shifting all objects within an array n places to the left and/or right. For instance: int Array_A = {1, 2,...
[2 replies] Last: That'll do. Thanks, Cubbi :) Wazzak (by closed account zb0S216C)
how do I get the value from index in this function I made?
 
Hello I'm having problems with: 1.)How do I get the value of interger variable index outside of this function scope. 2.)How can I use this interger variable i...
[no replies]
by seppel
Static Map not usable in global New?
 
Using a std::map as in the line marked with /* X */ below crashes the code during execution. If this line is erased, the code runs but creates the following une...
[6 replies] Last: That was very helpfull! Thanks! Seppel. (by seppel)
pwm code for rgb leds on the 16f628a
 
hello all, i am very new at programming pics and code in general. i would just like to see some sample code that would output a pwm signal on a 16f628a, that wa...
[1 reply] : Unfortunately, this is not the right place to ask. This forum is for c... (by TheDestroyer)
Why does this malfunction when you enter letters?
 
#include <iostream> using namespace std; int main() { double a; double b; cout<< "Enter your number" << endl << "HERE:"; cin>>a; cout<< "Your number ...
[5 replies] Last: If you are using one letter you should just use a char type: char a; T... (by shaggy)
Issue with a simple menu based program
 
What am I doing wrong? Thanks to the person that answers this. #include <iostream> using namespace std; int main() { double a; cout<< "What age...
[2 replies] Last: you also spelled pause wrong, if that is your problem. get rid of that... (by ui uiho)
create files with specified name
 
I want to create 100 files with the increment of file names included.. for example the file name are : file #1 file #2 file #3 etc I tried but fail, ...
[5 replies] Last: that code i gave you. that takes file name from user, sets its locatio... (by ui uiho)
Simple program returning hexadecimals instead of double
 
Hello, I wrote a simple program in xcode #include <iostream> int main() { std::cout<<21.5<<std::endl; return 0; } And I get the following 15.87807F...
[2 replies] Last: Got the correct answer using Xcode: This GDB was configured as "x86_6... (by histrungalot)
Correct output for a calender program
 
//This program is suppose to display the date for several date objects //declared in the main function. But after running the program I realize. //That it's i...
[1 reply] : The 13 came from these lines: void Date::IncreaseDay(int Mon, int Da,... (by histrungalot)
Unwanted Infinite Loop Occuring
 
int Guess; int main() { cout << "CodeMaker, how many chances shall you give the CodeBreaker? --> "; cin >> Chances; while (!cin) { cout <<...
[3 replies] Last: #include <iostream> using namespace std; int main() { int Chances; ... (by histrungalot)
Newbie & confussed
 
Hello Forum members, I am very new to C++ & have downloaded the tutoral. I have experience with BASIC. I want to program some of my own ideas. So, I have a d...
[2 replies] Last: Thanks, WebJose. I'm downloading it now... (by gemini2544)
hi can you please help me
 
I dunno what to do with this 1 error pls help me out #include <iostream> #include <stdib.h> void welcome(); void instructions(); void game(); void ab...
[4 replies] Last: Thank your sir =) (by Garner Hagonoy)
Sting Function
 
#include <iostream> int main(){ string str1, str2, str3; while (cin >> str1){ while (cin >> str2){ while (cin >> str3){ cout << "The N...
[9 replies] Last: could someone please help me get the expected output...I've been stari... (by rsh0117)
April 2012 Pages: 1... 4748495051... 66
  Archived months: [mar2012] [may2012]

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