8,298 Topics
![]() | |
assume latgeInt=2147483647 Debug.Log(largeInt); //2147483647 float largeFloat = largeInt; Debug.Log(largeFloat); ///2.147484E+09 int backAgain = (int)largeFloat; Debug.Log(backAgain); //-2147483648 *This part i did not get. I assume there was some data loss when float was explicitly casted into int . But the loss should be in right most digits. How come sign got … | |
Hi! I have an assignment. A C++ program. But sad to say I dont know how. -Write a program that multiplies two numbers withou using (*symbol). (Use for loops) Please help me! | |
I want to ask how to pass the '30','31','32' to SQL WHERE IN clause For example EXEC SQL DECLARE abcd CURSOR FOR SELECT Consignment FROM Transaction WHERE order_type IN (:dest) where dest will hold the value '30','31','32'. I have tried as above example but it is not working SQL did … | |
Hi community, I want to prevent user input character in Edit Control on a dialog. I think i need to catch WM_Char to prevent showing the character, but i do not know how to do it. Thanks for your help. | |
Hi everyone, I’m beginner and I need a little help. I have to make RPN (postfix) calculator using stack which is implemented by singly linked list in C. Now I found that but in C++ and I’m having trouble translating it to C. Can you help me getting things to … | |
Hello everyone. I am new to c++ and I just wrote a program. I am on linux so just saying. This is the code. What keeps happening is all the commands just keep coming. here is an example. Welcome to the Calculator. Please enter your operation. addition Please enter your … | |
I need help with .net c# screen scrape. I can't seem to find an example in c# that works. I have this one in VB that wors but feel like an idiot bc I can't convert it correctly... <%@ Import Namespace="System.Net" %> <script language="VB" runat="server"> Sub Page_Load(sender as Object, e … | |
Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve … | |
for example. name of field: f1 = "field1", f2 = "field2", f3 = "field3", f4 = "field4" how can I update the value of f2 and f3 without changing the value of f1 and f4. f2 = "new field2", f2 = "new field3" the new value of fields are. f1 … | |
Hi Im a newbie in asp.net, im a php programmer though, and i've been working on a pop up div with a search engine on it, in php i have no problem working with json but in asp it took me already two days to find a similar problem, yet … | |
[Click Here](https://fbcdn-sphotos-h-a.akamaihd.net/hphotos-ak-xta1/v/t1.0-9/11062032_934388023272240_5568390880935797936_n.jpg?oh=74464ac9ad5590c8595312bd6737b780&oe=55FC4564&__gda__=1442907117_9cbf40a25436808a834b2bf63856957b) 2<=n<=15 | |
Doing simple domain name search Just enter sometimes Segmentation fault I really do not know how to solve this problem But some can be found ip i not idea Read what information can solve this problem I'm sorry my English is very poor | |
Hi. I need to write a program that finds the shortest route in directed graph. Please look at the picture. [Click Here](https://goo.gl/photos/uRdTfp9pDrAobun87) Here is my code: #include <iostream> using namespace std; const int N = 10; struct elem { char key; elem *next; } *g[N]; void init(elem *g[N]) { for … | |
I am trying to make a MP3 player using axWindowsMediaPlayer, and I am running into some issues. When the song stops playing, it is supposed to go on to the next song in the list, but instead it locks up. I don't know how to fix this, I tried googling … | |
Hi , i need some help in completing a small task . " How to insert,update,delete record in data grid view using inline i.e (suppose if we update a record in the data grid then after click on the next row the data which is updated should be save directly … | |
Why is it that whenever I use the getline function I get an error during execution. To clarify... I have this code; cout<<"Enter your string: "; getline(cin, myString); //line 1 cout<<"Enter your name: "; getline(cin, myName); //line 2 cout<<"Age: "; cin>>age; //line 3 output: ____________________________ Enter your string: gfgfkjhjkhgg Enter … | |
i want to find efficency of cluster...I am using three clustering techniques kmeans ,dbscan ,hiearachical.How can i calculate best cluster am implementing in c# | |
I have 2 buttons name as "Build Start" and "Build Stop". what i want is when i click the stop button it will stop the execution of Building of all the projects. I have tried the Backgroundworker class but when i use the RunworkerAsync() function it will build only one … | |
Do we have any TDD experts here? I have some questions but need an expert. | |
Hi, I have the following map : listOfPolicyRuleInfo CPCRF::m_mlistOfCliConfiguredPolicyRules; where typedef map<string, PolicyRuleInfo> listOfPolicyRuleInfo; where PolicyRuleInfo is a struct struct PolicyRuleInfo{ BearerQoSInfo stBearerQoS; TFTInfo stTFTInfo; PolicyRuleInfo(){}; PolicyRuleInfo( BearerQoSInfo const& qos, TFTInfo const& tft) : stBearerQoS(qos), stTFTInfo(tft) { } }; listOfPolicyRuleInfo m_mlistOfCliConfiguredPolicyRules = boost::assign::map_list_of("PolicyRule_Fred", PolicyRuleInfo( BearerQoSInfo(9), TFTInfo())) ("PolicyRule_Voice_C", PolicyRuleInfo( BearerQoSInfo(5), TFTInfo())) … | |
Okay, so I have a program that lets a user input information about dvds...it's a dvd library basically. I'm having a bit of trouble with nice output. I have data members for part of the info and vectors for the others. The output should show a movie title,length, year, actor/actresses, … | |
i want to do the following :- transfer file from client to server using sockets in a windows based application. I am stuck at the server side code. Server side : ------------- my problem : how to receive file from multiple clients and save file on server c:\folder following is … | |
I tried writing an clock applicantion but it did not work, the number is static, how to make it change. And how to remove minimal, maximal button and icon of windows, for the icon I tried: wcex.hIcon = NULL; wcex.hIconSm = NULL; But it showed a default icon Thanks for … | |
Okay, so I'm still stumped on an output problem. The problem is, I have list items and one of those column objects has more than one item(the other columns don't for each particular item) Some reason, when I add another object to the console for printing it ends up like: … | |
Snap Shot Take Automatically in Particular Interval Store in Local PC D-Drive in c# | |
Hey guys, I have some code set up to iterate through a nested map. It current works as expected, iterating through all values in the first key, and then the second key. My question is, is there any way to display one value from each key? For example, if key … | |
Hi everyone, I am working on a C++ Pig Latin program for school which translates English sentences into Pig Latin. Here are the guidelines to it: You are to write a program that translates English to Pig Latin. In case you have forgotten, the way you translate English to Pig … | |
Hi guys, I have to create a C# application which is able to mask images but I don't really get on with it... I thought I will use this example for the project: http://www.camera-sdk.com/p_248-how-to-implement-image-masking-in-c-onvif.html Any ideas or experiences? Has anyboby here used this? Any help would be appreciated. Thanks!! | |
Hi. I need help with the following C program: How to print first member of sequence so that condition `|a(n)-a(n-1)|<EPS` is true, where *EPS* is a random input precision (double value). Sequence *a(n)* is given by: `a(n)=(1-1/2!)(1+1/3!)...(1+(1/(n+1)!))` I tried to cancel factorial in the expression `a(n)-a(n-1)=((-1)^n(n+2))/(n+1)!`, but I don't know … | |
Hi all, Want to write some data from C# to Excel. Code enough I thought, here at DANI's and on the web. So I managed to come up with this : [CODE=csharp]private void DoExcel(string Fname) { Microsoft.Office.Interop.Excel.ApplicationClass excel = null; Microsoft.Office.Interop.Excel.Workbook wb = null; Microsoft.Office.Interop.Excel.Worksheet ws = null; Microsoft.Office.Interop.Excel.Range rng … | |
hey guys please tell me how to add two form in vc++ 2010 , i made a calculator in window form and i want to add one more form with a button click | |
Good day people. They say the only way you can be a good programmer is if you learn it the hard way, by coding a lot and working on the analytical skills. I believe that all of us in this community have faced some problems in c++ and then were … | |
#include <iostream> #include <string> #include <stdlib.h> #include <cstring> using namespace std; class Fraction { private: int num, den; // numerator & demoninator public: Fraction() { set(0, 1); } Fraction(int n, int d) { set(n, d); } void set(int n, int d) { num = n; den = d; normalize(); } … | |
private void Form1_Closed(object sender, System.EventArgs e) { // Create a PDF document object PDFDocument doc = new PDFDocument(); // Creates a PDF page PDFPage page = new PDFPage(this.Width, this.Heigh,PDFMeasurementUnit.Points); page.MeasurementUnit = PDFMeasurementUnit.Points; // Parses controls on the form for (int i = 0; i < this.Controls.Count; i++) { Label label … | |
I am trying to solve a simple problem. But I am stuck by a simple problem I am confused by "context" in c#. So for this simple problem I am solving Euler problem 1. using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Threading; using System.Timers; namespace Euler … | |
I want to deploy a database application in C#. I should write a script for creating a database and its tables. The script should work only at install time and setup the database automatically. Or tell me if there is another better way to do that. Actually I wanted to … | |
I am trying to store a value from a selected row from one table into another. My code is as follows. string CustomerID = textBox1.Text; SqlConnection con1 = new SqlConnection(ConfigurationManager.ConnectionStrings["ConString"].ConnectionString); con1.Open(); SqlCommand myCommand = new SqlCommand("Select CustomerID, Name from TableCustomer WHERE (CustomerID like '" + CustomerID+ "')", con1); SqlDataReader rdr … | |
Hello there, I am having a problem with small application. I have used gdb and following error appeared: strlen() segmentation fault. Could anyone help me to find out solution? int main(int argc, char* argv[]){ char* name = malloc(strlen(argv[1])); name = strcpy(name, argv[1]); printf("%s \n", name); return EXIT_SUCCESS; } | |
hai can you please give me in detail how to write a c program for a sensors | |
I made client & server programs in C# based on this example code. c# client program: IPHostEntry ip = Dns.GetHostEntry(tbServer.Text);//"MyComputer-MSI" string addr = ip.AddressList[0].ToString(); TcpClient clientSocket = new TcpClient(addr, 1234); At the last line above, I got the message: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in System.dll Additional information: … | |
recently ive seen video of a man which showed on how A* works, that is some algorhythm for pathfinding in 2d in games, to show this he made a game in c# (visual studio only), where he could explore the "maze" board in 3d and could see the red square … | |
basicly my project is making a shopping list which allow the user to: - type 1 to add a new shopping list - type 2 to add an item on existing shopping list - type 3 to check certain items in a certain list as bought - type 4 to … | |
hello, i m working on connecting sqlData with C# form showing data detail on text boxess like ID,name,occupation.and doing the search by entering the ID on textbox then clicking the button to show the details i'm just a beginner in C# so i did the the coding like this and … | |
Hi,I would like to do a sorting when i had add new record,the new record must shown on the top of datagridview.It will always show latest record on top of the others old records.I had try several method that found from website but still cannot work!!! **code for load database … | |
i need a c++ code which explain insertion and deletion of nodes from any position | |
Hi, i am developing an application in C#,i have create database1.mdf by right clicking on my project,add item then creating a database. my intial problem was,i was able to execute query correctly but those modification wasn't reflected in main database finally after lot of surfing i changed copy to output … | |
Hi, in my project i need to update the attn_dateTimeOut in database.After i updated it will automatic delete the specific row record that had been updated. I had two question: 1) in my database there are a few table is assign not null."attn_dateTimeOut" is a table that haven insert any … | |
can you pls help me for this , " write a program that will accept 3 row and 1 column integer number compare the value of x,y,z. | |
How to access each element of array of words? For example, if I want to find number of vowels in every word of an array. #include<stdio.h> #include<stdlib.h> int main() { int i,n; char **array; do { printf("n=");scanf("%d",&n); } while(n<1); array=(char **)malloc(n * sizeof(char *)); Thanks for replies. | |
The End.