Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
2
Posts with Downvotes
2
Downvoting Members
2
0 Endorsements
~7K People Reached
About Me

I AM NEW TO C++ ANYTHING ELSE!

Interests
C++ HAHAHA, football, computer games
PC Specs
WHO CARES! BUT IT SUCKS!
Member Avatar for Vikram Sehgal

can someone please explain me this piece of code //say getdetail() is a function declared above a.getdetail(); f.write((char *) & a,sizeof(a));

Member Avatar for Vikram Sehgal
0
339
Member Avatar for deceptikon

I'm putting together a new gaming machine, but would like some opinions on the motherboard since I'm weaker in that area. Here are the minimum requirements based on other components I've pretty much nailed down for my needs: * i5-3570K CPU (LGA1155 socket) *-- already purchased, hard requirement* * 16-32GB …

Member Avatar for fitnessfun
0
301
Member Avatar for shumaila akbar

what is cin>> nd cout<<.whats the purpose of these in c++ or programming???

Member Avatar for Vikram Sehgal
0
151
Member Avatar for Vikram Sehgal

my code is showing some problem, what i want it to do is that when the user hits space a ^ is shot from the position of the user and it moves +1 along y axis. here is my code: x2 = x; y2 = y // x = 50 …

Member Avatar for Vikram Sehgal
0
2K
Member Avatar for Vikram Sehgal

hello, so i am having some problem x = 50; y = 31; //declaration from line 1 to 5 lastx = x; lasty = y; while(1 == 1) { gotoxy(lastx, lasty); printf(" "); gotoxy(x,y); printf("**|_A_|**"); a = getch(); lastx = x; lasty = y; if (a == 77) x = …

Member Avatar for Suzie999
0
222
Member Avatar for Vikram Sehgal

So i have a code for a menu and i am facing some problem.. code:- do { ch = getch(); switch(ch) { case 'W': case 'w': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << " --> PLAY\n\n"; cout<<" HELP\n\n"; cout<<" EXIT\n\n"; break; case 'E': case 'e': system("CLS"); cout<<" MOD v1.0\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"; cout << …

Member Avatar for jkhippie
0
259
Member Avatar for Vikram Sehgal

So I have made a menu and a guy helped me, We have used enum in the menu is there anyother way i can do it, cause my teacher is not allowing me to use classes, files and arrays, please help, if u guys have anything simple and better i …

Member Avatar for Stavros_1
-1
282
Member Avatar for Vikram Sehgal

is there an easier way to write this code?? without using enum, enum MenuState{MenuPlay,MenuHelp,MenuExit}; MenuState ms=MenuPlay; char ch=0;//or anything other than '\r' while (ch!='\r')//IIRC getch returns '\r' when user hits enter { switch (ms) { case MenuPlay: cout<<"--> PLAY\n HELP\n EXIT\n"; break; case MenuHelp: cout<<" PLAY\n--> HELP\n EXIT\n"; break; case …

Member Avatar for L7Sqr
0
264
Member Avatar for Vikram Sehgal

Hello, so i am making a shooter game, and i want the asteroids or '@' to spawn randomly along the y axis and fall down (- y axis per second) compiler:- codeblocks os:- win 7 thanks.

Member Avatar for Vikram Sehgal
0
296
Member Avatar for Vikram Sehgal

Hello, I am making a 2d shooter game, and I dont knnow how to make the player's ship move left and right with left and right arrow keys... please help me. I have to finish this project before 6th... please help

Member Avatar for Vikram Sehgal
0
250
Member Avatar for tharindu123
Member Avatar for prince777
Member Avatar for Vikram Sehgal

hello again, so i want to make a programme where the file saved is saved with different names at every loop.. like at first loop it will save as file1.txt, 2nd loop file2.txt, so on... so this is my code... #include <iostream> #include <fstream> using namespace std; int main() { …

Member Avatar for deceptikon
0
501
Member Avatar for Vikram Sehgal

hello guys, i found a piece of code in the net.. this code is a progress bar loop programme. I am new to programming, and i am not able to understand this code. PLEASE can anyone explain it or tell a simpler version of it. thanks(sorry for my english) #include …

Member Avatar for Vikram Sehgal
0
200
Member Avatar for Vikram Sehgal

so i am new to c++ and my teacher told me to make a hotel management programme... well to make it more cool looking i wanna add those arror keys scroll selection this " --> " when press up key it goes to the first option, down to the other …

Member Avatar for Ancient Dragon
0
317
Member Avatar for mixelplik

I need to generate 40 random numbers between 50 and 100 using rand(). How do I do this? cout << sizeof(a) << endl; for(int i = 0; i < 40; i++) { if(rand() % 1000+1 >= 50 && rand() %1000+1 <= 100) a[i] = rand() %1000+1; } I was doing …

Member Avatar for Moschops
0
654
Member Avatar for EddieC

Companies using IBM's Rational and Tivoli product will breathe easier today, thanks to new, integrated versions of nine tools that the company says will facilitate communication and closer collaboration between software development and support teams in the enterprise. What's more, prices will remain where they are, and the updates are …

Member Avatar for Ancient Dragon
0
333