Hi :$

Member Avatar
Member Avatar
+0 forum 4

Hello, I am new to this site and to C++. I have been following a tutorial on how to make a Tetris clone in SDL and C++ from the following site : [URL="http://www.aaroncox.net/tutorials/arcade/FallingBlocks.html"]http://www.aaroncox.net/tutorials/arcade/FallingBlocks.html[/URL] When i was finished going through it all and sorting through all the petty errors I had gotten it ran smoothly, or so I thought. Everything compiles and the window pops up and the text is shown. All of input works, and you can even get the game over message if you wait long enough. but other then the text, nothing is visible, such as the blocks …

Member Avatar
Member Avatar
+0 forum 3

I know they say don't say please... or plead...but I'm sorry but I really need some help with this problem. I have tried to perform CCA in R and I can never do this successfully. Can someone please tell me what I'm doing wrong. I've attached my CCA R script file. I've also attached my data file I use that contains all my data I use for my analyzing. **All attached files were saved as .txt This was the only way I could attach them. The file "all_Data01.txt" needs to be converted into a .csv file. Just rename it.**** If …

Member Avatar
+0 forum 0

i have finished writing my program, but teacher want me to write a checkbook balancing program of a user's account. It has to use getline () to read a line, which will contain either the word "withdrawal" or "deposit". After reading each pair of line, the program should compute and print new balance. I think i need to declare a variable to hold the running balance. The program must warn when the user if the withdrawal exceeds the balance. *input should be somthing like this: 1.deposit 2.100 3.withdrawal 4.12.34 5.withdrawal 6.49.00 7.deposit 8.7.01 *OUT PUT of the program should print …

Member Avatar
Member Avatar
+0 forum 2

hey guys! i decided to make my own programing language. it is called tempestX. the beta is not ready yet but when it is, i will provide a link for any one who wants to try it. here is a brief explanation: i was used to programing in windows batch, when i decided to try VB and C++. i struggled at first, but then got to a goo standing point. but soon i realized it was extremely difficult to create your own commands in C++ and VB (at least to me.), so i decide to make my own language. it …

Member Avatar
Member Avatar
+0 forum 4

I am writing the following program that calculates the average of a group of test scores where the lowest score in the group is dropped. It has the following functions: void getScore()-should ask the user for a test score, store it in a reference parameter variable, and validate it. This function should be called by main once for each of the five scores to be entered. void calcAverage() should calculate and display the average of the four highest scores. This function should be called just once by main and should be passed the five scores. int findLowest(): should find and …

Member Avatar
Member Avatar
-1 forum 2

i need ur help sir i m asked to develop a small educational software package using c++ package must be a set of 5 multiple choice questions answers to which will be correct nearly correct wrong obviously wrong on completion of the test core must be displayed.... plz help me out

Member Avatar
Member Avatar
+0 forum 4

Trying to learn Java on my own with the book "Starting out with java" The question is this Write a class that has three overloaded static methods for calculating the areas of the following geometric shapes: circles rectangles cylinders (it gives the formulas for the are of them) Because the three methods are to be overloaded, they should each have the same name, but different parameter lists. Demonstrate the class in a complete program. My answer is this: [CODE] public class Area { static double Area (double rad) { return Math.PI* (rad * rad); } static int Area (int wid, …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I'm trying to write the Hufmann code to encode a given file & give me the compression ratio. but when I run this programme, I'm getting segmentation fault. Can you please help me with correcting it ? [CODE] /*************************/ /*************************/ // HUFMANN.C /*************************/ /*************************/ #include<stdio.h> #include<stdlib.h> #include<input.h> #define MAXBITS 32 #define MAXNODES 512 #define MAXSYMBS 256 int hmin(void); void hinsert(int,int); struct codetype{ int bits[MAXBITS]; int startpos; }; struct nodetype{ int freq; int father; int isleft; }; typedef struct hlist{ int pos; int hfreq; struct hlist *next; }hnode; hnode *hroot=NULL,*traversal; extern struct list a[256]; extern int n; int hmin() …

Member Avatar
Member Avatar
+0 forum 1

I need the coding for the following question in C: Read from a file (.txt file) and count the number of times the word "a", "is", "the", "and", "that", and "this" occurs.

Member Avatar
Member Avatar
-3 forum 3

I am just looking for information about dump file created by windows on crash. Want to understand its working. Please share your knowledge about this topic, you can post to it or can give me reference links.

Member Avatar
Member Avatar
+0 forum 1

Hi guys, this is my first post. In the past I found a lot of answers here so I decided to join you. My problem is this: I am using scapy in my software and It works fine using Ethernet connection. But I have to use a 3G key and in this case I have to manage the layer2. According to ifconfig output: ppp0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1500 inet 91.87.154.196 --> 10.64.64.64 netmask 0xff000000 I should use the PPP class but really I don't know how. The default istance doesn't work, I am not able to receive packets. Could you help …

Member Avatar
+0 forum 0

Code portability basically refers to making source code able to compile on different platform without making any changes in source code. While coding its very important to keep portability in mind.The best way to introduce code portability is while coding.Keeping certain things into account we can achieve code portability with lesser effort, which we will discuss in this post.There are certain tools too which detect portability problems on source code, its a post processing of code and requires extra effort. Non-portable code introduces problems like maintenance of different versions, reduces readability, reduces understanding of code etc... Efforts needs to make …

Member Avatar
Member Avatar
+0 forum 15

I have just started proggramming in c#. I have created a platformer game and i was wondering if anyone could tell me how to have some text on the screen that shows how many of the collectable "coins" are left. If someone could give me some advice on how to do this it would be appreciated.

Member Avatar
Member Avatar
+0 forum 1

i want C++ programing which do- Addition - Multiplication - Finding the Inverse - Finding the Determinant

Member Avatar
Member Avatar
-2 forum 3

I am new to c++ and I'm kinda struggling. I'm trying to write a program to guess a number that the user inputs. The program should guess a number then the user should be prompted if it is too high or too low. then the program should guess again, intill it gets it right. Then display "I guessed your number of ( lets say 37) in (lets say 5) tries" it should always guess the users number in 7 tries or less. So first the user is prompted to pick a number between 1 and 100, then the computer should …

Member Avatar
Member Avatar
+0 forum 7

The End.