- 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.
147 Posted Topics
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? | |
I was trying to get familiar with some digital circuit simulation softwares but i dont know which one to start with. I wanted to know if anyone could advise me a digital simulation software that is used by the professionals in the industry. | |
Re: Well i dont like the idea of shitting in the bowl from which I take my food. Microsoft is an everyday part of my life and it's because of them old grannies, grandpas, little nickies can actually do something with the mystery thing named "computer". | |
Re: use cin.get() at the end of ur program [CODE]#include<iostream> using namespace std; int main() { //your code here [COLOR=Red] cin.get(); [/COLOR] return 0; } [/CODE] If this still doesnt work use cin.get() twice [CODE]#include<iostream> using namespace std; int main() { //your code here [COLOR=Red] cin.get(); cin.get();[/COLOR] return 0; }[/CODE] There … | |
Re: [QUOTE=inscissor]I was just looking over this thread and I still think computer science sucks.[/QUOTE] It seems like Popeye hates Spinach. Incissor, Define Computer Science the way u know it/think it is------will you?:rolleyes: Make that short (2/3 lines at best). | |
Re: I ran the code. It gives error only when you try to delete the file when it is not closed. As ancient dragon mentioned you need to close the file like fin.close() before trying to remove it. I ran your code with fin.close() added and both the remove() and system("del … | |
I [B]HAD[/B] three partitions of my hard disk - C, D and E. My OS was Win98se. Then My brother installed Red Hat Linux in the E drive. From then everytime the pc started there were options to choose whether to start with win98se or RedHat linux. I could only … | |
i have this assignment to compute the factorial of an integer of any length. I have done it using array of char and then overloading the * operator accordingly. It works fine but i wanted to know if there were other efficient algorithms for counting factorials of any length. Give … | |
Everyone, have a look at(if u want to) the flash movie in the follwing page: [URL=http://www.newgrounds.com/portal/view/176283]http://www.newgrounds.com/portal/view/176283[/URL] And let me know how u feel... I got some serious issue with this one. | |
Re: [IMG]http://members.aol.com/ercgalleria/images/bbuldotl.jpg[/IMG] "Terrible" | |
| |
I have realized that I should start learning some scripting language from now on. So where do I start? Perl, PHP, asp, javascript etc. I mean which language would be better to start with? | |
I dont get it. There's a guy in this forum who had been helping me out a lot, but i just cant add to his reputation bcos of this message "U have to spread ur reputation point before giving it again to *****" Then I added points to two other's … | |
Re: The type of terrorism the world is facing today can not be eradicated by means of arms and forces. To my understanding this is a propaganda war rooted deep with in Islamic extremism. It can only be won with arguments. You might be wondering how can you even reason with … | |
The following code finds the square root of a number, it runs fine unless you compile with MinGW gcc: [code] #include<stdio.h> #include<stdlib.h> int main(void) { double x0,x1,a; int i; x1 = 1; x0 = 0; printf("\nFind square root of: "); scanf("%lf",&a); for(i = 0; x0 != x1; ++i) { x0 … | |
I am kind of confused about how DestroyWindow() works. According to the help files this function sends a WM_DESTROY message to the window it has just removed from the screen. In my [inlinecode]WindowProc[/inlinecode] I have something like the following: [CODE] case WM_CLOSE: { DestroyWindow(hwnd); return 0; } case WM_DESTROY: { … | |
I am trying to access files in a folder. The folder name and location will be given - the program will search inside the files in that folder for a specific pattern(yup like grep). However, I am not sure how to actually let my program know what are the files … | |
Hi I am into my Database course. I have proposed to develop a criminal record database as the project. If anyone have worked on such a project before or know a few things about it please do share it with me. Currently I am trying to design the schema for … | |
Few days ago I had installed the latest driver for my sound-card (Creative VIBRA 128). From then on my WMP 7.1 is not producing any sound. I can see the videos but there's no sound. But my winamp, DivX player and quicktime are working fine. Then I uninstalled WMP 7.1 … | |
Re: graphics.h wont work with Visual C++. You have to learn win32 APIs. |
The End.