Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~2K People Reached
Favorite Forums
Favorite Tags
Member Avatar for salman213

Hi I am new to VB but I was trying to just make a program so that if you press the letter A on your keyboard the text in a textbox is added to 1 (it starts at 0).... I'm using vb 2008 express edition. [CODE]Public Class Form1 Private Sub …

Member Avatar for jireh
0
146
Member Avatar for salman213

Hi i have a question. Im using Dev C++ and this simple program takes in values of x and outputs *prints them on the screen. Although x should be an integer If i put in for example the letter "u" or any letter for that matter it goes on and …

Member Avatar for Narue
0
125
Member Avatar for Black Magic

Hey, my dad was checking the "lotto" results so that inspired me to make a little program of my own, i accomplished that just got a problem.. [CODE=C++]#include <iostream> using namespace std; int main() { srand(time(NULL)); unsigned int lotteryBall; for(int i = 0; i <=7; ++i) { lotteryBall = rand() …

Member Avatar for VernonDozier
0
169
Member Avatar for salman213

very simple question: what is the most easiest way to do the following I have two variables a=1; b=2; how do I make it that c= a,b so that c=12 I dont want to write [code]c=12;[/code] because a and b change according to user input. Thanks, this should be solved …

Member Avatar for Alex Edwards
0
336
Member Avatar for salman213

Hey, here are two codes and with one slight difference they do different things [B]CODE 1[/B] [code] #include<iostream> using namespace std; int main() { char array[2]; int i=0; while (i<2) { cin>>array[i]; i++; } cout<<array[0]<<' '<<array[1]; } [/code] [B]EXAMPLE OUTPUT:[/B] [code] two words t w [/code] [B]CODE 2[/B] [code] #include<iostream> …

Member Avatar for salman213
0
142
Member Avatar for salman213

[code] #include <iostream> using namespace std; class CRectangle { int x, y; public: void set_values (int,int); int area () {return (x*y);} }; void CRectangle::set_values (int a, int b) { x = a; y = b; } int main () { CRectangle rect, rectb; rect.set_values (3,4); rectb.set_values (5,6); cout << "rect …

Member Avatar for salman213
0
144
Member Avatar for salman213

Hi, I am a beginner in C++, I was just wondering what is it good for. This is probably a dumb question but I was searching on yahoo and google (What is C++ good for), and I did not find any real answers. What do people use it for? Is …

Member Avatar for Narue
0
564
Member Avatar for salman213

Hi, I was recently reading a tutorial on C++ and I had a question about dynamic memory. The first paragraph of the tutorial stated the following: [I] "Until now, in all our programs, we have only had as much memory available as we declared for our variables, having the size …

Member Avatar for Cait
0
99