19,876 Topics

Member Avatar for
Member Avatar for jemz

hello i have problem on this program i don't know the formula to get the exact parking time, rounded total and total charge...please help me... Write a C program program to calculate the parking fare for customers who park their cars in a parking lot when the following information is …

Member Avatar for Adak
0
681
Member Avatar for drjay1627

Hello, Is there any way of checking all elements in a queue without calling pop(). [code] while(!q.empty()){ cout << q.front() << endl; q.pop() } [/code] this is essentially what I have done. There is a bug in my program and I'm trying to check what is wrong. I don't want …

Member Avatar for vijayan121
0
129
Member Avatar for daredevil786

*ptr++ and ++*ptr are they representing the same expression if not then how they are different according to precedence ?

Member Avatar for Adak
0
101
Member Avatar for watery87

Hi guys, i compiled a program but i have this vague error message that occured. Searching through google.com states that it might be due to many problems such as invalid pointers, etc, etc. Im a fairly new person to C prog, so i would like to seek your advise on …

Member Avatar for watery87
0
314
Member Avatar for titan5

I have written a program which checks whether the entered list is a circular list or not. I am successfully able to make the circular list. But as soon as I call the check_circular fucntion my program hangs. Can anybody find the error please? And yes the programs hangs when …

Member Avatar for titan5
0
103
Member Avatar for sanz
Member Avatar for Adak
0
2K
Member Avatar for arsenal_fan

There is an array of odd and even numbers. Now, sort them in such a way that the [B]top portion of the array contains odd numbers, bottom portion contains even numbers. The odd numbers are to be sorted in descending order and the even numbers in ascending order[/B]. If the …

Member Avatar for griswolf
0
95
Member Avatar for creeps

I've written the following binary search algorithm and it worked on [i]my[/i] tests. I want to know if there is something I'm missing, as this is the first time I try to write it, so give me a case in which it would fail, and I'll try fixing it. I …

Member Avatar for Adak
0
149
Member Avatar for WgJauharah
Member Avatar for umesh314

#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> #include<graphics.h> int citem=0,ctemp=0; int count; void menu(); struct item{ int icode; char iname[30]; int quantity; float price; }; void modify(); struct item i; void additem(); void display(struct item ); void delete_item(); void main() { char ch,another; int num; FILE *fp,*ft; int code; long int recsize; fp= …

Member Avatar for java_programmer
-2
149
Member Avatar for Sesshokotsu

hey um i kind of been trying to figure this out for awhile now...well the program is supposed to convert numbers like 123 into words such as one two three the only problem is my program writes the numbers back words such as three two one...does anyone have any ideas …

Member Avatar for soulcandra44
0
173
Member Avatar for srinath33

can...u...convert..words..2..no..?????like..if..we enter three it should display 3???????????

Member Avatar for soulcandra44
-1
104
Member Avatar for vegaseat

Do I have to spell it out for you? This short C code will do just that. It will spell out an integer number in English words. The banks do that on large checks, and it would be nice to get one of those every now and then.

Member Avatar for soulcandra44
1
528
Member Avatar for samanthalynn

Hi Everyone. Am new to this forum. ------------------------------------------------------ [URL="http://www.sangamgrouphotels.com/"]Hotels in Kanyakumari[/URL] [URL="http://www.sangamgrouphotels.com/ayurvedha-treatment"]Kanyakumari Hotels[/URL]

Member Avatar for engg_fahd
0
88
Member Avatar for sana_moi

hellow every body i m trying to do a graphique interface using c++ but i cant know which .dll i have to use such im using visual studio c++ 2010 express edition . when i thank to use QT with vs2010 there is a lot of problemes caus i don't …

Member Avatar for sana_moi
0
88
Member Avatar for gahhon

Hmm... can we use the continue statement in [COLOR="red"]if-else statement[/COLOR]? as i know the continue statement only can use [B][COLOR="Red"]under for loop[/COLOR][/B] right? and also is there any idea how to write [B][COLOR="Green"]pseudocode[/COLOR][/B] of for loop ? give some sample examples. thanks alot. :)

Member Avatar for ciint
0
119
Member Avatar for Is0r

Hi! From the manpages I know, that perror evaluates the errno. So using perror and fprintf + strerror, as coded in my example below, should result in the same error messages, but they do not. The execution of the program leads to the following result: bash> ./errno_test blub fopen() failed: …

Member Avatar for costica_is
-1
542
Member Avatar for johnb08

How would I make a 3,4,5 triangle print out in a GUI. I was using the drawline function, but I can't figure out how to make it so its between two coordinate points. I have some code like this to draw a line [code] // draw line coloredPen->Color = Color::Red; …

Member Avatar for johnb08
0
126
Member Avatar for wwefriend

im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx...

Member Avatar for wwefriend
0
136
Member Avatar for shinsengumi

I'm trying to make some sort of database for cards for a cardgame similar to Final Fantasy VIII Triple Triad Card Game where each card has its name and scores on the top, bottom, left, and right sides of the card. I'm using arrays of structures. i can't compile it …

Member Avatar for Ancient Dragon
0
207
Member Avatar for Dudeman3000

So I have a method that gets a Dictionary of `List&lt;myObj&gt;`, then cycles through the keys of the dictionary and passes each `List&lt;myObj&gt;` to a separate thread. Here is some Code / Psuedo-Code: public static void ProcessEntries() { Dictionary<string, List<myObj>> myDictionary = GetDictionary(); foreach(string key in myDictionary.keys) { List<myObj> myList …

Member Avatar for nick.crane
0
156
Member Avatar for mavs123

oh my please help me..i;m making a simple code in c++ using dev c because i am exploring this language for my second year. i do not know why it will not display the output..i don't know how to use cin..[CODE]#include <iostream> using namespace std; int main() { cout << …

Member Avatar for harris21
0
113
Member Avatar for RouseA

I am developving a number of projects in Eclipse that share common files (such as peripheral drivers). Each project therefore pulls together source files from a number of folders. Within my makefile I have concatenated together the names of all the source folders as can be summarised: [CODE] SOURCE = …

Member Avatar for RouseA
0
341
Member Avatar for ftl25

I have an array of strings as follows: [CODE]char *sCmdInt[8];[/CODE] I need to use elements from the array to pass to another dll. The function takes two LPSTRs as parameters. What I need to do is copy two elements from the array into ints/longs, and then create two LPSTRs from …

Member Avatar for Ancient Dragon
0
108
Member Avatar for okwy

his is a follow up to the question I asked earlier and with the help of some people here I was able to start up with the function I want to write,but I am yet to complete it. Here is my earlier question: I have a series of files with …

Member Avatar for Adak
0
204
Member Avatar for gpremium

I need help parsing a const char * string. I am using strtok to parse it, however, after one successful return of strtok, I only get memory addresses, and the program crashes. So I figured I would copy the pointer string into an array, and strtok that... However when I …

Member Avatar for Ancient Dragon
0
151
Member Avatar for solid2005

I am trying to make a simple game. Using C# forms and picturebox [URL=http://img52.imageshack.us/i/bgproblem.jpg/][IMG]http://img52.imageshack.us/img52/8696/bgproblem.jpg[/IMG][/URL] but when I set transparent on the character, it goes through the form (I can see part of my desktop, instead of white space) :The character can move when I press direction keys, the character picture …

Member Avatar for Geekitygeek
0
122
Member Avatar for nbaztec

To avoid double postings kindly refer the thread here, since I couldn't make up, which forum was best suited. [URL="http://www.daniweb.com/forums/post1297528.html#post1297528"]http://www.daniweb.com/forums/post1297528.html#post1297528[/URL] Please do take part in the discussion. Regards, Nisheeth Barthwal

0
80
Member Avatar for Newtothis123

/* About this program: - This program counts words. - The specific words that will be counted are passed in as command-line arguments. - The program reads words (one word per line) from standard input until EOF or an input line starting with a dot '.' - The program prints …

Member Avatar for ftl25
0
679
Member Avatar for lai2van

HI, I am very new to C# socket. I have tried several very simple code, but all of them lead to same error message: System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it 127.0.0.1:7 at System.Net.Sockets.TcpClient..ctor(String hostname, Int32 port) at MainClass.Main(String[] args) in C:\ConsoleApplication1\Program.cs:line 14 Below …

Member Avatar for Ketsuekiame
0
587
Member Avatar for mavs123

I would just like to ask if in declaring methods in your class at C++ you would always do this: [CODE]public: void ListInsert(position,item,success); void ListDelete(position,success); void ListLength(void); void ListIsEmpty(void); [/CODE] i am to create adt list using the basic funtions but i can't start..whew!

Member Avatar for mike_2000_17
0
117
Member Avatar for AkashL
Member Avatar for coolshiva

hi frineds can anyone help me to write a program on creating a calender with enumerated data type

Member Avatar for abhimanipal
0
89
Member Avatar for ota1it1iuss

Sorry, I originnaly posted this in the Geek Lounge: Okay, the first project was to build a calculator that functioned as follows: ----------Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to evaluate: (Note: the '>' designates user input for …

Member Avatar for sfuo
0
2K
Member Avatar for okwy

Can some one please help me on this issue as I have spent time going around it without making any headway. I have data in an array of size say 3O. 1. I want to take the first five elements of the array, find their mean value. Store the value …

Member Avatar for abhimanipal
0
9K
Member Avatar for Ricky65

Hi I've attempted to create a little app which encrypts and decrypts a file using the XOR cipher. However, it only encrypts/decrypts the first few lines and I'm not sure where I'm going wrong. Advice appreciated. Ricky My code: [CODE]//XOR Encryption #include <stdio.h> #include <string.h> //XOR Encryption key char XORkey …

Member Avatar for Ricky65
0
355
Member Avatar for jackmaverick1

I have been frustrated by the lack of a time unit in all the C/C++ std librarys (hope I've got the right wording!). What is a function that I could use. I don't care if I write it or if it is in a library. Thanx in advance!

Member Avatar for caut_baia
0
234
Member Avatar for creeps

Hello, I've been going through K.N. King's [url=http://knking.com/books/c2/index.html]C Programming: A Modern Approach[/url] and, after completing the first 10 chapters, I wanted to give my knowledge a try and write something I've always wanted to: a Hangman game. It turned out more of a "Mystery Word" game, as I haven't created …

Member Avatar for creeps
0
525
Member Avatar for ftl25

I have an array of strings as follows: [CODE] char *sCmdInt[8];[/CODE] I am filling this array by tokenizing a line of text from a file. I then want to check if element 0 of the array is equal to a value. Eg: [CODE] if (sCmdInt[0] == "ReadMemory32") { // do …

Member Avatar for ftl25
0
149
Member Avatar for libathos

so i have written a c program...my question; is it possible in any way that it will execute itself whenever say a flash disk is in input or the file that contains it is opened??

Member Avatar for libathos
0
94
Member Avatar for chrysanterus

gud day...i'm just a new member of this sites,is there somebody may help me about turbo c,turbo pascal and fox pro code,i just need a sample basic codes.i've been searching on the net and those info. was so broad and made me so confused..our instructor want us to search and …

Member Avatar for abhimanipal
0
127
Member Avatar for ota1it1iuss

Okay, the first project was to build a calculator that functioned as follows: ----------Using the example functions about, write a calculator program. Allow for the user to enter a simple math functions to evaluate: (Note: the '>' designates user input for cin) >5 >+ >7 >= result:12 or: >5 >+ …

Member Avatar for ota1it1iuss
0
201
Member Avatar for drunkenmonk

I'm writing a lite version of the stty command for school, and I keep getting this error at compile: showtty.c:40: error: expected ‘;’, ‘,’ or ‘)’ before ‘&’ token My code: [CODE] #include <stdio.h> #include <stdlib.h> #include <termios.h> /** ** showtty ** displays some of current tty settings **/ main(int …

Member Avatar for sree_ec
0
164
Member Avatar for campbell.st04

Please help me with this program. I can't figure it out. This is my previous work and I've been asked to modify it with the objectives below. Given Script: Main (Class1.cs) using System; namespace Assignment1 { class Class1 { [STAThread] static void Main(string[] args) { Dwelling x = new Dwelling(); …

Member Avatar for Geekitygeek
0
148
Member Avatar for qqwushi12345

Write a C program to solve the Greatest Common Divisor, according to the brute-force The output should appear as the following example: 1st number = 37 2nd number = 11 The GCD of 37 and 11 is 1. Press any key to continue_ thank you,

Member Avatar for Nick Evan
-1
165
Member Avatar for amegahed3

Hi All, I'm not an expert in C, and what I need to do is the following. I have a certain large .txt file that has many lines (sometimes the lines are separated with one empty line, sometimes two, sometimes 3,...etc. Some of these lines have "= 9999999999" at their …

Member Avatar for amegahed3
0
78
Member Avatar for Weichen

I have input stream problem where my Console::ReadLine() command gets "eaten" when I try to loop my program back to start. Here is the code [code=c] #include "stdafx.h" using namespace System; int factorization(); int main(array<System::String ^> ^args) { int terminate; do{ terminate = factorization(); }while(terminate == 'y' || terminate == …

Member Avatar for Weichen
0
431
Member Avatar for kadams

I need to count characters from a file. But I get an error error C2660: 'getchar' : function does not take 1 arguments. Im new to C please bare with me. Thanks for your help. #include "stdafx.h" #include "stdio.h" #include "stdlib.h" #include "string.h" int _tmain(int argc, _TCHAR* argv[]) { int …

Member Avatar for kadams
0
141
Member Avatar for okwy

Good day all, I have a date string format say like "2010-03-01" and I want to get the "tm_wday" equivalent of it say like Monday, Tuesday ... Could someone give me a hint on how to achieve this in c. Thank you.

Member Avatar for Ancient Dragon
0
224
Member Avatar for piro87

Hi guys, i really need help here. I must write a program in c that reads a file .RAW that it contains photos in sequential order, every photo has a head-board of 4 bytes. (0xff 0xd8 oxff 0xe0 or 0xe1) and that way I can identify the beginning of the …

Member Avatar for Adak
0
832

The End.