132,726 Archived Topics
Remove Filter ![]() | |
Hi there, I have an array of unsigned chars SOURCE, i need to combine into DESTINATION, i want to turn: SOURCE[0] = 3 SOURCE[1] = 9 SOURCE[2] = ' ' SOURCE[3] = 0 SOURCE[4] = 4 SOURCE[5] = ' ' SOURCE[6] = 7 SOURCE[7] = d into DESTINATION[0] = 39 … Software Development c++ | |
I'm using Visual C++ express 2010. Whats wrong with this code: (A video tutorial uses this code and works fine on theirs) #include <iostream> using namespace std; int main(){ string myString = "hello"; cout << myString << endl; return 0; } ??? Says: error C2679: binary '<<' : no operator … Software Development c++ display visual-studio | |
I have a datagrid and when populated I would like to loop through the rows and add the rows to a email below is how I setup the datagrids 'Sets up the DGVInvItems DGV Public Sub setupRMAItems() DGVRMAItems.DataSource = GetRMAItems() DGVRMAItems.Columns("DetailID").Visible = False DGVRMAItems.Columns("PCode").Width = 150 DGVRMAItems.Columns("PDescription").HeaderText = "Descripton" DGVRMAItems.Columns("PDescription").Width … | |
#include<iostream> #include<string> #include<vector> #include<set> #include<map> using namespace std; struct PoiDetails { int x; std::string s; }; int main() { struct PoiDetails oBj; std::map<std::string, PoiDetails> vName; oBj.x = 1; oBj.s = "str1"; vName["Jhon"] = oBj; oBj.x = 2; oBj.s = "str2"; vName["Ben F"] = oBj; oBj.x = 3; oBj.s = "str3"; … Software Development c++ | |
mov eax,'ZYXW' Now there are 3 problems. in Hexa W=57,X=58,Y=59,Z=5a Debugger shows this as 1515804759 in Decimal. that is when 5958595a taken as a whole. why doesn't it show 87888990 like when they are take separately? 2. Why is it shown as 5a,59,58,57 rather than 57,58........ ? (because W=57 which … Software Development assembly | |
final Handler myHandler = new Handler(){ @Override public void handleMessage(Message msg) { updateUI((String)msg.obj); } }; Would someone please let me know what the curly brace '{' and its contents mean in this context? what is the purpose? Software Development java | |
![]() | When I write program in Visual Studio 2010, then error comes that "cannot find or open PDB file". Is their any solution of this problem? Software Development c++ visual-studio |
#include <cstdlib> #include <iostream> #include <graphics.h> int main() { initwindow(1366, 768, "Prim's Algorithm"); int midx,midy; // /**************Node 0 creation***************/ midx = (getmaxx()/12); midy = (getmaxy()/12); rectangle(midx + 30,midy-10,midx - 30,midy+10); midx = (getmaxx()/12)-1; midy = (getmaxy()/12)-8 ; // setcolor(10); outtextxy(midx, midy,"0"); /*******************Right Vertex******************/ setcolor(15); midx = (getmaxx()/12) + 30; midy … | |
1. Create a grid containing 20 numbers (20 buttons: button1, button2, …button20) 2. When the form is loaded, the buttons are supposed to have a specific Back Color. 3. The player can choose only 6 numbers from the grid. 4. Whenever the number is chosen, its back color should be … Software Development vb.net | |
I have made a application X1 with Visual Studio 2008 (visual basic) .NET Framework 3.5 and deployed on Windows 7 desktop System. Works fine. The Same application X1 i have now made with Visual Studio 2012 (visual basic) .NET Framework 4.5. What must i do to ensure that the application … Software Development asp.net vb.net visual-studio | |
Hi guys, Trying to learn more about pandas csv reading. I have a file, with date and time on first row and a lot of data below. I want to be able to slice the data from T1 to T2 and use it for something. fname = "C:\Users\zana.pepaj\Desktop\Temperature.csv" data = … Software Development python | |
I have a text file for ex: ABCD#sh run aaaaaaaaa bbbbbbbbb ccccccccc ABCD#sh int dddddddd eeeeeeee ABCD#sh xvy and so on.... I want to parse the lines between ABCD# and the next ABCD#. And send this parse output to CSV file or excel like aaaaaaaa dddddddd bbbbbbbb eeeeeeee cccccccc Please … Software Development shell-scripting | |
Hey, Im looking for the cleanest way to scan through a text file and remove symbols only if they meet certain conditions. So far i have been using the Scanner, but it removes them regardless and i was looking for the best way of providing conditions like those for comments … Software Development java | |
# copy string into a structure # all i am trying to do here is to copy a string input given by user into an arry decleared inside a structure.but my code is not working. anyone please explain to me why this code isnt working #include<stdio.h> #include<string.h> typedef struct{ int … Software Development c | |
Hi Can I get some assistance with the following Code: Letter = raw_input("Enter Letter") A = 7 B = 8 C = 9 print Letter I have left the basic info but if the Letter A is entered in the print Letter it results A, I want it to give … Software Development python | |
<html> <head> <title>Nutrient</title> </head> <body> <? $filName = "resource.txt"; $objWrite = fopen($filName, "w"); $objConnect = mysql_connect("localhost","u52030177","guillaume") or die("Error Connect to Database"); $objDB = mysql_select_db("u52030177"); $strSQL = "SELECT * FROM Nutrient"; $objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]"); //$link = mysql_connect("localhost","u52030623","u52030623"); //mysql_select_db("u52030623"); mysql_query("SET NAMES UTF8"); //$sql = mysql_query("select * from … Software Development c++ | |
error in ma program it shows the last digit twice. #include<conio.h> #include<stdio.h> int main() { int fib(int); int n,c,a=0,b=1; printf("enter a number: "); scanf("%d",&n); printf("%d %d ",a,b); c=fib(n); printf("%d ",c); getch(); } int fib(int n) { int a=0,i,b=1,sum; for(i=0;i<n-2;i++) { sum=a+b; a=b; b=sum; printf("%d ",sum); } return(sum); } Software Development c | |
hi,i am new to programming and i got an assignment which is very difficult,i hope anybody can help me here !! You have to make a racing game in C++. There are two players in your program. They play by throwing 3 dices and then moving forward. Your program should … Software Development c++ | |
pls help me...i wnt to know how to delete a word from a string...cant make it out..pls help... Software Development c++ | |
Hi again everyone. A really newby question coming up because I just don't know how to put this. If I want some software which can be compiled as part of my application / project etc, something which has little or no reliance on external programs (all packed in as part … Software Development c++ | |
Hello all... I want the multiplication of the same matrix but in third, forth, fifth... degree. I have made the C++ program and this is the code: #include <stdio.h> #include <stdlib.h> #include <iostream> using namespace std; #define WIDTH 3 #define HEIGHT 3 void main(){ int a[HEIGHT][WIDTH]; int b[HEIGHT][WIDTH]; int n; … Software Development c++ matrix-multiplication | |
Read text file after change text " text1 " to " text2" Example text file name hhh.txt have content sdasdsa ádsaewf dsasa asdsa text1 asdksls text1 as +>>>> hhh.txt sdasdsa ádsaewf dsasa asdsa text2 asdksls text2 as Thk :) Software Development visual-basic | |
hi, im new in vb6 how to search in datagrid where every keyword you type wil display the record found in database? here's my code in saving pls ned help here....this is our thesis God Bless>thanks. Sub search() 'search if student is registered then With ado .ConnectionString = connectdb .RecordSource … Software Development display seo vb.net visual-basic | |
Hi all, I have project about send a recieve file in LAN network between 2 PC, code of progressbar in server it good and code of progressbar recieve file in client program I have write but when debug it don't notify fail but it don't run. Please fix it for … Software Development | |
Hi All, I need your guidance for a project (using Visual Studio + MFC) I'm doing. I want to create page flipping animation of a book. There should be a book and when I click on a key then the next page should be displayed. You get the idea? Similar … Software Development c c# c++ gui visual-studio | |
how can i write a program with c#.net to brows my web site automatically? Software Development | |
hey i have a project on logic circuit simulation.i don't know how to include basic gate images in my code,so that it is displayed with the chosen gates output.i have jgrasp c_compiler.so plz help me out. #include<stdio.h> int And(int a, int b); int Or(int a, int b); int Not(int a); … Software Development c | |
I use ODBC data source to connect vb.net application to MS ACCESS database.When I have to install it in my clients PC,I have to manually make ODBC connection from(Control Panel ->Administrative Tools->Data source(ODBC)). Now what I want to do is,include odbc connection string in vb.net code itself so that I … Software Development vb.net | |
hi! I have a problem regarding this matter. To illustrate: i have class A, which holds a data to be passed to class B to be used in method1 of class B. I also have class C, in which a have the event to trigger method1 in class B. In … Software Development java | |
so I am new to python and I am trying to generate a 100 numbers from 0 to 10 and find out how many times a three appears. I'm not sure exactly how to get it to work. I basically just want to be able to count how many times … Software Development python | |
Okay so the break down. I have a simple application. You can create a new vehicle, either a car, sports car, truck, or minivan. That object is then loaded into a listbox. Each one has 4 methods that display the message box (Start, Drive, Park, Wash). So if I create … Software Development | |
Hi, Below is my code Socket CSocket,SSocket; sin_ad.sin_family = AF_INET;//sin.sin_family = PF_INET; sin_ad.sin_port = htons((u_short)m_Port); sin_ad.sin_addr.s_addr = INADDR_ANY; int s_len = sizeof(sin_ad); CSocket = accept(SSocket,(struct sockaddr *)&sin_ad, &s_len); ****if (ioctlsocket(CSocket, FIONBIO, &iMode))//iMode is ulong set to 1. { idc_txtbox.put_SelText("Unblocking of Socket failed"); closesocket(ServerSocket); WSACleanup(); }** if (CSocket == INVALID_SOCKET) { … Software Development c++ visual-studio | |
Hello, Im having a problem regarding on Array List. I need to create an Array that gets information, What inside the List are EmployeeID, LastName and FirstName I need to store all EmployeeID,LastName and FirstName. How can i do that? Please Help, thanks in advance. :) Software Development vb.net | |
1.If cin and cout objects are in the 'iostream' , why do we need to declare it again using 'std' ? 2.are cout,cin,cerr,clog the only ones in the iostream? 3.under which categories do cin,cout and iostream fall? (library,object etc..) 4.can we use the same iostream for both linux and windows? … Software Development c++ | |
Dear Friends i want to copy data from one table to another table i know we can do this task using following query INSERT INTO Destination (EnrollNo, CheckIn, CheckOut, DiffTime) SELECT EnrollNo, CheckIn, CheckOut, DiffTime FROM Source but here is problem ... i want to add a new colum with … | |
I'm returning to college after a 21-year absence and am starting fresh in a science stream. My first course in January will be the introductory Python course. In the meantime, I'm doing the Codeacademy tutorials and have completed the basic ones on variables, strings, comments, conditionals, some functions, and a … | |
# copy string into a structure # **all i am trying to do here is to copy a string input given by user into an arry decleared inside a structure.but my code is not working. anyone please explain to me why this code isnt working** #include<stdio.h> #include<string.h> typedef struct{ int … Software Development c | |
So I managed to get everything working right except for one thing, when I enter the following input: a = 2 b = 2 c = 2 I should be getting this: Root 1 = -0.5 + 0.866025i Root 2 = -0.5 - 0.866025i But I get this: Root 1 … Software Development c++ | |
Data Segment arr1 db 8,2,7,4,3 Data Ends Code Segment Assume cs:code, ds:data Begin: mov ax, data mov ds, ax mov es, ax mov bx, OFFSET arr1 mov cx, 5 mov dx, cx L1: mov si, 0 mov ax, si inc ax mov di, ax mov dx, cx L2: mov al, … | |
sir i need c code to generate random numbers between 1 to 100 and where the user can select the range(say 50 random numbers between 1 to 100 or 20 random numbers from 1 to 100 ) such that generated random sequence are not psuedo random numbers when it is … Software Development c | |
#include <fstream> #include <iostream> using namespace std; char input_1[256]="1.wmv"; char output_1[256]="2.wmv"; char output_2[256]="3.wmv"; void Append() { ofstream write(output_1,ios::binary|ios::app); ifstream read(output_2,ios::binary); read.seekg(0,ios::end); int size_=read.tellg(); read.seekg(0,ios::beg); char* in=new char[size_]; read.read(in,size_); write.write(in,size_); write.close(); read.close(); } void Split(){ int size_; ifstream read(input_1,ios::in|ios::out|ios::binary); if(read.is_open()) { read.seekg(0,ios::end); size_=read.tellg(); const int half=size_/2; read.seekg(0,ios::beg); char* file_content_a=new char [half]; … Software Development c++ file-system ios | |
Hi there, How do we differentiate between NULL and zero in C++. I have a program in which i assign NULL to num variable but if i apply if condition to check whether it is NULL or zero. Program still gives me result zero. //num = 0; num = NULL; … Software Development c++ | |
Hi everyone, I am stuck in writing Bank Account program. I want that if user wants to create an account, BankAccount class object is created. Then after this i call to its methods such as getBalance() to get the balance in the account. But its not working and I am … Software Development c++ | |
Hello to all, I missed a class for the array section at uni and have been sick couldnt really jump back into it. Could you guys help me solving this? :) Write a Java application that does the following: 1. Reads an integer from the user represents the number of … Software Development java | |
| |
Hello guys! I need help. I have two forms: Input and Output. On the Input form, the user/s will have to input their name/s and times in which they are busy. When they click "finished", the Output form is supposed to display what they typed like their names and times. … Software Development java | |
Hey... If I just built a library for any open source software for C++, what file type should the library files come in? .a OR .o files? Thank you. Software Development c++ open-source | |
what is the difference between std::cout<<"dfdfd"<<endl;//everywhere and using namespace std::cin putting above line at the top of the main function and putting the below line at the top of the main using namespace std; and + 2 bonus questions. 1.Are there any other namespaces than 'std' in c++? 2. Are … Software Development c++ | |
I'm using Eclipse and I made a program that reads ID3 tags. The problem is that each time I run it, it stops in this line: TagFrame * tmpFrame=new TagFrame(frameID,header.getFilename(),stream); bufferLeft-=tmpFrame->getFrameSize(); tmpFrame->readObject(); frames.push_back(tmpFrame); //This line!!! Where the variable 'frames' is a std::list<TagFrame*>. This block of code is beeing called from … |
The End.