132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HiHe

I copied this code from page 11 of http://personal.denison.edu/~krone/cs173/files/PythontoC++.pdf and assigned it to a Python string. Alas there are still line numbers. How could I use Python to remove these? Help, I have a mental block. s = ''' 1 #include <iostream> 2 using namespace std; 3 4 int gcd(int …

Software Development pdf python
Member Avatar for vegaseat
0
1K
Member Avatar for twtw

and i get error with error C2451: conditional expression of type 'std::basic_string<_Elem,_Traits,_Ax>' is illegal void system1::search() { cout<<"Enter ID to be Searched: "; int data_search; cin>>data_search; nodetype *current = head; while(current != NULL) { if(current->ID == data_search) { cout<<"\n----Linked List Linear Search Result----\n"; cout<<"ID: "<< current->ID <<endl; cout<<"Name: "<< current->NAME …

Software Development c++ linked-list
Member Avatar for Maritimo
0
222
Member Avatar for My_1

what is souce control and what is Fault ?

Software Development c
Member Avatar for HiHe
0
96
Member Avatar for adnan121

Data structures to be used The program should use two distinct structure-types to store the students’ scores: the 1st type used for keeping scores of 4 quizzes while the 2nd type is used to keep the scores of 2 exams. A student can have either quizzes (if Engineering student) or …

Member Avatar for gusano79
0
188
Member Avatar for nitin1

I am very confused with static functions. Can I override them? If no, then why? I searched web a lot but i am still not clear. Please tell with one example if possible. Thanks a lot.

Software Development c++
Member Avatar for Duoas
0
4K
Member Avatar for Papa_Don

Group, I'm counting the number of files in a folder using the following code: Dim counter = My.Computer.FileSystem.GetFiles(folderName) This produces a value that doesn't appear to be either a string or an integer. Would you know how to convert this value into an integer that can be used? Don

Software Development vb.net
Member Avatar for Papa_Don
0
738
Member Avatar for Garidius

Hello to all, I'm trying to use the function below to print strings to a file. When I use Console.Write() or Console.WriteLine() the output file grows up 3MB or 4MB per seconds, but when I try to use StreamWriter or File.AppendAllText the output in the way shown below, the file …

Software Development file-system
Member Avatar for Garidius
0
583
Member Avatar for Papa_Don

I'm making some "cleanup" changes to my 1st VB.net project that I'm publishing. The project has an "Assembly Name". But I've just realized that the Root Namespace has the default name of "WindowsApplication1". I've got to believe this needs to be changed. How important is the name I put here? …

Software Development assembly publishing vb.net
Member Avatar for Nutster
0
1K
Member Avatar for ameer.idreis

I am using Visual Studio 2013 and can't install any libraries(for school purposes)... I would like to display an image of any extension as long as it is an image (jpg/png/bmp...) I've been looking around forever now and just want to put display an image in my application. I am …

Software Development c display visual-studio
Member Avatar for HiHe
0
290
Member Avatar for xela_1

I am new in c programing.In apps they usualy have images as background take for example a question and answer app will have a colourful backgroung.If i draw an image with corel draw how can i display as background in my c program.

Software Development c c# c++
Member Avatar for HiHe
0
227
Member Avatar for Udai_1

hi i have changed a java process as the windows service. but in this whenever i am starting the windows service two java processes are running.it is spoiling my work totally can we have any way to remove a java process?

Software Development java
Member Avatar for JamesCherrill
0
214
Member Avatar for mR.faVOriTo

` #include<iostream.h> #include<conio.h> #include<string.h> typedef char string50[51]; typedef char string08[9]; typedef struct { string50 strName; string08 strID; float fQuiz[3]; float fMacProb[2]; float fFinalExam; float fRawScore; float fFinalGrade; float fAveQ, fAveMP; }STUDENT_RECORD; typedef STUDENT_RECORD CLASS_RECORD[5]; #define Name 1 #define ID 2 #define QUIZ1 3 #define QUIZ2 4 #define QUIZ3 5 #define …

Software Development c++
Member Avatar for tinstaafl
0
2K
Member Avatar for vineeshvs

is there any alternative for wavread (in matlab) in c. i want to get the samples, sampling frequency and bits per sample???

Software Development audio c
Member Avatar for NantKKNyein
0
9K
Member Avatar for kamaki

hello, I'm new to c and i need to put the following string from a file into a linked list : music;artist;1,2,3,4;2015 i also need to put "1,2,3,4" in an array but only the numbers. I would really appreciate your help. Thank you

Software Development c linked-list
Member Avatar for 111100/11000
0
242
Member Avatar for Maythu

I have canny edge detection and steganography source code.I want to combine these.How should I do? I want to test with PSNR for image quality.How can I add where steganography source code? Thanks and best regards, Maythu

Software Development
0
78
Member Avatar for Tcll

What I'm trying to do is figure out a legit way of updating or downdating my program from my GitHub repository. I'm rather lost as the the approach on this and don't know what to consider. I want to notify a user if a new major update is available, and …

Software Development github python
Member Avatar for Tcll
0
214
Member Avatar for Papa_Don

Group, I've published my first VB.net program (woo hoo!). This prompts me to ask a couple of questions: 1) I'm using a couple of text files to hold some user updated info. Is there a way to have the setup program to create the folder and attached the text files …

Software Development publishing vb.net
Member Avatar for cgeier
0
432
Member Avatar for ankit1122

it is told that in object oriented language every thing is an object.. ihave written two lines:- int a; Object b; when i do b. options appears but when i do a. options do not appear..accourding to theory a is also an object then why the same option appear for …

Software Development java
Member Avatar for stultuske
0
120
Member Avatar for chanedgar1791

hi, I am creating a C# application and I am wondering how can I create a custom setup project. not the conventional one provided by visual studio. I would like to add a status bar and create my own folders and insert the required files to the folders, etc.. any …

Software Development c# visual-studio
Member Avatar for gusano79
0
350
Member Avatar for senergy

so I have this code to draw screen to client area every 100ms HDC hDC = GetDC(hWnd); SetStretchBltMode(hDC, HALFTONE); StretchBlt(hDC, 0, 0, screen.right/2, screen.bottom/2, GetDC(NULL), 0, 0, screen.right, screen.bottom, SRCCOPY); DeleteDC(hDC); however whenever it draws the program freezes for a while (like 10ms), it's not really noticeable unless you move …

Software Development api c++
Member Avatar for triumphost
0
621
Member Avatar for juliocesar.schincariolfilho

I'm trying to load a png to my button, but it's not showing the png in my button. I create my button with this function: HWND MyControls::CreateButton(LPCTSTR text, int x, int y, int w, int h, HMENU id, HWND hwnd, HINSTANCE hInst, bool png){ if (png){ return CreateWindow("BUTTON", text, BS_BITMAP …

Software Development c c# c++
Member Avatar for triumphost
0
2K
Member Avatar for fahadkalis

Hello everyone, I am working on Linux PC and want to make a program to get data from RaspberryPi(another Linux machine). Both machines are connected together by CAT5 cable directly without any Switch or Hub. Linux PC hostname is mike and IP is 192.168.93.12 Raspberry hostname is pi and IP …

Software Development python raspberry-pi
Member Avatar for fahadkalis
0
245
Member Avatar for Nebil

Hi guys, I've got a little problem.A part of the project I'm working on reads data from an excel file and stores it in the database. It works fine for 15-20 records but fails after that. I have properly closed the connection and the reader I'm using. But ut doesn't …

Software Development vb.net
Member Avatar for Nebil
0
122
Member Avatar for ali11

Can someobody tell me why i only see blank window. import java.awt.*; import java.awt.GridBagLayout; import java.awt.event.ActionEvent; import javax.swing.ImageIcon; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; import javax.swing.JTextArea; import javax.swing.JTextField; public class dic extends JFrame{ public JLabel label1,label2,label3,label4,label5,titlel; public JTextField ew,fw; public JTextArea txar1,txar2; public JPanel …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
220
Member Avatar for Lacrecen

in trying to clear all the input boxes on my form.. i have a textbox and combobox.. and i have found the code for clearing all textboxes which is: For Each Control In Me.Controls If TypeName(Control) = "TextBox" Then Control.text = "" End If Next the only thing to do …

Software Development visual-basic
Member Avatar for Lacrecen
0
3K
Member Avatar for omnizw.ani

[Click Here](http://moodle.squ.edu.om/file.php/5759/hw_4_Fall2014.pdf)

Software Development c++ pdf
Member Avatar for rubberman
0
78
Member Avatar for bc230201818

brushing Up the practise of class and its implimentation #include<iostream> #include<stdlib.h> #include<conio.h> #include<string> #include<Windows.h> using namespace std; class Student{ private: int ID; string IDch; string name; public: Student(){ int ID = 0; string name; string IDch; } int getID(){ return ID; } void setID(int ID){ this->ID = ID; ID = …

Software Development c++
Member Avatar for bc230201818
0
601
Member Avatar for bc230201818

A simple function #include<iostream> #include<string> #include<conio.h> #include<stdlib.h> using namespace std; class name{ //******************************* private: string fName; string mName; string lName; int ppl; //******************************* public: int getPpl(){return ppl;} void setPpl(int ppl){this->ppl=ppl;} name(){fName;mName;lName;ppl=0;} string getfName(){ return fName;} string getmName(){ return mName;} string getlName(){ return lName;} void setfName (string Aname){this->fName=Aname;cout<<" X. Please Enter …

Software Development c++
Member Avatar for bc230201818
0
201
Member Avatar for nuller

fstream file; file.open("PasswordGenFile.dat",ios::out); In writing into a .dat file what does the following line mean? file.write((char *) this, sizeof(PasswordGenerator)); And how can i convert this bit of code if i want to write it into a .txt file?

Software Development c c# c++ file-system ios
Member Avatar for Duoas
0
497
Member Avatar for mohamed_44

am trying to implement the State Space of the game towers of hanoi the problem i cannot implement a deep copy to an object the results are very wrong :) and am in a hell miss , all am trying to do is to insert the potential changes between bigs …

Software Development java
Member Avatar for JamesCherrill
0
224
Member Avatar for CSharpUser

I have a Windows Forms application (not WPF) in which from the main form (UI thread) I am creating a separate thread to perform a long period of test execution. The idea is that the user starts the testing by clicking a button on the main form; when the user …

Software Development multithreading
Member Avatar for lolafuertes
0
288
Member Avatar for PinoyDev

I have a datagrid on the form bind with recordsets. I need to know if is it possible to assign that datagrid object into a variable? I have created a preliminary code but its not working dim dbgridvar as DataGrid Private Sub Assign_Click() set dbgridvar=Form1.Datagrid1 End Sub Thank you for …

Software Development visual-basic
Member Avatar for PinoyDev
0
175
Member Avatar for Duoas

Hey all. I'm always frustrated that I cannot seem to find a reference that shows when a feature was *introduced* in Delphi. For example, to use ErrOutput, I have to manually create that value in D5. But what about D6? or D7? Does such a reference exist?

Software Development delphi pascal
0
113
Member Avatar for AndresOend

Hi, I want to use Lazarus on my mac, and I went through the steps, installed the three packages at http://sourceforge.net/projects/lazarus/files/Lazarus%20Mac%20OS%20X%20i386/Lazarus%201.2.6/ . I also typed xcode-select --install into my terminal, which installed some necessary command line tools. The 'Configure Lazarus IDE' has recognised the compiler, FPC sources, and 'make', but …

Software Development apple ide pascal
Member Avatar for Duoas
0
925
Member Avatar for lizard4

For a project, i have to create an address book and I am trying to get it to store the person data into an array list and read from a file text but have not been able to figure out how to do it. Here's the instructions: 1) Add a …

Software Development java
Member Avatar for mikias.kidane.9
0
346
Member Avatar for zolymo

Hello i have an problem with an inheritance query using JPA (There is my Class Hierarchy) +UsuarioGenerico (MappedSuperclass or Entity - but is Abstract) -+Usuario (Entity) -+UsuarioPorEmpresa (Entity) Then, when i try make an select for Usuario, i not obtain results i try with an NamedQuery: `@NamedQuery(name="Usuario.findAll", query="SELECT u FROM …

Software Development java
Member Avatar for zolymo
0
194
Member Avatar for Programmer592

Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item. ![2014-12-25_15_49_20-DLAUBEFN_(Running)_-_Microsoft_Visual_Studio.png](/attachments/large/4/8dcefef15b7155ed7cc20f56c743d34f.png "align-center") What I want it to do is if a certain folder is closed, I want it to start a batch file and close itself. I know how …

Software Development vb.net
Member Avatar for Programmer592
0
327
Member Avatar for yaya1234

Hey, I used getline to read from file. When i have the char '#' I should ignore that line.. I want to put in the privat values of the class what I got from the file.. Here is what I did.. it works only for one line and then when …

Software Development c++ legal
Member Avatar for Suzie999
0
164
Member Avatar for redtribal23

Why this doesn't work? class Faculty extends Employee { private long[] officeHours; private String rank; public Faculty(long[] hours, String rank) { this.officeHours = hours; this.rank = rank; } public static void main(String[] args){ //some code here Faculty f = new Faculty(newToken[], tokens[tokens.length-1]);

Software Development java oop
Member Avatar for vivekH
0
256
Member Avatar for lewashby

In the following program it says that there is a conflict between my getline and the getline in stdio.h. I understand what it's saying because stdio.h has it's own getline function. What's confusing me is that this is the program that my programming book (The C Programming Language) is giving …

Software Development c
Member Avatar for deceptikon
0
180
Member Avatar for PinoyDev

I have the following query that list all chemicals(chemical tbl) and its consumption(receipt tbl). However if the chemical codes are not in receipt tbl, it does not show the chemical name. It should display the name and put the consumption as zero. My codes below: SELECT Chemical.ChemicalCode, Chemical.ChemicalName, GroupDetails.GroupName, Chemical.LastRate, …

Software Development visual-basic
Member Avatar for PinoyDev
0
202
Member Avatar for waqasmrd

sir will you please help me and send me query for this...

Software Development vb.net
Member Avatar for Santanu.Das
0
128
Member Avatar for Maryam_6

Matrix inverse and lu decomposition using link list

Software Development c++
Member Avatar for Maryam_6
0
180
Member Avatar for JOLO14

Hi, i want to ask u something guys. i have one textbox. While writing in, after pressing Space, i want to intstead of white space, write this "|" . This is my code void TextBox1KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if (e.KeyChar == (char)Keys.Space) { textBox1.AppendText("|"); } } Problem is it …

Software Development
Member Avatar for deceptikon
0
103
Member Avatar for abrar7866

int firstarray[12][7] = { }; double firstClass(int airplane, int seats, double price) {cout<<setw(60)<<"---------------------... cout<<setw(60)<<"You are in **first class** booking screen\n"; cout<<setw(60)<<"----------------------... cout<<"\n"; cout<<"How many seats would you like to book for first class?"<<" ";cin>>seats; for(int row=0; row<2; row++) { for(int column=0;column<7;column++) { } } } The thing is, The first …

Software Development c++
Member Avatar for Maritimo
0
335
Member Avatar for bc230201818

The set of codes have been taken from Paul programming Tutorials of Bianary search tree while listening to the tutorial and is not my effort . neither I have written this program. How ever converting the set of codes into animation has been done by me Enjoy watching and it …

Software Development c++ data-structure
0
104
Member Avatar for Maryam_6

Matrix inverse and lu decomposition using link list.

Software Development c++
Member Avatar for Maryam_6
0
77
Member Avatar for JOLO528

Hi,Am creating program to translate morse code to text and text to morse code. First it worked fine with basic characeters in dictionary: abcdefghijklmnoprstuvzy0123456789 .Than i want to upgrade it to translate special characters in my language like áéäňöü .Problem is when i write it to my dictionary and give …

Software Development
Member Avatar for cgeier
0
232
Member Avatar for sarathcd

Hi Guys, I am new to XSLT, looking to solve a problem I am facing in filtering XML records. I need to get both the Input XML record position and limit the output XML to a particular number (based on input provided to xsl:param from .net 1.1) Input XML <Parent> …

Software Development xml
Member Avatar for Maruli
0
835
Member Avatar for prabs20

I want to convert an existing web page content to MS Word format on a button click event using c#. I have done conversion of web page to pdf format using itextsharp library. I am looking for similar tool which does the conversion to word. Alternatively is it possiblet to …

Software Development pdf
Member Avatar for 良红
0
958

The End.