8,298 Topics

Member Avatar for
Member Avatar for ConfusedLearner

How do I turn my problem to have suboutine. Not so sure how to do it. #include <iostream> using namespace std; int main() { int x,y,z; cout << "Please enter first number: "; cin >> x; cout << "Please enter second number: "; cin >> y; z = x + …

Member Avatar for vmanes
0
96
Member Avatar for ConfusedLearner

I am not sure what I am doing so wrong. Please help. #include <iostream> using namespace std; int addition(int x, int y, int z); int main() int x,y,z; int main(){ cout << "Type a number. "; cin >> z; cout << "Type another. "; cin >> x; z = x+y; …

Member Avatar for shashikumar s g
0
284
Member Avatar for shah.harsh.m

I am a novice in programming. I have a project where I have to get data from a website (I ll be posting the website below). But it happens that I first have to select a date and press a 'Go' button and then click on another Button/Link 'View in …

Member Avatar for shah.harsh.m
0
275
Member Avatar for FearlessHornet

I'm currently making a DLL with a collection of code snippets that I find myself commonly using. I have made a search functin that checks if one string is inside of another string. I have also added a vector choice in the case that I want to search many strings. …

Member Avatar for mrnutty
0
228
Member Avatar for Subha1983

Hi, In a form of 10 checkboxes, i needed to write/read/update those checked state values to and from SQL. Could you please let me know the best of of doing this.Each checkedbox represent one database column with bit type. Thanks. Subhash.

Member Avatar for AleMonteiro
0
75
Member Avatar for hirenpatel53

hi all i am reading excel file from c# into dataset everything working fine but the problem is it takes first row of excel as header's of column and i have "TRANSACTION DATA FOR CDs MANAGED BY TCBILs FOR THE MONTH OF DECEMBER 2012" in first row of excel ant …

Member Avatar for remunance
0
217
Member Avatar for mariocatch

Hey All, I'm an avid c++ programmer, fairly new to C#. I understand most the basics and I can get simple tasks complete in C#. I'm looking for any links to tutorials on writting a scripting language in C# if anyone has/knows any. In relation to this question, I seem …

Member Avatar for fletcher.cutting.9
0
387
Member Avatar for bhagawatshinde

Hi, I am new in asp.net. i have an task to read xml file from server folder and insert these values to sqlserver 2005 database. how i can do this. thanks in advance.......

Member Avatar for softwareskill
0
894
Member Avatar for JamesGeddes

Hi Everyone, I need to write to a text file that is located on my website Currently, I have the following code to let me read from a text file on my website [CODE]HttpWebRequest reqFP3 = (HttpWebRequest)HttpWebRequest.Create("http://jamesgeddes.com/tracknan/phone3.txt"); HttpWebResponse rspFP3 = (HttpWebResponse)reqFP3.GetResponse(); Stream st3 = rspFP3.GetResponseStream(); using (StreamReader sr3 = new …

Member Avatar for softwareskill
0
770
Member Avatar for desup

Hi, I need just simple help. Could you just give me a tip for some good TCP server/client library for Csharp? It should be easy to use, and can handle big data size. Because I was using a Netcomm library, and while sending Image bytes, It has god frozen. Thanks …

0
168
Member Avatar for ConfusedLearner

I am trying to get my program to run when I input two integer numbers in the subroutine, and then do the following math (x+y)/5. Dont know where I am going wrong. #include<iostream> using namespace std; int Divide(int X,int Y); int main() { int X; int Y; cout<<"first number:"; cin>>X; …

Member Avatar for mrnutty
0
128
Member Avatar for notconfirmed

Hello, I have a application created in windows using c# language. Now my client wants to run the executable file on the centOS server. Do you have idea on how to run my executable file into centOS server?..please help me. I appriciate some suggestion. Regards!

Member Avatar for deceptikon
0
1K
Member Avatar for shujat132

I am beginner in for c# Please help me for compilation of this code. Also please tell me about these error. Thanks using System; class SearchEmp { String[] Name= {"Aslam","Irfan","Afridi","Junaid"}; SearchEmp(string name){ this.name = name; } public void Search(){ name= "Afridi"; if(Name[0]==name||Name[1]==name||Name[2]==name||Name[3]==name){ Console.WriteLine("FOUND"); } } private readonly string name; public …

Member Avatar for otengkwaku
0
167
Member Avatar for visweswaran28

Hi, I have a string "<div width=200 height=700 rowheader="true" columnsize=4></div> I want to extract widht, height, rowheader & columnsize value from above string through C#.net I tried to load the above string in XMLdocument, but I used to receive an exception. Please suggest me to proceed this. Thanks in Advance.

Member Avatar for deceptikon
0
135
Member Avatar for ryan311

Hi i've created a class which name is testclass.cls Inside of testclass.cls i created this code public void Insert(string materialSize, string KgPermetre, string PricePerCut, string MaterialType, string LineColour) { SqlConnection objcon = new SqlConnection(Cls_Connection.srConnectionString); objcon.Open(); SqlCommand cmd = new SqlCommand("sp_MaterialSize", objcon) { CommandType = CommandType.StoredProcedure }; cmd.Parameters.AddWithValue("action", "Insert"); cmd.Parameters.AddWithValue("MaterialSizeId", ""); …

Member Avatar for Mike Askew
0
172
Member Avatar for <M/>

I am looking for a C# editor and I am wondering what is the best one (hopefully for mac) and I noticed that Visual studios is good (but i believe it is windows only though)... I am wondering if anyone has any recommendations for an editor (unless Dreamweaver or Coda …

Member Avatar for nmaillet
0
633
Member Avatar for rexdon

//Give me an example for Serialising Multidimensional array in c sharp. //While searching in net i found this code snippet [XmlIgnore] public char[,] Data; [XmlElement("Data")] [EditorBrowsable(EditorBrowsableState.Never)] public char[][] XmlData { get { /* copy contents of Data into a jagged array */ } set { /* copy contents of jagged …

Member Avatar for deceptikon
0
1K
Member Avatar for c_learner

Hi people, I would like to learn how to create database applications which store the data entered by multiple users, process the data, and provide the data as requested by the user. Is it possible to write such an application by using Microsoft SQL Server and Microsoft Visual C#? I'm …

Member Avatar for soethandar
0
208
Member Avatar for SpyrosMet

Hello, I have this Windows Phone app I need to do that gets information from the Google places API about places that the user searches for. For each place I need to have a pushpin on a bing map I have inserted. The problem is that I'm a newbie in …

0
139
Member Avatar for SpyrosMet

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like …

Member Avatar for Ketsuekiame
0
3K
Member Avatar for jvinothkumardpi

hai i am a student working on my project on C# coding in which i need to display the datas of the solar inverter readings which i already uploaded to mysql database and from that i need to show the datas through C# coding. i did the coding for displaying …

Member Avatar for Ketsuekiame
0
164
Member Avatar for pinkesh25gar

#include<iostream> #include<vector> #include<stdio.h> #include<string.h> #include<stdlib.h> #include<algorithm> #define READY 1 using namespace std; typedef struct task_node { int task_id; int period; int wcet; int arrival_time; int deadline; int state; int ceu; int slacktime; }task; void read_input(vector<task> &); void print_task_vec(vector<task> &); bool comparebyperiod(const task&,const task&); bool comparebydeadline(const task&,const task&); bool comparebyslacktime(const task&,const …

Member Avatar for Ancient Dragon
0
275
Member Avatar for E.RANJANI

I want do a small project based on c programming. so send me a project names......

Member Avatar for tux4life
0
57
Member Avatar for mradzinski006

Hi, Im developing a tool that needs to access to the names.nsf database inside IBM Lotus Notes, and, using the lotus contact ID (Employee ID) (this id will be provided by the user), retrieve the full information of the person (Name, Phone #....) I found an example in Codeproject.com, however …

Member Avatar for Ketsuekiame
0
96
Member Avatar for sujit.patil

int x=5; int y=10; object o1=x; object o2=y then how we can compare o1 and o2 (=,<,>,<=,>=)

Member Avatar for Ketsuekiame
0
2K
Member Avatar for marinus

I need to develop an application to send a picture from my PC to phone. i'm planning to use c# in .net but i couldn't find any library. I found links pointing to microsoft.windowsmobile.sharedsourse.bluetooth dll wich is not having any functions and in 32feet.net i don't know how to use …

Member Avatar for <M/>
0
112
Member Avatar for harishbansal90

Hi, I want to get the External IP address in console application using C#.net. External IP is different from local machine IP. any help? Thanks

Member Avatar for nmaillet
0
654
Member Avatar for localp

I am new to C# and ASP.net. I have been asked to create a login screen which i have done. but i am sending messages as plain text. but the requirement is to not show the password that is sent across the network. How can i do this. Any tutorial …

Member Avatar for tinstaafl
0
82
Member Avatar for deceptikon

For those of you familiar with the latest C++ standard, what do you think of [uniform initialization](http://en.wikipedia.org/wiki/C%2B%2B11#Uniform_initialization)? Listening to folks like Herb Sutter, it seems like the intended purpose is to be completely pervasive, which obviously changes the look and feel of C++. Do you plan on using it everywhere …

Member Avatar for vijayan121
0
429
Member Avatar for mathias234

Hello i am doing a WOW launcher but i wanted to switch from vB.net to C# so i used this converter http://www.developerfusion.com/tools/convert/vb-to-csharp/?batchId=afeaecee-b774-436c-a04a-97009e64a2bb but i getting some errors http://pastebin.com/enQ1s414 My code http://pastebin.com/F9CnGyKp I hope you guys might help me :) btw do not care about that missing GUI things just that …

Member Avatar for tinstaafl
0
732
Member Avatar for CPT

Hello everyone, I've encounterred a problem that I cannot seem to overcome. For the program to compile there are a few steps necessary to take: from the website [Click Here](http://osl.iu.edu/research/mpi.net/software/) on the download page, one would need to download and install: 1. MPI.NET SDK 2. Microsoft Compute Cluster Pack SDK(this …

Member Avatar for Ketsuekiame
0
384
Member Avatar for mefju

Hi This is code: #include <iostream> #include <windows.h> #include <fstream> using namespace std; LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam); int main() { fstream plik; HHOOK hKeyboardHook =0; plik.open("keys.txt", ios::out); plik.close(); return 0; } LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam) { KBDLLHOOKSTRUCT *pKbdLLHookStruct = (KBDLLHOOKSTRUCT …

Member Avatar for Suzie999
0
120
Member Avatar for AleMonteiro

Hi everybody. I'm trying to insert an indented code inside another indented code, using the first indentation as base for the second. I mean, the second indentation must begin at the end of the first. The indentation i got working right, but it is adding some undesired line breaks, that …

Member Avatar for AleMonteiro
0
243
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Member Avatar for nmaillet
0
358
Member Avatar for Feal456

So I am writing a cash register program, person buys items and the number calculates. But I am stuck at looping, I want the user to pick to pick all his/her items first then after all the program is done I want the program to ask if the user wants …

Member Avatar for CGSMCMLXXV
0
3K
Member Avatar for mefju

Hi I have a keylogger code which writes the keys but does not write capital letters and such that:! @ # $% ^ & * () + Someone help me with this? Here is a keylogging code: #include <iostream> #include <windows.h> #include <fstream> using namespace std; ofstream out("plik.txt", ios::out); LRESULT …

Member Avatar for Ancient Dragon
0
244
Member Avatar for riahc3

Hello I want to make a C# web services for XAMPP (basically Apache). I know I have to download a mod for this but first thing is first: Where is a good guide to read on how to create a web service? Guides Ive found are either outdated or very …

Member Avatar for AleMonteiro
0
880
Member Avatar for thechampp

How List.Sort() indecates where the salaries in the list will be ordered and how to be ordered (asc or desc)? using System; using System.Collections.Generic; class Employee : IComparable<Employee> { public int Salary { get; set; } public string Name { get; set; } public int CompareTo(Employee other) { // Alphabetic …

Member Avatar for tinstaafl
0
346
Member Avatar for tony75

Hi I try to write this program but how I think math? A general store has the following offer. If you shop for a minimum of 200 $ will receive a 5% discount on the full amount. If you shop for at least 400 $, you get 10% off the …

Member Avatar for tony75
0
200
Member Avatar for sr.senthilnathan

How to write C# Code to Send and receive message through HSDPA Dongle? Currently i am working on a library management project, on this project i need to send overdue details of books to the user via a sms message using HS-DPA Dongle ( HUAWEI 1750). Please someone help me …

Member Avatar for tinstaafl
0
391
Member Avatar for bilal.saim

main.aspx ----------- <body> <form> id="form1" method="post" runat="server"> <asp:TextBox ID="TKullanici" runat="server" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="#999999" BorderWidth="1px"></asp:TextBox> <asp:TextBox ID="TSifre" runat="server" TextMode="password" Height="27px" style="text-align: left" BorderColor="Silver" BorderStyle="Solid" Font-Size="Medium" ForeColor="Gray" BorderWidth="1px"> <asp:Button ID="BGiris" runat="server" cssclass="SBGiris" Text="GiriÅŸ" onclick="BGiris_Click" xmlns:asp="#unknown" /> </form> </body> main.aspx.cs ------------ protected void BGiris_Click(object sender, EventArgs e) { string …

Member Avatar for JorgeM
0
409
Member Avatar for Dolby779

Hello all, recently got a piece of coursework I completely know nothing of. It is shown below: Your task is to write a file archive utility similar to that of the Unix tar program. This program will be a command line program (i.e. there will be no graphical user interface). …

Member Avatar for Nick Evan
0
415
Member Avatar for asteriskLMNOP

Please bear with me, this is my first post So, I have this superclass called A. And I've 2 subclasses A1 and A2. A has attribute name. A has function toString(). A1 inherits name, and has attribute hair. A1 has a method toString() which goes: string A1::toString(){ string stringA= A::toString(); …

Member Avatar for ravenous
0
1K
Member Avatar for rotten69

Hi everyone, I'm learning C# at the moment and really enjoying it. I'm wondering though how I can develop my own algorithms. do I need to read on data structures and algorithms? Is there a book for all programming languages so you can apply the knowledge to basically any programming …

Member Avatar for ddanbe
0
222
Member Avatar for nullifyQQ

I have this weird problem. If my constructor is [header] class Book { private: vector<string>Entry; public: Book(); [cpp] Book::Book(){ Entry.push_back("0"); Entry.push_back("1"); Entry.push_back("2"); The weird thing is that it does not update when I do more .push_back. I use: void Book::addItem(vector<string>newItem) { for(int f=0; f<Entry.size(); f++) { Entry.push_back(newItem[f]); cout<<Entry[f]; } } …

Member Avatar for L7Sqr
0
295
Member Avatar for nullifyQQ

Please bear with me. This is my first post. For some reason, I can only display the strings if I put the cout in the same loop. But since I have to separate addString() and displayAllStrings(), I can't do that. My displayAllStrings() keeps failing. BUT when I write a separate …

Member Avatar for Lucaci Andrew
0
1K
Member Avatar for Doogledude123

Hey guys, I need a function that reads a text file and stores the character someway, (I am assuming a 2D Array would be best?) then a function that reads through the characters and if the char is something specific (like "X") then it would draw a square (QUAD) 10wx10h …

Member Avatar for Doogledude123
0
387
Member Avatar for FtKShadow

I am trying to get my homework assignment to work for class, but I cant seem to get it. Heres the assignment. [QUOTE]Write a program that asks the user to guess the next roll of a six sided die. Each guess costs $ 1. If they guess correctly, they get …

Member Avatar for StefanRafa0
0
3K
Member Avatar for glad024

hey guys just need some help here..i don't know how program it in C#.. i need a class file in C# using Microsoft Visual Studio 2008 that will save inputted data to the MySQL database..and also a class file that will transfer data from a table to another table in …

Member Avatar for ChrisHunter
0
396
Member Avatar for SQLpower

Hello, I have a datagridview, connected to my database using Nhibernate and my question is how can I exit the Select Mode after I update? Cause at the moment after I click update and it updates, the edit mode is still on, I would wanna turn it off when I …

Member Avatar for SQLpower
0
549

The End.