43,549 Solved Topics
Remove Filter ![]() | |
Can anyone tell me whether it is allowed to use a Semaphore in a Reentrant function. Software Development c | |
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++ | |
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 | |
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] … | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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] … Software Development api google-api perl windows-api windows-server | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
what is the difference between arrays and strings at java? Software Development java | |
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 | |
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 | |
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 | |
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++ | |
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++ | |
[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++ | |
[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 | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 … | |
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++ | |
[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++ | |
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 ] … | |
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 | |
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++ | |
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! | |
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++ | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 |
The End.