132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Alexkid

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++
Member Avatar for deceptikon
0
4K
Member Avatar for tomz6

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
Member Avatar for mike_2000_17
0
3K
Member Avatar for Mike Bishop

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 …

Software Development dataset email vb.net
Member Avatar for tinstaafl
0
245
Member Avatar for prahesh

#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++
Member Avatar for NathanOliver
0
197
Member Avatar for silvercats

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
Member Avatar for silvercats
0
163
Member Avatar for hamidvosugh

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
Member Avatar for JamesCherrill
0
256
Member Avatar for Zaina jee

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
Member Avatar for Ancient Dragon
0
94
Member Avatar for zindgi66

#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 …

Software Development algorithm c++
Member Avatar for zindgi66
0
189
Member Avatar for kokoko

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
Member Avatar for kokoko
0
141
Member Avatar for dre-logics

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
Member Avatar for pritaeas
0
142
Member Avatar for MissAuditore

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
Member Avatar for MissAuditore
0
190
Member Avatar for vikarna

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
Member Avatar for Watael
0
117
Member Avatar for trishtren

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
Member Avatar for JamesCherrill
0
176
Member Avatar for general2012

# 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
Member Avatar for general2012
0
188
Member Avatar for Jezza25

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
Member Avatar for Jezza25
0
104
Member Avatar for panatda.tokhume

<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++
Member Avatar for panatda.tokhume
0
263
Member Avatar for rotenegg

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
Member Avatar for NP-complete
0
202
Member Avatar for sumair khaliq

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++
Member Avatar for Lucaci Andrew
0
141
Member Avatar for arnabjonty

pls help me...i wnt to know how to delete a word from a string...cant make it out..pls help...

Software Development c++
Member Avatar for Lucaci Andrew
0
156
Member Avatar for christinetom

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++
Member Avatar for christinetom
0
91
Member Avatar for ziadkassam

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
Member Avatar for ziadkassam
0
429
Member Avatar for linky1hit

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
Member Avatar for deepakbshitole
0
297
Member Avatar for vonnoy

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
Member Avatar for deepakbshitole
0
5K
Member Avatar for myfit

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
Member Avatar for myfit
0
166
Member Avatar for dumbncool

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
Member Avatar for anuj.juthani
0
827
Member Avatar for Asper

how can i write a program with c#.net to brows my web site automatically?

Software Development
Member Avatar for tinstaafl
0
176
Member Avatar for jyothsnach

why void functions cannot contain return type?

Software Development
Member Avatar for rubberman
0
160
Member Avatar for akku123

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
Member Avatar for rubberman
0
145
Member Avatar for Rachna0309

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 -&gt;Administrative Tools-&gt;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
Member Avatar for RockJake28
0
708
Member Avatar for iamlaw

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
Member Avatar for RockJake28
0
189
Member Avatar for efwon

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
Member Avatar for snippsat
0
234
Member Avatar for salford6129

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
Member Avatar for salford6129
0
168
Member Avatar for anukavi

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
Member Avatar for anukavi
0
232
Member Avatar for chocomilk

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
Member Avatar for chocomilk
0
193
Member Avatar for silvercats

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++
Member Avatar for silvercats
0
131
Member Avatar for saleem.mukhtiar

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 …

Software Development sql vb.net
Member Avatar for tsmorris
0
113
Member Avatar for runlevel3nut

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 …

Software Development ide python
Member Avatar for runlevel3nut
0
248
Member Avatar for general2012

# 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
Member Avatar for general2012
0
5K
Member Avatar for rebellion346

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++
Member Avatar for vencen
0
2K
Member Avatar for Mirza92

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, …

Software Development assembly display
Member Avatar for Mirza92
0
127
Member Avatar for gunvinayaka

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
Member Avatar for deceptikon
0
402
Member Avatar for muhammad.khan.3576

#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
Member Avatar for Ancient Dragon
0
226
Member Avatar for new_developer

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++
Member Avatar for Ancient Dragon
0
614
Member Avatar for new_developer

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++
Member Avatar for nullptr
0
131
Member Avatar for SMYussef

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
Member Avatar for stultuske
0
135
Member Avatar for Ahmad93

How Can I create Collision between array of balls ?

Software Development java
Member Avatar for JamesCherrill
0
153
Member Avatar for laguardian

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
Member Avatar for JamesCherrill
0
326
Member Avatar for christinetom

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
Member Avatar for christinetom
0
196
Member Avatar for silvercats

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++
Member Avatar for NP-complete
0
197
Member Avatar for teo236

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 …

Software Development c++ ide
Member Avatar for teo236
0
234

The End.