- Strength to Increase Rep
- +6
- Strength to Decrease Rep
- -1
- Upvotes Received
- 38
- Posts with Upvotes
- 25
- Upvoting Members
- 22
- Downvotes Received
- 23
- Posts with Downvotes
- 14
- Downvoting Members
- 10
I'm the type of guy who says "I don't know the answer" if I really don't know the answer and who says "You're right and I'm wrong" if I really think so. And no, I didn't copy this from "In Pursuit Of Happiness".…
- Interests
- Varied
- PC Specs
- Computer Specs - Beyond hopeless! OS Flavor - Windows XP but I like the MAC OS (which means a hole through…
Hi, I'm having trouble with creating a program to split a number into there own separate digits and then multiplying the digits to create another number. The program will repeat itself until there is just one digit.. The main thing I'm having problem with is figuring out how I could … |
|
EDIT: Please note, as I write this, the post is now 6 years old and might have some outdated information. I'd personally recommend beginners start with "Learn C the hard way" by Zed and this book since I have heard good things about them. Reading the FAQ put together by … |
|
Hi, I want to install turbo c in windows. I don't have cd to install turbo c. I tried downloading a zip package and installing but it is giving error. How can i install and download turbo c in windows? Any suggestions? VANDITHA |
|
Dear all, I am learning C language. I got the following problem while running the problem. Program: [CODE]#include <stdio.h> #include <math.h> #include <stdlib.h> main() { int x; for (x = 1; x <= 250; x ++) printf("x = %d\n", x); }[/CODE] OUTOUT should be: x = 1 x = 2 … |
|
I've tried to make a [URL="http://en.wikipedia.org/wiki/Deque"]DEQUE[/URL] program. My book on data structures (Seymour Lipschutz) doesn't have an algorithm on DEQUES. Neither does [URL="http://www.itl.nist.gov/div897/sqg/dads/HTML/deque.html"]DADS[/URL] give a good description. All I heard was that it could be implemented better with two lists (one forward and one backward) & there are 2 types … |
|
I would like to find a c compiler for windows 7. So far I have tried 3 and all get the message that "this program is incompatible with windows". Any suggestions? dhsn |
|
SomeBody Know This Problem help me to find my error here we i run this program hmm.... the output is two the aquarius and pieces and sometimes the march cannot read ! [CODE] #include<stdio.h> #include<conio.h> #define s scanf #define p printf char w[50]; int t; void main() { clrscr(); p("Enter … |
|
Hi, I wounder if anyone can help me start a program which takes "USER INPUT" for any 10 numbers and then print them in reverse order using arrays what should I need to do to get started with this. Please help. Thanks, Maverick |
|
I was writing a file copying program. Mind you this is an any file copier. That is, at this moment, this function can copy only text files but i'm trying to copy mp3 files, avi files, mkv files etc, which this cannot. Here is just the copying function. However it … |
|
i have done program as below. need to input no of students and no of subject. no of subject and student is undefine. every entered marks should produce its grade. in this case i've defined the no of subject by right it should be entered by user. how can i … |
|
Okay this program is really pissing me off! After line 95, the member variable is suddenly getting changed (That is, the 2nd string). Even after looking at it for 3 hours, I've failed to crack it :( Please help me out guys! [CODE] # include <iostream> # include <cstring> using … |
|
I have a code wherein I pass a whole array to a function. Is it possible to do exactly the same thing using pointers? [CODE]#include <iostream> using namespace std; void func(int array[]); int main() { int array[] = {10,20,30,40}; func(array); cin.get(); return 0; } void func(int array[]) { cout << … |
|
hellow; im working on visual studio c++ express ediion 2010 when i chose a win32 project i can include any dll as wont and it's work without a problem but when i chose clr application windows form and i include for exempl sql.h i had this error pleas help me … |
|
Here is a very simple code demonstrating how 'protected' is used [CODE]# include <iostream> using namespace std; class A { protected : int a; }; class B : public A { public : void f_1() // * { a = 10; cout << a; } }; int main() { B … |
|
Hi, I have the following code which compiles absolutely fine.. [CODE] using namespace std; #include<iostream> #include<stdio.h> #include<conio.h> struct node { int data; struct node *link; }; void add(struct node **,int); void display(struct node*); int count(struct node *); int main(void) { struct node *p; p=NULL; add(&p,5); add(&p,1); add(&p,6); add(&p,4); add(&p,7); display(p); … |
|
Hi, Is it possible to display the output of a C program in different font sizes by setting it in the code? If yes, please guide regarding the same. Thanks. |
|
#include <iostream> #include <cctype> #include <fstream> #include <cstring> #include "ass1.h" using namespace std; const int MAXSIZE = 100; int records = 0; char Menu(); void ReadFile(); void DisplayRecs(); void AddRecord(); void SearchArray(); struct StudentRec { string Number; string GName; string FName; string subjects[4]; int results[4]; int numsubs; }; StudentRec StudentArray[MAXSIZE]; … |
|
How to pass an array of struct as a function parameter? This is not working: [CODE] struct Person { char* name; int age; Person(char* name, int age) { this->name = name; this->age = age; } } struct XYZ { int count; Person* people[]; XYZ(int count, Person* people[]) { this->count = … |
|
After over a year battle with cancer, my friend [URL="http://www.daniweb.com/forums/member5020.html"]Dave Sinkula[/URL] passed away the 14th of April of 2010. He continued to post in this forum and others as much as he could, even after the diagnosis. And never reflected the fact that he knew his days were counted. He … |
|
|
|
I've come across two questions from my previous years college test papers. I just couldn't solve them [LIST=1] [*][I]Define rational number as an ADT (abstract data structure)[/I] [*][I]Write a suitable C code to sort a finite set of elements where an element may appear a large number of times[/I] [/LIST] … |
|
heya, watz de meanin of malloc.h n alloc.h in c-programmin(both are different)? what is the difference between 1 pointer n 2 pointer in link list of stack? wat is the meanin of arrow mark pointer? |
|
Hi! I need help to my Turbo C program.. I need to create a program that will ask the "Starting X:", "Starting Y:", Ending X:", and Ending Y:" on different shapes.. this is how the program should be: [CODE]SQUARE: starting X: starting Y: ending X: ending Y: CIRCLE: Starting X: … |
|
alphabet from lower to upper , using ascii what logic should be use to convert small letters into capital using ascii codes?? for example ascci code for A is 65 and ascii code for a is 97 how can i coonvert from integers to character ? |
|
Hi Programmers, Please help me in my project constructing a Phonebook program in c using linked lists with add,search,view and delete function. |
|
Okay, this time, i have to say it's a weird error. This code runs fine in Code::Blocks 8.02 but fails to run in my college compiler. I think my college compiler is the GCC Compiler (same as my home compiler) but in LINUX environment. Something like [CODE]vi sort.c cc sort.c … |
|
I am trying to center the triangle, but I have no idea how. I am trying to make a triangle like below:[code] * *** **** ****** [/code](this is not the one I want, the format screws up) I kind of forgot, do i use something like printf? [CODE]#include <iostream.h> #include … |
|
I want the remainder of all the numbers inside the loop except the number which i assigned for variable [B]a[/B] for example , if i entered number [B]5[/B] for [B]a[/B], the loop is 5 4 3 2 1. i want my program to take remainder of all these values except … |
|
Hi, Please some one clarify what does the below snippets mean and the compiler assumptions. which one is the correct one to use, what is the problem with others. [CODE] main() { } [/CODE] [CODE] void main() { } [/CODE] [CODE] int main() { } [/CODE] [CODE] int main() { … |
|
Hello, Currently, i was assigned to create an array, which i have no idea what array is. The problem is this.... 2.Write a function to read in numbers and put them into the array. The function should continue to read in numbers until either: the user types a negative number, … |