- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 30
- Posts with Upvotes
- 29
- Upvoting Members
- 8
- Downvotes Received
- 4
- Posts with Downvotes
- 3
- Downvoting Members
- 4
full-time student
- Interests
- computer games, softwares etc.
Re: Well guys, I feel so puny to introduce myself among u great techies. I am no professional; just a freshman in a university tryin to do a BS in computer science. I am learning C programming language at the moment(wish me luck). I do have a little skill in adobe … | |
Re: Would have been better if it were a template class. | |
Re: Okay, I have to say that i often use getch() not just to halt the console window. I used getch() along with kbhit() [to get the key if pressed any]--very important use of getch(). And there are times when I have given the user to choose from a number of … | |
Re: How bout this: [URL=http://www.download.com/BlueVoda-Website-Builder/3000-2048_4-10422060.html]BlueVoda[/URL] | |
I wrote this code that checks whether a number is prime or not. It returns 1 if the number is prime or 0 otherwise. U just look at the bottom of the code... [CODE]#include<stdio.h> #include<conio.h> #include<assert.h> int is_prime(int n); void main(void) { int n=0; clrscr(); printf("An integer "); scanf("%d",&n); assert(n … | |
Re: Yea that pseudocode is just like BASIC statements. I would suggest: start get the value of a get the value of b assign c to the value of (a+b) print c end a more compact way to follow is: get a get b c <-- a+b (most programmers use <--- … | |
[QUOTE=Dave Sinkula]You may want to investigate makefiles. Then you can use your favorite editor and still write modular code the correct way.[/QUOTE] I just had a glance at how to write makefiles. Looks messy(will look into that later). So opened Dev C++ instead, and tried to work with projects for … | |
Re: to varunrathi, I believe u need to be a little more specific with ur problem. We also need to know a few more things... 1. U r using static arrays right? Why dont u try dynamic memory allocation with pointers? Even then the amount of memory is always limited by … | |
This is (supposed to be) a soln for a [URL=http://acm.uva.es/p/v1/101.html]ACM problem[/URL] But the program produces a runtime error. Can anyone spot the bug? [CODE] #include<iostream> #include<string> #define MAX 25 using namespace std; void print_blocks(); int return_initial(int a);//return all the blocks //on top of block a to their initial pos int … | |
Gaussian elimination is designed to solve systems of linear algebraic equations, [A][X] = [B] This program reads input from a file which is passed as an argument when calling the program. Say the matrix is in file name matrix.txt so we call the program in this way: ------------------------- gauss matrix.txt … | |
Hi there C /C++ experts... I have a confusion regarding the function free(void *) in C and [I]delete[/I] in C++. Suppose there is a pointer named p. In C++, we dynamically allocate memory for p to point at like this [CODE] p = new int [10]. [/CODE],then when we use … | |
i will be given a set of any length and my program will have to produce the power set. For example: input: c d e output: empty c d e cd de ce cde total number of subsets: 2^3 = 8 I will try to write my own code, but … | |
Re: [QUOTE=vegaseat]What a lively thread!!! I have been accused of using lame old Turbo C code in the past by our friend Narue, and heeded her salutary advice. I have to admit that I enjoy her comments a lot, and of course the always impeccable English. Please take it easy on … | |
I was trying to do some simple exercises on recursive functions: 1. Write a function using Recursion to print numbers from n to 0. My solution: [CODE]int integer(int n) { if(n>=0) { printf("\n%d",n); integer(--n); } }[/CODE] The next exercise was 2. Write a function using Recursion to print numbers from … | |
Re: To vegaseat: I appreciate ur effort to help out varunrathi. However, i think he wanted help with generating permutation(anagrams) of a given word, not to learn how to use STL. I believe if u had given him the pseudo code or the algorithm --that would have helped him more than … | |
Re: Yes, segmentation fault has chased me long enough when i was learning pointers. Most of the time it gotta do something with the pointers or array. It occurs when... 1. U de-reference a NULL pointer. 2. U de-reference an uninitialized pointer --which results in accessing memory outside of ur memory … | |
Re: I m doing plain old BS in CS. I will be a sophomore after this semester. I have an ambition to transfer my credits to some other school where I can take graphics and games programming courses. In my country the hype is now all about Computer Engineering. Few cares … | |
Re: hey, if u r interested u can check out the game I made in C. U can run it using a C++ compiler as well. Try to run it if u r using a DOS based compiler, otherwise dont bother. U can find it in code snippets "Projectile game in … | |
Re: [QUOTE=sunnypalsingh]Blinking text in DOS, compiled with Turbo C [code] #include <conio.h> #include <stdio.h> int main() { int color; textattr(128 + 10); cprintf("This is blinking text\n"); return 0; }[/code][/QUOTE] Nice copy from the web ;) | |
Re: [QUOTE=Narue]>LOL, since when did you became a man Narue no good programmer could possibly be a girl. :rolleyes:[/QUOTE] Yup, I have seen only you and Kathy Sierra( author of Head First Java) :D | |
Re: U didn't mention which stage?? If it is the very first stage then: U have to kill the first guard and put on his clothes. The second guard over the gate wont recognize u and will unlock the gate. As simple as that. It's better to get a walkthrough from … | |
Re: Well i have used devC++ but i have found it quite slow(since it's free it wont hurt to try though). If u are itching to spend money u can get any other better commercial compiler. But here's how i do my job, 1. I have downloaded the free-command-line compiler from … | |
Re: Try the C++ primer plus ---by Stephen Prata. It's ideal for beginners. It's not me who says it. Look at the reviews in amazon.com on this book. It's really quite a hit. | |
i had some experience with 3ds max. But I was so busy for the last 3 months with C++ that now I think i forgot everything. I searched in google for tutorials but there are thousands of them and most importantly disorganised. Now i want to learn fast and only … | |
I was looking for an SDK to learn a bit about fingerprint identification system. I have googled a lot and found many different SDKs. However none of them were free. I dont want to implement any commercial system, just want to work with an SDK for educational purpose. Do you … | |
Re: Great! Although a bit more comments would have made it an easy read for the beginners. | |
It's a game where u shoot from a cannon and the cannon-ball moves like a projectile and hits a target. So u will see three major things in this program: 1. Rotating a cannon; 2. How to move an object like a projectile 3. A very simple collision detection Before … | |
Re: by the way I am also interested in computing this series, but i want to do it using a recursive function. Can anyone help me out? |