8,298 Topics

Member Avatar for
Member Avatar for IU34

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 …

Member Avatar for IU34
0
98
Member Avatar for lal_rajapakshe

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

0
63
Member Avatar for Suraine

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 …

Member Avatar for Suraine
0
105
Member Avatar for lolodede

write c++ program to input three words and put them in sequence from largest to smallest using if statement so please help me its due during less than one hour

Member Avatar for Salem
0
68
Member Avatar for lolodede

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 …

Member Avatar for ivailosp
0
252
Member Avatar for oneguy

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 …

Member Avatar for Ezzaral
0
109
Member Avatar for sandip250382

Hi, friends this is my first post here. Well, I want to learn C# from home. For this I need all your help.Can any one kindly suggest any easy e-book , I have little concept about OOP's earlier? Thanks in advance. Hoping for a pleasant stay here.

Member Avatar for sandip250382
0
82
Member Avatar for atrusmre

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 …

Member Avatar for atrusmre
0
185
Member Avatar for Ryano24

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]; …

Member Avatar for Majestics
0
100
Member Avatar for Ryano24

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", …

Member Avatar for Narue
0
128
Member Avatar for Narue

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 …

Member Avatar for ivailosp
1
680
Member Avatar for Agni

[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 …

Member Avatar for ithelp
0
201
Member Avatar for algates0027

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; …

0
52
Member Avatar for Suraine

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()" …

Member Avatar for Suraine
0
120
Member Avatar for ramiljoaquin

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

Member Avatar for ramiljoaquin
0
99
Member Avatar for Ints

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 …

Member Avatar for jephthah
0
133
Member Avatar for jitupatil_2007

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 …

Member Avatar for JerryShaw
0
119
Member Avatar for ithelp

Can you please suggest a code optimization tool for C other than the compiler ?

Member Avatar for Narue
0
65
Member Avatar for aan@ucsc

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.

Member Avatar for aan@ucsc
0
144
Member Avatar for BstrucT

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 …

Member Avatar for BstrucT
0
86
Member Avatar for kanjali

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 …

Member Avatar for kanjali
0
174
Member Avatar for atrusmre

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 …

Member Avatar for JerryShaw
0
2K
Member Avatar for bhavna_816

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 …

Member Avatar for fishsqzr
0
182
Member Avatar for kathirvelmm

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 …

Member Avatar for Ramy Mahrous
0
253
Member Avatar for hankora

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 …

Member Avatar for dilkash2007
0
143
Member Avatar for bhavna_816

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 …

Member Avatar for razool
0
337
Member Avatar for nelsonsu

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 …

Member Avatar for nelsonsu
0
156
Member Avatar for triptych2008

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 …

Member Avatar for vijayan121
0
125
Member Avatar for monjuri

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 …

Member Avatar for jwenting
0
241
Member Avatar for majestic0110

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 …

Member Avatar for majestic0110
0
121
Member Avatar for knowledgelover

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'" …

Member Avatar for binoj_daniel
0
563
Member Avatar for Traicey

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 …

Member Avatar for Traicey
0
143
Member Avatar for venky.mahale

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...

Member Avatar for venky.mahale
0
178
Member Avatar for knowledgelover

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 …

Member Avatar for knowledgelover
0
100
Member Avatar for eddy556

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

Member Avatar for eddy556
0
94
Member Avatar for hwa

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] …

Member Avatar for hwa
0
173
Member Avatar for Ryano24

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 …

Member Avatar for jephthah
0
2K
Member Avatar for sia_mak

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 …

0
44
Member Avatar for 99.99%

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.

Member Avatar for Narue
0
37
Member Avatar for cVz

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 …

Member Avatar for david.crawford
0
97
Member Avatar for hwa

[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 …

Member Avatar for hwa
0
111
Member Avatar for shamin

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 …

Member Avatar for vijayan121
0
108
Member Avatar for HIGHER LEARNING

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 …

Member Avatar for vijayan121
0
222
Member Avatar for zellex

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 …

Member Avatar for mentkapto
0
1K
Member Avatar for michealangelo07

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 …

Member Avatar for Ramy Mahrous
0
62
Member Avatar for serkan sendur

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. …

0
163
Member Avatar for Barbarrosa

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 …

Member Avatar for Ramy Mahrous
0
443
Member Avatar for eme2008

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 …

Member Avatar for binoj_daniel
0
158
Member Avatar for serkan sendur

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.

Member Avatar for SheSaidImaPregy
0
589
Member Avatar for himanshu anand

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 …

Member Avatar for himanshu anand
0
168

The End.