8,298 Topics
![]() | |
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 + … | |
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 … | |
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. … | |
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. | |
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 … | |
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 … | |
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....... | |
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 … | |
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 … | |
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; … | |
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! | |
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 … | |
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. | |
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", ""); … | |
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 … | |
//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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
#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 … | |
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 … | |
int x=5; int y=10; object o1=x; object o2=y then how we can compare o1 and o2 (=,<,>,<=,>=) | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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). … | |
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(); … | |
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 … | |
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]; } } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.