8,298 Topics
![]() | |
hi can anyone tell me how string ends in C# does it have a null in the end or any other way and if there is null character at the end of string then which function or how to get the index of that null? | |
How to add 1/1+ 1/2+1/3...+1/9+1/10 . I tried but I am getting answer in negative number. | |
I have a question regarding scope for a character array defined as follows: saveDataObj->save("This is the first entry", 1, 2); Here is how the SaveData class has been defined: [code=c++] class SaveData { struct entry{ const char* data; int data1; } entry* mpData; static int iter; } //Constructor SaveData::SaveData() { … | |
Hi, I'm new to network developpement but not to c#. I want to create a desktop application in wich the user provide a serial number to validate his acount. This serial number must be sent to a web server for verification purposes. Please, i need your suggestions to start: - … | |
Hello, I've been looking for information on creating a chat server and client application, just the basics that would include: 1. Connecting to the server. 2. Displaying a "friends list" (like windows live). 3. Open a private conversation with a friend on the list. 4. Send messages from users to … | |
I have this website with a login and a password recovery link. When I click the "forgot my password" link it takes me to a page which asks for username and security question answer. When I fill it out and hit submit. I am taken to a page that tells … | |
This is a basic calculator I made in C++. I am learning C++ on my own. [CODE] #include <iostream> using namespace std; float Add (float &a,float &b) { float c; c=a+b; return (c); } float Subtract (float &a,float &b) { float c; c=a-b; return (c); } float Divide (float &a,float … | |
Hello C#ers, I apologize for the rudimentary question but I did not realize my issue till now. I have a large csv file some 214MB. Initially I made my program readalllines and it takes forever. I understand to fix this problem streamreader can help. However any of the tutorials I … | |
i have a few questions.: 1)if i wanted to write a line of code needed to declare a 1-dimensional array named names that can hold 8 string values would this be correct?: char names[8]; 2)how would i write the code needed to assign strings to each element of the array … | |
hi all plz explain me with syntax "how to pass pointer to a function or pointers to a function " . plz tell me if there any big tutorial which can solve my problem providing a deep knowledge about it . and one more probim : what is incorrect int … | |
Hi forum! My name is Eduardo and I´m from Portugal. I´m a newbie to C++ and I hope to learn a lot with you I´m facing a doubt that I couldn´t solve yet. (I will also post this thread at c++ area, hope you don´t mind ) My doubt lies … | |
I am running into problem on getting this program done. Its suppose to quiz you on your 2 powers ie(2^2 = 4, 2^22 = 2m, 2^46 = 32t) I've programmed in python for a couple years but a lot of the tricks python lets us have C++ doesn't or I … | |
here is my script: [CODE]#include <iostream> #include <cmath> int main() { using namespace std; int who; cout << "how are you today? good, bad, or eh?" << endl; cin >> who; if (who == "good") { cout << "ahh thats pretty cool i guess..." << endl; } if (who == … | |
I am currently trying to generate a program using a double nested for loop to get the following output: >Please enter the maximum integer value you wish to find divisors: 10 >List of divisors of the integer between 1 and 10: >divisors of 1: 1 >divisors of 2: 1, 2 … | |
Hai I have to provide icons for my C# application (just like any other application!) But what is the optimum size of these icons used for different purposes? GUI has a icon, menu has got images etc. I got downloads in which different sizes of icons and even images in … | |
I have a program for school. The program is an inventory program. It will start by writing blank records to a file. The user then should have a case drive menu. The user will select an option for what action they desire. Actions are add new record, change record, and … | |
How to get timer_tick event in Asp.net. i am making one web server control. i want to add timer control in its property. please give some examples of property which uses timer control in it. | |
[B]Introduction[/B] In this sample,It shows how to move files to another folder. [B]Background[/B] It can be used in winForm applications. | |
![]() | I have a few C# questions too, but this is mainly an ASP problem I think. All the code I mention below takes place in the code-behind of my Master Page. I worry a lack of knowledge on master pages may be the problem too. Excuse the database name; my … |
#include <iostream> using namespace std; int num, factorial; num = 6; factorial = Fact(num); cout << num << "! = " << factorial; return 0; } // end main int Fact (int num) { if (num == 0) return 1; else return num*Fact(num-1); } //end Fact int main() What is … | |
Hello, I am working on a program that takes an integer array filled from a random number generator. These values are suppose to be from -5000 to 5000, 2500 of them. Then I want to find the standard deviation of the numbers in the array. I am required to use … | |
[b]Split from - [url]http://www.daniweb.com/forums/thread106146.html[/url] [/b] [QUOTE=GeniXmeN;517655]Thanks man a lot for the help i solve the problem!!! :) I put the new button for Deleting and now is working. Once again thanks for the ideas and for the link!!![/QUOTE] I tried almost everything but did not got success. I am not … | |
Hello! I've started programming C++ a week ago, so I cannot solve my problems easily. I've started a small project for learning classes, it's about encryption and stuff. I don't really get pointers, although I've read some about them. My problem is that when I use the cipher, it replaces … | |
Hi , i got an application API interface written in C++. i wanted to inherit the interface in C#. can somebody be kind to teach me how may i write this code in C#? [CODE]HRESULT _stdcall ExampleFunction() [/CODE] thanks! | |
Hi am learning c# myself.I have created a [B]Breakout [/B]using c#.But am struck with one problem.When I run the program the paddle and the ball moves properly,but when the ball hits the brick it, the brick does not disappear. The problem I believe is with the [B]Invalidate()[/B] method.I think when … | |
hey guys gudday!!! guys do u have idea how to use listbox or datagridview? sample if i want to create another data and save it, i will see it in listbox or datagrid or any. pls need ureidea guys | |
I am trying to declare a Doublebuffered panel in C++ I can only find the declaration for this in C#. So I wonder how this could be converted to C++ ? [code] public class DoubleBufferPanel : Panel { public DoubleBufferPanel() { // Set the value of the double-buffering style bits … | |
need to change this from availcredit01.cpp to availseats01.cpp and make the necessary adjustments 1)ask user to enter the room size 2)get room size 3)ask user to enter number of students 4)get enrolled 5)set avilseats to room size minus enrolled 6)display the available sets 7)halt and return to operating system i'm … | |
Hello , I need to pass a system (linux) result to a varaiable . Example : ... char KERNEL = system("uname"); printf(KERNEL); ... this example dont work , can you help me ? | |
Hello Everyone, As you can see, I am new to DaniWeb, and might I say this is a VERY good community. Either ways, my problem is a pretty complicated one, which I have been working on for a while now, 2-3 weeks. I am assigned by my team to create … | |
Is there a way to reference winmm.dll's to get ID3 info. Everything I have looked at online shows programming of your own mp3 data (i.e. Title, artist....). There has to be a way to just retrieve the file info from the DLL right??? JamesonH20' | |
Hi all! I would like some help for getting a value out of a selected row of a datagrid. To do this i used the following code but it returns an empty string (DG is my datagrid) string val = DG.SelectedItem.Cells[1].Text; Response.Write("*"+val+:*"); The rouput of this its: ** although there … | |
I used c# timer but it's minimum value is 1ms , I need timer range in microseconds | |
I have a program for school that I need help condensing some code, if possible. I have structure that has 10 fields for a monthly budget. I will have the user input their current budget and then my program informs the user if they are over under their budget and … | |
Hi! I'm writing a little equation solver for an exam ... it has not to be perfect or mathematically rigorous. With this program I have only to show to my professor that I can write some simple program in Assembly and C++ language. In other words, I have only to … | |
Hello! I have a question, I have been struggling with this for a bit (I welcome any constructive criticism and pointers) now, and I am pretty new to C++. I am in the process of writing a program that takes names in the format of LAST, FIRST; the it loads … | |
Hello! My name is Page, and I am having problems figuring out how to read a name for example like; SMITH, JOHN in a string array. From there I would like to find the space and read the last name into a vector and the first name into another vector. … | |
Hello guys, Been doing good in my thesis: Face Recognition System, a little more improvements and its all done. Now, I'm planning to deploy my application in terms of a installer (i.e. .msi). I know that VS2008 Pro can have this with no pain but I'm using VC# 2008 Express … | |
Hi everyone, I'm n00wbie to C# and I I have one question. I'm writting class for access to MySQL over DbLinq and I need to know connection string. I know that I can read connection string from webconfig file. My question is is there any function in C# that I … | |
plz convert this to vb.nettttttttttttttttt thanx [code] attachment attachment = new attachment(); attachment.caption = "facebook.com"; attachment.name = "Publish Test"; attachment.href = "http://www.facebook.com"; attachment.description = "a sample description"; attachment.properties = new attachment_property() { category = new attachment_category() { href = "http://www.facebook.com/mycategory/sample", text = "sample category" }, ratings = "5 stars" }; … | |
Hello, I've got a problem with my project... in short I've got a mysql db bond through a DataSet and BindingSource - if I'm editing like a user the gridview then all changes are commited to the db no problem... But I need the user to responsibly change foreign keys … | |
Ok i have a char with ''/afile.html" assigned to it. The extensions of it can vary so i need to get the extension to a seperate char to compare it with something else il show you what i have.... Basically i need everything after the '.' [CODE]char resource[16]; n = … | |
Hello everyone, I'm trying to improve myself on Winsock , so I wrote a code which can get the content of an website.Now I'm trying to post (upload) a file to a http website.Here is my code , what should I add to my code to work with POST? Thanks … | |
I've been looking through the site for topics on how to code your own DLL's in C++ and so far i have not come up with much, I'm hoping to create a DLL in which i will code functions for using the win32 API and kinda making a small framework … | |
hi all,im new here and im a beginner at c++, im making a simple tic tac toe program, and its not working properly, it cant determine the winner,could someone please help. heres the code [CODE] #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<stdio.h> #include<graphics.h> #include<ctype.h> #include<time.h> void main() { /* request auto detection */ … | |
Hello everyone, I am a college student in his second year of learning C++. Last semester we would use Visual Studio to write and compile our code in. This year we use linux, more specifically the Vi editor. We use linux in two ways, either we use Putty in Windows … | |
how to write a code for sql parser to parse select statements in c#. | |
Hi, I have a problem here with the c++ if statement. if (adult=1) { hotel=(adult*hotel)+(children*0.5*hotel) +(baby*0); break; } else if (adult=2) { hotel=(adult*260*0.85) +(children*0.5*260) +(baby*0); break; } else if (adult>2) { hotel=(adult*hotel*0.8) +(children*0.5*hotel) +(baby*0); break; the above is a small part of the code i'm doing. Problem here is, It … |
The End.