43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for venuaccha

Can anyone tell me whether it is allowed to use a Semaphore in a Reentrant function.

Software Development c
Member Avatar for venuaccha
0
202
Member Avatar for tformed

The program I am writing displays the velocity and acceleration when the user inputs time. The code I have thusfar is: [CODE][COLOR=#008000] [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<stdio.h> [/COLOR][COLOR=#0000ff]#include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<math.h> [/COLOR][COLOR=#0000ff]int[/COLOR][COLOR=#000000] main ([/COLOR][COLOR=#0000ff]void[/COLOR][COLOR=#000000])[/COLOR] { [COLOR=#0000ff]int[/COLOR][COLOR=#000000] time,velocity, acceleration;[/COLOR] printf ([COLOR=#800000]"Please input time in seconds: \n"[/COLOR]); scanf_s([COLOR=#800000]"%d"[/COLOR] , &time); velocity = 0.00001* pow(time,3)-.00488* pow (time,2)+.75795*time+181.3566; acceleration …

Software Development c++
Member Avatar for Gel
0
114
Member Avatar for johngalt

There is a problem in this code. I don't know what to do. If you try to compile it, says: transformaclave[const *char] cannot be distinguished from tranformaclave[ const char* const] can anybody help me??? thanks anyway. [code=c]////////////////////////////////////////////////////////////////////////////////////////////////// // // // UNIVERSIDAD DE PALERMO // // // // TRABAJO PRACTICO DE …

Software Development c
Member Avatar for Ancient Dragon
0
96
Member Avatar for lotsofsloths

OK, I am trying to make a Lottery game in Microsoft Visual C++ 2005 Express Edition with windows application format that randomizes 6 numbers, 1-40. I've made the # randomizer, but i cannot get the number to show up on a textBox. Here is the code that is "bad". [code] …

Software Development c++ microsoft
Member Avatar for lotsofsloths
0
154
Member Avatar for kylcrow

Hey guys, I need to write a struct that measures the distance from a point (x,y,z) to the origin. I am good on how to write it as a struct, I just don't know the formula for the distance. Can someone help me out? Also, the formula for a dot …

Software Development c++
Member Avatar for kylcrow
0
89
Member Avatar for sInFuL69er

Hello everyone, i've gone blank atm and i cant think i have a class [code] class Client { public: int aa; int bb; }; [/code] different file [code] class agent { private: vector<Client> clientRequest; public: void getClient(); }; [/code] and i get information from a file [code] infile >> C.aa; …

Software Development c++
Member Avatar for vijayan121
0
107
Member Avatar for aktivo

Hi friends I need help whit a problem solver thst you can i want a code or program that realize a conversion of dates (kilometer _ meter, meter -libs etc. like15) its also whitout arrays or thats.

Software Development vb.net
0
64
Member Avatar for scru

Hey. I'm having a problem. In a form's constructor, I have: [code=C#]this.KeyDown+=new KeyEventHandler(frmGScreen_KeyDown)[/code] but the event handler does not invoke at all when I press a key on the keyboard. I know this because i have the code "txtOutput.Text="Event handler entered" as the first line of the handler, and nothing …

Software Development
Member Avatar for dahwan
0
99
Member Avatar for fatnickc

I'm in the middle of writing a C++ program which will eventually sort data, using a tree. I would like to swap a child with its parent if the child's value (could be anything, using a template) is less than the parent's. however, I have become stuck when trying to …

Software Development c++
Member Avatar for fatnickc
0
241
Member Avatar for crienoloog

I'm not a programmer but I desperatly need help with the following please... it was written by someone but never tested, and contains some small mistakes that I can't solve. The person is not available anymore, so here my plea for help. I have a mailmessage looking like this: [URL]http://www.criens.nl/lambada/sailmailmessage.txt[/URL] …

Member Avatar for crienoloog
0
119
Member Avatar for StrikerX

hi guyz, i'm a Python user (not so long) , anyway i've read some stuff about lua . i've written function like this [code]def pair(dic = {} ): return dic.keys(), dic.values()[/code] a dictionary is a parameter to the pair function . to use it like this : [code]dic = {1 …

Software Development operating-system python slackware
Member Avatar for StrikerX
0
152
Member Avatar for 7even

I have a problem with tree control and i don't know how to solve it, maybe someone can help me. What i'm trying to do is display widgets in a staticbox plus a help text when i select different items in a tree. For example when i select item1 in …

Software Development python
Member Avatar for vegaseat
0
223
Member Avatar for Fungus1487

right MS Access is balls compared to other DB's i know but im working on a project which already uses an Access DB. Now after writing the following eclipse gives me a lovely error which im yet to figure out. Googling has thrown up people with similiar problems but no …

Software Development java microsoft-access
Member Avatar for Fungus1487
0
134
Member Avatar for usguy

Hi, I am having difficult time to make this run. Can anyone help me please?. I have test form with 3 command buttons & one Richedit.Im using access database to test. It have just one table with two fields ID (Integer), sMemo (memo). I am trying to save richedit text …

Software Development microsoft-access pascal
Member Avatar for usguy
0
325
Member Avatar for usavguy

I have a database (myDB1.mdb) that contains related data in seven tables. Using vb6 existing in a separate application, I would like to find a way to archive this data into a new database (myArchive1.mdb) located in the same location as the main database. I understand how to use the …

Software Development data-structure visual-basic
Member Avatar for usavguy
0
122
Member Avatar for jetru

How would I go about making JTextField allow the user to input only numbers 0 - 9? I looked into JFormattedTextField but it doesnt seem to be what I need. Would I have to code it to check the users' input everytime? Is there a simpler way?

Software Development gui java
Member Avatar for jetru
0
91
Member Avatar for IwalkAlone

I want to know when it is necessary to include a return statemnt in one's code and also what is the difference between recursion and iteration?

Software Development c
Member Avatar for IwalkAlone
0
143
Member Avatar for push

what is the difference between arrays and strings at java?

Software Development java
Member Avatar for push
0
112
Member Avatar for ptaylor965

I am using an MSAccess 2007 database file to retrive some info The tables look like this tblIncome Date | Takings 12/05/2007 | 10 12/05/2007 | 20 13/05/2007 | 10 16/05/2007 | 40 tblExpence Date | Takings 12/05/2007 | 10 13/05/2007 | 20 14/05/2007 | 50 When running the code …

Software Development vb.net
0
67
Member Avatar for Dageki

I have been tasked with cleaning up some daily backups and I want to automate this. I have decided that Perl might just do the trick except up until about a week ago I did not know much about it. I have been doing some homework but I am stuck …

Software Development perl sharepoint
Member Avatar for Dageki
0
98
Member Avatar for ajaxjinx

Hi , I need to Assign 4 bits to unsigned char: I am using, unsigned short Ver : 4 ; My ques is ... howw do I initialize Ver , coz Ver=5 is not working.. If i need a type cast.. what will it be???

Software Development c
Member Avatar for ajaxjinx
0
194
Member Avatar for quintoncoert

I am new to c++ and I am using visual c++ express edition. I am spending quite a lot of my time doing excercises and am using the command line to compile them. I have now reach the stage where I am seperating the header files and the .cpp files …

Software Development c++
Member Avatar for Ancient Dragon
0
157
Member Avatar for ghadahelal

is there is any fun in the c++ library that takes a dec and return hex

Software Development c++
Member Avatar for WaltP
0
219
Member Avatar for squinx22

Hi gud day! Anybody who knows how to save a file to [U]/usr/include[/U] in the terminal? Suppose I will save a file named hello.h to the said directory, what would I do in the terminal? thank you very much....

Software Development c++
Member Avatar for ndeniche
0
94
Member Avatar for Covinus

[code] a=(char*) malloc(sizeof(15)); b= bmfh.bfType; sprintf(a, "bfType: %d", b); TextOut (hdc, 0, 0,a , strlen(a)) ; delete[] a; a=(char*) malloc(sizeof(15)); b=bmih.biBitCount; sprintf(a, "bitCount: %d", b); TextOut (hdc, 0, 20,a , strlen(a)) ; [/code] is it necessary to leave the a undeleted when i gave it another value or i should …

Software Development c++
Member Avatar for Covinus
0
122
Member Avatar for therwi

[COLOR=#000000]Your assignment is to write an assembly program that takes a series of characters from the keyboard until a '$' character is entered. These characters must be saved in a stack. Then the program is to print all these characters backwards.[/COLOR]

Software Development assembly
Member Avatar for qrius
0
122
Member Avatar for LyddieFrog

I'm currently writing a program that acts as an application for a store manager, sorting, searching, reading in, etc. products. This program has two classes: one to handle the GUI and another to handle the actual calculations. I am completely done coding this, save for one requirement: I need to …

Software Development gui java
Member Avatar for LyddieFrog
0
154
Member Avatar for MarzenaM

I have to write programm to sort numbers from in ascending order, using vector (C++ language) I did this using array, and it works perfect. Please could you help me replace array to vector. It's very urgent. :'( My code is: [code=c] #include <iostream> void fill_array(int a[], int size, int& …

Software Development c++
Member Avatar for Lerner
0
112
Member Avatar for kissiwat

I've gotten myself a bit confused here. :'( I've created two linked lists called 'competitors' and 'races'. I'm able to add, append and display info in both files but unable to delete or update the information contained in either. I've started the coding for both functions but have got totally …

Software Development c
Member Avatar for Ancient Dragon
0
183
Member Avatar for isitintheback

No they're not mental. Well, maybe partially. It's 1:47am I'm tired as hell, but won't rest until I complete this. I know this is right in my face, and it's something stupid but I'm just not picking it up for some reason. Here's the code: [code] if(g1 == true){ total …

Software Development java
Member Avatar for isitintheback
0
172
Member Avatar for Tauren

Greetings! I just have a question is the book C++ Programming Primer By D.S. Malik a book worth getting? What stage is it: Beginner, Professional What does it teach me up to: What the last topics in book Will I need more books after this regarding the topic? And is …

Software Development c++
Member Avatar for Narue
0
267
Member Avatar for Lapinbriac

My problem may be very simple. I want to use a Tkinter window to show informations to the user, so that he could enter his answers to the Python Shell. The problem is that when the Tkinter Window appears, the Python Shell will no longer receive any command before I …

Software Development python tkinter
Member Avatar for aot
0
189
Member Avatar for jaepi

hello there, in what way you can convert an integer to a char?? i'll use it to check if the user's input is a number, if it is a letter, it will allert him to try again and input a number...the integer will then be use for a 'for loop...thanks

Software Development c++
Member Avatar for WaltP
0
163
Member Avatar for MarzenaM

[B]Hi I need to create a void function to calculate area and circumfernce of triangle.[/B] [B]So far I did this:[/B] void area(int a, int b, int c ) { using namespace std; int area; int circ; int s; s = ((a + b + c)/2); if ((a + b > …

Software Development c++
Member Avatar for WaltP
0
255
Member Avatar for minigweek

I recently started dabbling with Visual C++ Express Edition 2005. Was stuck at the very onset! LOL! How to Create a console application using Visual C++ Express 2005 ?? I could create the project, included the files..did all.. build it nice and clean.. but how to run [ make ] …

Software Development c++ ide video
Member Avatar for minigweek
0
194
Member Avatar for laconstantine

I just was wondering why the array its self are a pointer to the first element? and what is the difference between an array and a pointer?

Software Development c
Member Avatar for newprog
0
237
Member Avatar for parthiban

Hi all, I tried one program to understand the concept of "Default Arguments" that program works prefectly in Dev C++ but not in Turbo C++ compiler(Ver 3.0). Here's my program [code]#include <iostream.h> #include <stdio.h> using namespace std; void justcall(char *c="Parthiban"); //char a[10]; //Global declaration needs for Turbo C++ Compiler void …

Software Development c++
Member Avatar for parthiban
0
119
Member Avatar for Lapinbriac

Hello, I would like to save the drawings I have made on a Canvas with the Tkinter Module. Is it possible to make a .jpg or .gif or .bmp from a Tkinter window ? Thank you!

Software Development python tkinter
Member Avatar for vegaseat
0
164
Member Avatar for m3an

its part of a dvd program. i want all the objects created and manipulated by the program to be stored in a dynamic array that might grow during the execution of the program. I want to program to store the info in a dynamic array that i can call anywhere …

Software Development c++
Member Avatar for m3an
0
149
Member Avatar for christianthag

Hello everybody!!! I'm desperead and i want your help!!!!! I have an excersice which say's: Built a class for dates using private data.the attributes must be controlled for validness.Implement methods for print and a method which returns the difference between 2 dates.Also make a method that calculates the day of …

Software Development java
Member Avatar for christianthag
0
89
Member Avatar for fredzik

G'day, Back again, this time with three problems. The code below contains a white entry box that I'm trying to get rid of. The main reason I'm trying to get rid of it is that the game I'm working on has a scrollable GUI, and with 50 or so frames …

Software Development gui python tkinter
Member Avatar for fredzik
0
2K
Member Avatar for parthiban

Hi all, I just started to work C++ in Dev C++ compiler before that i used Turbo C++ compiler when i try to compile a simple program in Dev C++ compiler . I'm getting error . Here's the program [code]#include <iostream> #include <conio.h> int main () { cout << "Hello …

Software Development c++
Member Avatar for parthiban
0
684
Member Avatar for Slavrix

Hey guys, im just askign if its possible for sum help with this assignment i have, its a connect 4 game, and there are some bugs that i cant work out of it no matter what i try here is the code. problem are: 1. when choosing from the first …

Software Development c++
Member Avatar for Slavrix
0
135
Member Avatar for migg_21

awk '{print NR SEP $0}' SEP="/ " exfile1.txt > try2.txt here is a awk scritp which copies the contents form one to anthor it works well, but how do I change it to copy the contents in to several files ? can any one help please

Software Development shell-scripting
Member Avatar for ghostdog74
0
178
Member Avatar for brightmohan

Hi, This function that I've written works well when compiled under the Turbo C compiler on windows XP but it says Segmentation Fault while it runs on linux after compiling with cc Compiler. I've been trying to think what might be wrong....I'm just wasting time....Please help me solve this bug. …

Software Development c
Member Avatar for Salem
0
101
Member Avatar for Tenac

Hello. I'm currently revising for an exam in structures and algorithims, but recently ran across a problem in my studies. I have already tried lookung through notes, online and Daniel Liangs java book, but can't find exactly what I need. The code is as follows: [CODE] public class QuizTest { …

Software Development java
Member Avatar for deng_cen
0
136
Member Avatar for kylcrow

How would one right justify a string with a width of 4 and store it in a variable without being able to use cout? If that is even possible.

Software Development c++
Member Avatar for Narue
0
144
Member Avatar for sez90

hi im doing a hangman game on delphi and need to randomly choose a word from an array then every letter guessed by the user for the game to check if the letter is in the word n if so place it in the appropriate place and if not build …

Software Development delphi pascal
Member Avatar for sez90
0
119
Member Avatar for shriagni

how can i create the byte and word data types. Im using a header which requires word and byte data types for execution of data. where as my compiler dun accept those types. how can i implement them? thank you in advance. regards, Shrikrishna

Software Development c
Member Avatar for Ancient Dragon
0
145
Member Avatar for littleghost76

hello everyone, im having issues with this. i don't know what else to try. i am supposed to add a remove function to delete the last node in the list, i am trying this, but i get an endless loop, and when i change it around it just sits there. …

Software Development java
Member Avatar for littleghost76
0
102

The End.