18,490 Topics

Member Avatar for
Member Avatar for musicmancanora4

Hi guys inside the double array it holds '?' character. How would i do the format printing to print it like this ithe user input variable is the size variable if 5 is typed in it suppose to print 5 rows and columns and print 2 rows and columns if …

Member Avatar for Narue
0
166
Member Avatar for Kushal Thakkar

hi, i want to know everything abt container classes. please help me. bye Kushal

Member Avatar for Narue
0
141
Member Avatar for Eng_Girl

Hello, I need to know how to compile and run this example in Windows XP the example in [url]www.boondog.com[/url] go to-->tutorials---->GPS and Serial Interfacing it uses some libraries to communicate with the serial port . I tried this example but I got so many errors . can anyone see this …

Member Avatar for Vinoth
0
118
Member Avatar for rc_ashish

Hi, I want to change the font size of text in C language for printing text. Thanks in Advance. Ashish

Member Avatar for WolfPack
0
317
Member Avatar for harishkumar09

One of the big disadvantages i have seen in C is the inability to read one line at a time from a text file.I haev tried writing my own algorithms to do the same but it doesnt seem to have worked all the time.Is there anybody who can help me …

Member Avatar for Member #46692
0
71
Member Avatar for pdhaz

i just started a class in programing and we are working in C, i was wondering is there a way to input graphics into the program and if so where would a good place to go to show me the way, also if there are good tutorials for programming since …

Member Avatar for WolfPack
0
137
Member Avatar for ultirian

Hi guys im trying to write a program this is the basic spec 2 teams of 11 to be picked at random and 4 reserves there are 40 people to chose from. I am seriously stumped here as I have to pick the two teams, I managed to write a …

Member Avatar for ultirian
0
183
Member Avatar for la_scala

Hi I'm la_scala I 'm a student in a university and I have lots of C coded homework. I hope this forum members can help me them. :D bye

Member Avatar for Dani
0
17
Member Avatar for myloginh10

Graph theory (vertex-edge) is one of popular projects for uni. students, here is a link which includes source code and explains. [url]http://www.syncedit.com/public/tutorials/university/cpp/index.html[/url]

Member Avatar for Narue
0
98
Member Avatar for akshayabc

Hi every body! I want to make project on speech recognition in linux using C/C++. In which user will speak linux commands(mostly letter by letter) and that will be entered on the console. ex- if he wants to enter 'ps -l' he has to speak- 'p', 's', 'minus', 'l'. I …

Member Avatar for calcop
0
128
Member Avatar for srishekh

Respected Sir/madam, Could you help me in understanding the dynamic memory allocation for a 3D matrix. I have attached the file.I am allocating memory dynamically for the 3D matrix,which i am using in my project. As per the concept when new is unable to allocate the specified memory it will …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for DashM

Hi, i'm trying to write a function that enlarges a given two dimensional array horizontaly and Verticaly by different numbers. So far i have got this code. Bu it doesnt really work at the moment. Please help. Code: void BitMap::enlarge(int horiz, int vert) { bool temp[MaxSize][MaxSize]; temp[0][0]=true; int m, k; …

Member Avatar for AstroNox
0
111
Member Avatar for anands

wat r all the programming languages used in mobile phone technologies?how they r used ?wat r all recent advancements in programming technologies in mobile phones? :?:

Member Avatar for Lord Soth
0
202
Member Avatar for debugger

I am trying to delete the first node in the singly link list but cant seem to do so? My Code is below... Could someone please suggest something. thanks. This program has an enqueue function which works. `*p` is a pointer to a node which has been allocated using malloc. …

Member Avatar for debugger
0
99
Member Avatar for vicky_dev

Hi all, what exactly is segmentation fault or access violation and exactly when does it occur? Why does the following program work correctly : [code] #include <stdio.h> #include <conio.h> int main( ) { int a[5]; a[20] = 20; a[-20] = 30; printf("%d %d", a[20], a[-20] ); getch( ); return 0; …

Member Avatar for Salem
0
96
Member Avatar for degamer106

Yesterday, I posted a similar problem (involving numbers) which was solved by Clinton Portis (Thanks by the way) which involved several if statements. This time I got one with a string :rolleyes: If there's some kind of space saving technique please let me know :mrgreen: [CODE]#include <stdio.h> #define SIZE 5 …

Member Avatar for degamer106
0
105
Member Avatar for jack223

The class Chevrolet inherits from the class Automobile. Both have implemented a function called DownShift(). Suppose carPtr is declared as: Automobile *carPtr; The carPtr object can point to both a Chevrolet or an Automobile. We want the call carPtr -> DownShift() to call the right version of DownShift based on …

Member Avatar for Narue
0
108
Member Avatar for shahnazurs

Please help me. Kindly tell me how to open image file in windows from C programming Many Thanks, Shahnaz

Member Avatar for shahnazurs
0
125
Member Avatar for degamer106

OK I wrote this dice program up and it works really well. Just curious though if there was a way to reduce the number of "if" statements. [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> #define SIZE 11 #define TOTAL 36000 int main(void) { int cnt = 0; int die1, die2, sum; …

Member Avatar for degamer106
0
137
Member Avatar for degamer106

Here's a simple program I wrote. [CODE]/* Use a single-subscripted array to solve the following problem. A company pays its salespeople on a comission basis. The salespeople receive $200 per week plus 9 percent of their gross sales for that week. For example, a salesperson who grosses $3000 in sales …

Member Avatar for degamer106
0
161
Member Avatar for Yustme

Hi, Im trying to make a function that flip bits. There is not much usefull to find on the net about this. Like an example of such function. Does anyone have a function that flipbits? Thnx in advance!

Member Avatar for Narue
0
3K
Member Avatar for degamer106

Ok..this problem is kind of confusing because I have to use these 2 functions getc() and ungetc(). What i'm supposed to do is take in input in the form of a string, find all digits, store the digits in the string, convert the string into a digit, and finally print …

Member Avatar for Narue
0
481
Member Avatar for perlsu

I would like to know whether the dynamic memory pointer is still available even after freeing the allocated memory. If I want to allocate and deallocate so many times within a loop , I receive memory corruption. Pls help me how I should do.If I call "free" more than one …

Member Avatar for Narue
0
112
Member Avatar for jack223

[Code] Class B { public: int e(); void f(); private: int x; }; class D: public B { public: void h(); void g(); private: float y; } [/code] How many public methods does class D have? is it 2 or 4? void h(), void g() and i'm not sure about …

Member Avatar for Lerner
0
120
Member Avatar for degamer106

OK..so here's the problem... I'm supposed to create a program that reads a text file containing 5 lines, each composed of a name, a colon, and three integers. For example: Bill Gates: 10 20 30 Shalla Booger: 80 70 84 Hagar Joe Plinty: 70 90 80 Darth Vader: 60 50 …

Member Avatar for Narue
0
166
Member Avatar for neo69potato

ok basically me and a friend are learning C language and we're totally stuck on this problem in the textbook and want to get around it before moving on. We're totally useless so a nudge in the right direction or any help at all would be awesome. heres the problem: …

Member Avatar for neo69potato
0
382
Member Avatar for musicmancanora4

Hey guys im making a calendar program where you enter a month 0 to display all months for that year... 0 - 12.. 1 being janauary etc and then entering the year. Similar to the cal command in unix sun on tue wed thu fri sat 1 2 3 4 …

0
104
Member Avatar for Eng_Girl

Hi, I'm new to this fourm I want to ask if anyone can help.I have a program for a GPS receiver it is in C ,for testing I assume the string of GPS message, it doesn't have any errors but it didn't run I don't know why. I used the …

Member Avatar for Member #46692
0
137
Member Avatar for srishekh

could u tell me the problems in defining a 3D double array. that is double a[1000][1000][1000]; While running the program, it gives segmentation fault errror. Please tell me , wat should be the limit of the array or how to come arround this. Thanks and Regards srishekh

Member Avatar for andor
0
73
Member Avatar for musicmancanora4

Im using an ansi c compiler all the errors using gcc -ansi -Wall -pedantic should work without warnings and errors. Running on unix

Member Avatar for Ancient Dragon
0
102
Member Avatar for musicmancanora4

Hey guys sorry for posting the whole code again.. How i can get my calenda program working from here? Because its not printing anything its only printing the mon tu wed etc but not the days of the month 1 - 31 and im not sure if its worked out …

Member Avatar for Ancient Dragon
0
106
Member Avatar for Duke_0064

Hello, I have this program here>> it's a random guessing number game. It works great the only thing I can't figure out, is how to display the [B]best score[/B] at the end of the Loops. The outer loop is suppose to keep track of the number of games played ( …

Member Avatar for dubeyprateek
0
164
Member Avatar for niteshq

Hello, Everybody. Myself is Nitesh. I have joined this group earlier. Please provide me ebook of C language. Thanking You, Nitesh

Member Avatar for Member #46692
0
39
Member Avatar for dors_zone

here are the question: write a program that inputs a series of integers and passes them one at a time to funtion even, which uses the modules operator to determine whether an integer is even. The function should take an integer argument and return true if the ineteger is even …

Member Avatar for dors_zone
0
114
Member Avatar for nemo

what are the two issues involved with multiple inheritance? i know of one, the diamond problem, what's the other?

Member Avatar for Narue
0
85
Member Avatar for musicmancanora4

Hey guys i need to find out how many days there are in a particular month in a particular year. How can i start building an algorithm like that im having some trouble?

Member Avatar for Bench
0
94
Member Avatar for harrypotter

Please tell me how to do unix system programming in C in windows. Is there any c editor which contains all header files required for unix system programming in windows? Please tell me. There is a problem in installing linux in my system. but there is a need for me …

Member Avatar for Lord Soth
0
207
Member Avatar for musicmancanora4

Sorry guys i apologize for posting large code but im trying to pass the int daysOfMonth[] = {31,28,31,30,31,30,31,31,30,31,30,31} variable array to the totalDays function so i can do some calculations. But i keep getting a seg fault. [code] int main(void) { unsigned month; unsigned year; unsigned long days = 0; …

Member Avatar for Salem
0
184
Member Avatar for nabil1983

Ok i finished off the program i was making. now i just got a couple problems icant work out....spent hours doing this please help me with my last few probs... First thing is when i write the records to file, and then when i try to sort it...the display shows …

Member Avatar for dwks
0
240
Member Avatar for d_gabs123

Hi there, I really need your help. Who knows or who has a code for Hangman game in "C" Language. Please I badly need your help. Thanks.

Member Avatar for Salem
0
65
Member Avatar for musicmancanora4

Hi guys im having a slight problem passing the month and year variable to a function that i have created called int totalDays(unsigned year, unsigned month) now when i do a print inside the function it prints 0. Even though i have inputted using a key for example 6 for …

Member Avatar for andor
0
123
Member Avatar for vurdlak

I started wrting c lessons for absoulute begginers to advanced users, I think material can be considered quality, and my students learn programming with this stuff. If you wish feel free to start reading it.Its only 8 lessons for now so maybe could be easier for you to start following …

Member Avatar for Member #46692
0
161
Member Avatar for mice_cs

hii,i'm a beginner :o ,don't :lol: ,just show me the way btw,i learn abt c and c++ can u show me the big differences between 'em?? thank's

Member Avatar for Narue
0
118
Member Avatar for some one

hi every 1 i wanna to ask about sigl and double linked list *what is the advanyages and desadvantegs of the double linke list *when we use the double and when we use the single thanks

Member Avatar for some one
0
102
Member Avatar for chelo77

I have problems in how can i use the backspace key work in deleting characters in real time. I have a program where you can type a string no more than 60characters but say i don't want the last character and want to delete it, if i hit backspace it …

Member Avatar for Member #46692
0
224
Member Avatar for deutsch

I am currently learning 32 bit Win programming in assembly. I used to write in C and C++ but didn't like the code bloat. My hobbies are photography, stamp collecting, wood working, and bike riding. Thanks.

Member Avatar for deutsch
0
109
Member Avatar for Vagabond

Greetings I've been faced with this problem may be you could help? [CODE] [B]class[/B] CalculatorObject : [B]public[/B] TDialog { [B]public:[/B] StateType CurrentMode; [B]char[/B] Operator; [B]char[/B] DisplayBuffer[DisplayPlusSign]; [B]BOOL[/B] Negative; [B]BOOL[/B] InputIsADigit([B]char[/B]* input); [B]double[/B] Operand; TBrush CalcBackground; .....[/CODE] I need to change char DisplayBuffer into a character pointer instead of a character …

Member Avatar for Ancient Dragon
0
151
Member Avatar for mccbebz

just want to ask if this is an array program????... my professor told us to make array program that displays 10 names.. He also tells us that we can use C or C++ program.. i prefer using C cause im much familiar with C programs... my knowledge in Array is …

Member Avatar for Ancient Dragon
0
137
Member Avatar for k.moorthy

pl help me to writea program that takes a decimal number and coverts it to both octal and hexadecimal equivalents with two function detooct and dectohex. The out put willbe as under enter a number 456 Num 456,octal710(710)hex1c8(1c8)

Member Avatar for anupam_smart
0
178
Member Avatar for djbsabkcb

Below is my source code for a tictactoe program. However, my output after first move always states invalid choice, no matter what number I enter? [code] #include <iostream> #include <string> #include <cmath> using namespace std; class TicTacToe { public: TicTacToe(); // constructor int Pick_Player(); // member function int Pick_Row(); // …

Member Avatar for Narue
0
847

The End.