8,298 Topics
![]() | |
I'm making a text adventure game, and it's actually coming along quite nicely...the only thing is, I want to be able to return to the previous screen whenever I want. Say that in my game, I go north. I want to be able to go south, back to my main … | |
with reference to this pls put some coding for placing those control required cell and while leaving the cell drop the cntrl value to coresponding cell pls help me this regards Lal Rajapakshe | |
Dear c++ guru, I am using cygwin to create a c++ environment for my Lego RCX. I have create a program file in c++ format. when compile with cygwin, it shows: [code] file.ds1: line to short on line 324[/code] can anyone help explain to me what is it? I am … | |
Write a C++ program that reads from keyboard 3 words, with proper input prompt. Then for these 3 words that were read, the program displays first the word of the longest length, then the word of the shortest length, and finally the remaining last word. You may assume that these … | |
Any hints in converting this C++ code to java [url]http://pastebin.com/f2db2b32e[/url] I have pretty good idea what is going on in main () , but I not sure about the top template part and the class called Moron :) The program just reads a text file counts up the frequency of … | |
I've got an interesting issue with a program I'm writing. I think I know kinda what is wrong, but I'm not sure about it, and I don't know how to fix it. I have the following code [CODE]. . . string strCmd = "command"; OnDataSend(strCmd); //wait for a response while … | |
I am having some trouble getting this code into C++...Can somebody help me! [code] [inlinecode=cpp] #include <iostream> #include <cstdlib> #include <ctime> using namespace std; int random_1(); int main() { int i = 0; int j = 0; int check; int check_1; char play_again = '\n' ; int tortoise[70]; int hare[70]; … | |
I wrote this code that inputs employees salaries and distributes them to how much they made. I need some help translating this code into C++ [code=c] #include <stdio.h> int main(){ int sales[9]={0}; double gross=0, percent=0, salary=0; int total=0; int counter=0; printf("For 5 peoples salary ranges, Enter the first gross\n"); scanf("%d", … | |
Here's a challenge for you C++ aces. The challenge is to write a function with the following declaration: [code] unsigned long extract_digits ( unsigned long x, size_t n, size_t i ); [/code] This challenge has three parts. [B]Part I (Beginner):[/B] Write the extract_digits function. It should return a sub-value of … | |
[quote]Reposting from another forum as i didnt get many suggestions there[/quote] Hi Guys, In my project the user will enter the name of the organization and it's floor map has to be displayed. the maps have to be made by us and need not be complicated at all. what i … | |
HI THIS IS MY CODE..I WANT TO ZOOM THE BITMAP..HOW IT IS POSIBBLE??? using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; namespace WindowsApplication1 { public partial class Form1 : Form { public Bitmap bmp; private Graphics grfx; public Form1() { bmp=new Bitmap(this.Width,this.Height); grfx=Graphics.FormImage(bmp); grfx.PageUnit=GraphicsUnit.Millimeter; … | |
Dear c++ guru: In c++, normally we will call a function as shown below: [code] int funct () { ...; } void main() { funct(); } [/code] main will call the function "funct()" which is defined within the same file. However, in my case, i wish to have the "funct()" … | |
Hi everyone! What is the code if I want to connect to MS ACCESS or SQL SERVER using C++? Is there a special compiler for c++ for that database code? Thanks | |
I have a c program that I need to use in dos 5 but i haven´t found a way to do so .Programs that work perfectly in Win XP console window, will not work in dos.Does anyone know : What do i have to add to my code so it … | |
hi friends i have created a code which searches for the particular word from two different files and creates a new file with the records in it but i am not able to search digits from the string the code of mine goes here: [code] StreamReader sr = new StreamReader(@"C:\Documents … | |
Can you please suggest a code optimization tool for C other than the compiler ? | |
I have a problem installing .net on my machine.It gives the error massage:Install security updates and I don't have facilities to download security updates.Is there a compiler for c# free of charge ,can enyone post a link. | |
Hi all! I've looked around but to no avail... Is there any builders or apps I can download to create installers for applications written in MS Visual C#? The only option I can find in it is the 'publish' option, but I am looking for some more flexibility. Any help … | |
Hello , I am new to .net(C#) programing. I need some help in my coding , from experts. I have the following Xml file, Ex : <propertybag name="test" type="a" flags="0"> <property name="help" type="String" flags="0" /> <property name="path" type="String" flags="0">/[B]abc[/B]</property> <propertyname="url"type="String"flags="0">/[B]abc1/Samlple.xml[/B]</property> <property name="icon" type="String" flags="0" /> </propertybag> Here i want to … | |
Is there anything in C# that does the same function as strtok in C++. For example if I had the following C++ program how would it be written in C#? [code] // crt_strtok.c /* In this program, a loop uses strtok * to print all the tokens (separated by commas … | |
Can we do like this in enums enum myStringEnum { enumItem1 = "value 1", enumItem2 = "value 2", etc } i.e.spaces in the string value, I know we can assign int value to enum but I m not sure whether string values (with spaces) can be assigned to enums. If … | |
I need to extract the currently login user from remote system. This is an intra-net project. All users use win-OS. Its also possible to find the user name from net bios. This is table where all name registered to that particular machine is shown. I would like to extract the … | |
here is the error I am getting _Default.CalculateFederalTax(double, string)':not all code paths return a value code: double CalculateFederalTax(double grossPay, string taxStatus) { // Calculate Federal Tax method begins // check for the Federal Tax status (Single) if (taxStatus == "S") { if (grossPay < 240) return grossPay * 0.12; else … | |
I have a function which have return type DataRow and the parameters for the fucntion are the parameters for the stored procedure. I have to execute the Stored Procedure with given parameters and populate the datarow so that the return will be the populated DataRow with the output of the … | |
when i running this program, i've found that one of the used integer always over load. that is int outq. could someone please help me find out what's make this integer over load at last? thanks. [code=cpp] #include <stdio.h> #include <stdlib.h> #include <time.h> #include <fstream> #include <iostream> #include <string.h> #include … | |
Hey guys. I need some help on input validation in an array. The program can only input numbers but not characters. This is the code for the input. ( I know im a newbie lol ) [code=cpp] const arraysize = 10; float num[arraysize]; for ( int i = 0; i … | |
hello all, for few days i have been trying to connect with my oracle 9i database with visual studio 2005 using c#. i tried all the processes that i found in internet. but i fail to connect with my oracle database. i have service named GLOBAL USERNAME: first password: first … | |
Hi all, I am contemplating moving from c# to VB and wondered what might be the greatest obstacles to overcome. I guess what I would really like to know is, if I am quite knowledgable in c#, will vb be easy to pick up? Something else that is bothering me … | |
hi there, I am trying to make my service to insert to a database when it starts as follows : [CODE]protected override void OnStart(string[] args) { base.OnStart(args); string query; id += 1; SqlCommand comm; conn = new SqlConnection("my connection string"); query = "insert into myTable values('" + id + "'lamya'" … | |
On C++ we have two different types of function which are non-returning value or void function and returning value function and what I would like to know under which condition you use either of those functions, and when do you know that you have to pass by reference(ByRef) or by … | |
I have developed a small web application in c# and want to convert it to HTA (Hypertext Application).. Can any body help me by telling how to start with this... | |
Hi there, can a service written using C# to open another application written using C# too , In other word I wrote a service which I need to open forms and do more , so I had a windows application to perform all what all I want, but I do … | |
Hey I know this must be simple, but how do I prevent windows media player playing automatically when the form it is contained on is loaded? Thanks | |
My problem is I want to add in a value to a LABEL based on selected value in the DropDownList !! Example: tbl_abc ID [COLOR="Red"]Sequence [/COLOR] Name ----------------------------------------------- 1 [COLOR="red"] 2[/COLOR] Michael 2 [COLOR="red"] 3[/COLOR] Jenny 3 [COLOR="red"] 4[/COLOR] Max 4 [COLOR="red"]4[/COLOR] Max 5 [COLOR="red"] 2[/COLOR] Michael 6 [COLOR="red"] 4[/COLOR] … | |
I have to do a code in De Morgans law show that 2 expressions are equivalent. I not even sure if I am going in the right direction. Can somebody steer me right original expression - ! ( x < 5 ) && ( y >= 7 ) De morgans … | |
hi every body ,i developed a c# application with vs.net2005 and i want to write the help content for my aplication and i am looking for a software that could support wright to left language (such as farsi or arabic) for help building so that the topic ponel must be … | |
hi all, can anyone tell me what is the namespace for StringTokenizer in C#? im using this one: [CODE]using System.Text;[/CODE] how to work with StringTokenizer.i mean i have found sample codes but dnt know how to use them. | |
Good Evening (Morning to others) I would like to find how it would be possible to create a calculator with only one entry field, i have managed to make one with two entry fields resulting in a ([2LeftOperand] + [2RightOperand]) calculation...i have tried hiding the Right Text box, and even … | |
[COLOR="Red"][/COLOR]I'm having a problem to inserting date/time in my database.. In my database have ONE column that consists of DATE and TIME I want use separate dropdownlist for the [COLOR="Red"]HOUR[/COLOR], [COLOR="Red"]MINUTE[/COLOR], [COLOR="Red"]SECOND[/COLOR] and I want to bind it & insert it to a 1 column in database.. I need to … | |
k hi every1, im kinda new to C++, anyways..this is an assignment for my college. im supposed create a program that displays the username in a "creative" way. so first thing is do i use the get and ignore functions to get the initial if the user enters the whole … | |
Ive been trying to understand the below code for a while and need to know if it "acts like a record" for a single user. At the `end users[userdb]` is like an array for 6 struct user records? #define userdb 5 /* DataBase*/ struct user {char username[10]; char userid[9]; char … | |
Hello, I'm designing a C++ Program for a connect 4 game. I have the matrix set up, the test to determine if there is a winner, and now I need to design the computer to go against the player. This seems to be quite a challenge. First, I need to … | |
I've made an image processing application in Matlab, that reads an image and stores the width and height of the image in 2 variables, x and y .... Now i want to read those 2 variables in another application (a C# application) that is running with the Matlab application... Does … | |
Create Ajax Enabled WebSite. Set EnablePageMethods property of the ScriptManager to true : <asp: ScriptManager ID="ScriptManager1" runat="server" EnablePageMethods="true" /> In the CodeBehind of the page, register System.Web.Services namespace. Create a Method as follows : [WebMethod] public static void DoSome() { } the method must be static and tagged as WebMethod. … | |
Hello, I am new to C#. What i am trying to do is this: I am taking a screenshot of my desktop (which i have done and stored in a file). Now all I need is to be able to define the parts of the image which I wish to … | |
Hello everyone, I was wondering if anyone could tell me how to connect and query sql databases in ASP.NET Using C# code I try to use this code, but there is some mistake in the code lead to an error message You must first withdraw from sqlDataadapter toolbar to connect … | |
How to create watermark image at runtime in c#? I dont want any unnecessary codes, i want easy, clear and short block of code if possible. Thanks in advance. | |
this may be in any of the three lang i.e c,c++,java i have got the algo but not able to solve it :P the question is that there may be at most 50 ballons in 3D whose coordinats should be enter by the compiler and there is a shooter who … |
The End.