132,724 Archived Topics
Remove Filter ![]() | |
Please see this program: [CODE]float area(float); void main(void) { float radius; printf ("Enter Radius"); scanf ("%d",&radius); printf ("Area is %f",area(radius)); } float area (float rad) { return (4*3.142*rad*rad); }[/CODE] please explain the above program, there no value has been assigned for [iCODE]rad[/iCODE] then what does it mean ? why it … Software Development c | |
Hello everyone! I havnt posted in awhile, but I am working on a new project and have hit a speed bump. I was wondering if there is a way to transfer HTML form data to a C++ program. What I mean by that is, the user enters data into the … Software Development c++ | |
Hi. I am trying to match a string: "RemoveAcc $k: $v" There are an arbitrary number of spaces between RemoveAcc and the two variables...Preferably I would like to store these to variables using $1 and $2 after the string is parsed, but I do not want to save the RemoveAcc … | |
Hi all This is the file i wanna write a program for [url]http://www.mediafire.com/?vzrz1ymnmlq[/url] . It contains a database with a game's "spells", the damage they do, they're icon and other useful info i wanna see. I wanna get this file in an sql executable format and into my sql database. … Software Development c++ open-source | |
Hello, I am currently doing a VB project for a course, I have all the features working bar the datagrid, when i use the program without the datagrid it works perfectly, however if i put a datagrid in I can only add and delete, but I am unable to cancel … Software Development visual-basic | |
Hello, I would like to have a PriorityQueue whose elementes are instances of different subclasses. For example: Event is an abstract superclass. Event1, Event2, Event3 are subclasses. Xpto<> is an interface and PriorityQueueXpto<> is a class that implements Xpto and extends PriorityQueue. [CODE]Xpto<? extends Event> a = new PriorityQueueXpto<????>();[/CODE] Is … | |
[B]Redo the Lucky Sevens dice-playing program so that it uses dice objects. That is, design and implement a Dice class. Each instance of this class should contain the die's current side. There should be an accessor method for a die's current value. The method roll is the only mutator method. … Software Development java | |
hello all, i have the following VB code which is expected to activate a storred procedure from SQL DB. for some reason i recieve a msg that the procedure does not recieve the inpute parameters. the code: [code] Sub Validate_Data() 'check if data is there: If Cells(5, 6) = "" … Software Development open-source visual-basic | |
Excuse me if it is a silly mistake but i am newbie to java and couldn't figure it out. Basically it searches if txtText (text area) contains the txtSearchParam (text field) and returns the number of txtSearchParam in txtText. Algorithm is working. simply i can't access variables defined in main … Software Development algorithm java java-swing | |
Hello guys. I have a question. How can i save my ellipse in a variabile ? i need this because i need to change it's position SolidBrush redBrush = new SolidBrush(Color.RoyalBlue); e.Graphics.FillEllipse(redBrush, 145.0F,95.0F, 10.0F, 10.0F); Software Development | |
![]() | I have a bot that connects to a server. The server code is a base class and the code that processes the data from the server is in a class which inherits the base class. I have two conditions for this assignment: [LIST=1] [*]The entire code should be runnable from … ![]() |
Hello Guys. Does C# includes a Graphic Header ? I want to create a circle , with some BIG DOTS on it , and that BIG DOTS to rotate on the circle axis. Is that possible ? Software Development | |
[Linker error] undefined reference to `__cpu_features_init' comes to [CODE]#include <stdio.h> int main(){ char c; printf("Hello World!"); scanf("%c", &c); } [/CODE] I don't think that it's code problem. What can I do? (Dev C++ newest version) (I tried reinstalling DEV C++) | |
As you see at below I used "-1" as my sentinel value but my program wants the other 6 values i asked for in scanf too. How can i solve this problem? I just want the user to enter -1 and exit my loop. I would greatly appreciate for your … Software Development c programming-construct | |
Hello, there. I'm trying to write a program which reads student information from keyboard and does some calculations. I've just started it and I dont know much about this "Struct" topic. As far as I know, I've tried to do something and here is the result. [CODE]#include <stdio.h> #define N … Software Development c | |
Hi, Are there any web version of Delphi? It is because I cannot install the Delphi from my portable harddrive to the public computers. Cheers, | |
Hi Im new to this comunity and Im in throuble with C heheh. My problem is that: Im using LUA to create scripting capabilities do my software in C. So, I ve created a file called script.c to suport all script code of my project. See: [B]script.c [/B](some lines) [code] … Software Development c | |
I have discovered a bug in some assembly code I have been working with but can't figure how to fix it. When shifting left by 0 the result ends up being 0 instead of jut the number. The same applies when shifting to the right. Any and all help is … Software Development assembly | |
hi, how to i get the data i the dategrid view and save it in the SQL database in C#. and also how to aloow the user to enter details from the grid view. thankxxxx | |
I have 3 files. variables.h, variables.c, and dictionary_test.c. How would I use my variables.c to get information from variables.h and dictionary_test.c? I'm not supposed to touch the variables.h and dictionary_test.c. I gotta do all the work in variables.c. This is the variables.h. [CODE]#define MAX_VARIABLE_LENGTH 15 /* Set the variable with … Software Development c | |
This is VC++ 6.0 code running on a Windows Server 2003 SP2 machine. 1. I launch an external exe from my code using CreateProcess() 2. This process creates a file on disk 3. I do rc = WaitForSingleObject(procInfo.hProcess,INFINITE); 4. rc is returned as WAIT_OBJECT_0 5. int result = _stat( strDestFile, … Software Development c++ windows-server | |
Can someone explain me why this string extended method gives me an ArgumentOutOfRangeException (Index and count must refer to a location within the string. Parameter name: count), [CODE=C#] public static string Remove(this string str, char lower, char upper) { return str.Where(ch => ch <= upper && ch >=lower) .Aggregate(string.Empty, (current, … Software Development | |
I'm lost. I've been trying to do this for a while now and I can get halfway what I need. But I can't tell if it's working or not, or where my problem is. I don't want to use the wizard in VS to add a data source, I'd like … Software Development dataset open-source | |
Hello to all of you I have been using Turbo C++ for last 6 mounths and do all my graphics very fine. But when i started using Vc++, graphics.h was not including there. Can any one of u tell me to how to start graphics programming in Vc++ using same … Software Development c++ | |
My program keeps giving my undefined references to my vectors and items in namespace fun class driver and i cannot change it I really need help I'm a pretty big noob at programming [CODE] /* * Austin Gould * * main.cpp * main to drivers in fun in the sun … | |
I began teaching myself programming 3 weeks ago. Its hard (for me) i'm trying to include some date validating within a program i am writing. this is what i have so far, but invalid dates are validated unfortunately. eg. November 31 2010 or february 30 2012 have a look and … Software Development c++ | |
Hey guys, trying to create a binary search tree (BST) and I dont know why but the program is not reading my insert method? When I am testing it, it shows that I did insert the number, yet when I do a check to see if the tree is empty … Software Development java | |
I keep geting the following errors for my code while compilling can any one give me some dirrection on wha i have done wrong? C:\Documents and Settings\Mark Standerfer.DESKTOP\My Documents\Inventory2.java:117: class, interface, or enum expected System.out.printf("\n\nItem Name: %s\n",s.getItemName()); //display item name ^ C:\Documents and Settings\Mark Standerfer.DESKTOP\My Documents\Inventory2.java:118: class, interface, or enum … Software Development java | |
Hello, i got a problem with identifieng my classes upon its static ID number. Upon creation of each class, it recieves its individual number, the numbers are ascending from 0 to "endless". So now, I want to do a loop like this [code=c++] for(int i = 0; i <= Class::GetMaxIDNumber(); … Software Development c++ | |
Hi, I've got a date range between a start and end date, which has to be each month on the valuation day, but if end date(2010/07/20) is before the valuation date(2010/07/31), the valuation month for that month must be displayed. if (endDate.Day < validDay) is true, then it works perfect. … Software Development | |
Hello, I currently have working code to solve a single first order differential equation using a predictor-corrector. I need to modify this to solve a system of first order differential equations. Here is the system I need to solve: y'' = -y' + 6y; y(0)=1; y'(0)=-2, on [0,4] And here … Software Development c++ | |
Hi guys, I'm trying to count the comparisons in the mergesort algorithm so that I can compare it to other sorting algorithms. I've managed to get a count function to work for insertsort but mergesort is being a complete pain! It's probably a very simple problem but I've experimented around … | |
i want to passing a data from a method but in array.. some error occur like array required but double found and incompatible type.. i don't know how to do it..help me anyone... example: [code]public double getFood(Date date, double AA, double BB, double CC) { }[/code] [code]// below is in … Software Development java | |
[CODE] OpenFileDialog dlg; richTextBox1->Text=dlg.FileNames; [/CODE] Can someone tell me what am I doing wrong? I get the following errors cannot convert parameter 1 from 'cli::array<Type,dimension> ^' to 'System::String ^' I want to multiselect files and then print their names intoo richTextBox1. I know that richTextBox1>Text is System::String^ and dlg.FileNames is … Software Development c++ | |
Hi Everyone, There are so many controls, properties, etc in VB 2008 .NET it's mind boggling. I'm amazed at how much this product can do. Does anyone know of a VB 2008 .NET book that describes in simple language and shows sample code for all of those controls, properties, etc? … Software Development asp.net vb.net visual-basic | |
Hello all, i was just wondering how you can make a button link to another page, for instance i want the help option on my start menu to link to a help page, if you can understand this can you please supply a small snippet of code, here is my … | |
I have this error, " lvalue required as left operand of assignment," for line 10 where scanf command appears. I can't figure out a solution to it. [CODE]#include <stdio.h> int main() { int start; char delay; printf("We're close to blast off.\n"); printf("countdown initiated"); scanf=("%d", &start); do { printf("T minus %d … Software Development c | |
Ordering objects is one thing that is changing as we will move to Python3 Python 2.6 gives interesting results [CODE]a=[1,'23',('a','b'),False,[[]],[],'bc',['ab','34'],45,'0',{},True] >>> sorted(a) [False, 1, True, 45, {}, [], [[]], ['ab', '34'], '0', '23', 'bc', ('a', 'b')] >>> print True==1 True >>> print False==0 True >>> print False=='' False [/CODE] Python3 … Software Development python | |
Hello all, i am in need of developing an application (writing a C/c++ code ) to Run an application(say for example a vlc player or any as such) from the Code and get its process ID and perform certain manipulation and then kill it ..... i want the application to … Software Development c++ | |
Hi Basically i am trying to read a file and insert a specific string at a position. but it seems that the entire process freezes and the program runs out of control. [CODE] fstream shot; char mess[240]; shot.open("file.vix"); while(!shot.eof()) { shot.getline("mess",240); if(strcmp(mess,"<DEPT>)==0) { shot<<"< ANNOUNCED >\n"; //TROUBLE } } [/CODE] … Software Development c++ | |
hi all, thanks for viewing this post.. i have a java constant class for label and button [CODE]public class ButtonConstant { public static final String EXIT=ButtonConstant.getString("BUTTON_CONTENT"); private static String getString(final String key) { System.out.println("inside buttonconstant"); return new LocaleHelper().getString(key); } } [/CODE] here the button content is the key which is … Software Development java | |
Hi and thanks for viewing my thread, i have a problem with JComboBox. in my situation, i have a code that display JTextArea and JComboBox. this is my code: [code] public class JScrollPanes extends JApplet { //-------------------------------------------------- static String[] t_value2 = { "2", "3", "4", "5", "6" }; // ----------------------------------------------- … Software Development java | |
Hey lads. Doing a while loop question but am having a little difficulty with this question. I thought i knew enough to get questions like this correct but unfortunately not experienced enough. The following code is attempting to get sum of values in array that are less than 10. When … Software Development java | |
Im writing the demo for my class to demonstrate each method. The class takes a number and assigns it to a month, or is supposed to. I have it working to say month 1 is January, month 2 is February and so on. I want to user to enter a … Software Development java | |
Hi, Im currently in a situation to get all the application name that is currently running in windows but i can get only the processes that is currently running using the following code Process p = Runtime.getRuntime().exec("tasklist.exe /v "); Can anyone help me out in getting the application name... Thanks … Software Development java | |
If i have a listBox , with 10 elements ( or whatever ) , can i select a element and to change it's color ? Only for that element , not for all ... Something like: listBox Collection: [B]ENG [COLOR="#ff0000"]UNG[/COLOR] IT RO [/B] Like in my example , to choose … Software Development | |
Hi I'm pleased to say that my programming in Python is going really well and I've managed to write about 70% of the codes I need (for a data analysis program) and now I'm starting with the last 30%. :) I have a text file containing data from a set … | |
Hi a GPS Device Send position information to My server IP and Port with GPRS system Now I Want See That information on server I a project for listen the IP and Port (Like Chat) but I recive only $$ ! why? Software Development vb.net | |
hi, i have some problem with my project, can u help me??? I google but no solution found...:( I used hibernate, strust 2 and spring to manage transaction. I want to try catch username in New.java, username is a PK, this pape throw can throw excetption error but the server … |
The End.