132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 … Software Development c++ data-science data-structure engineering linked-list | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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. | |
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 | |
` #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++ | |
is there any alternative for wavread (in matlab) in c. i want to get the samples, sampling frequency and bits per sample??? | |
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 ![]() | |
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 | |
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 … | |
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 | |
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 | |
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 | |
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 … | |
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 … | |
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 | |
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 | |
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 | |
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 | |
[Click Here](http://moodle.squ.edu.om/file.php/5759/hw_4_Fall2014.pdf) | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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? | |
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 … | |
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 | |
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 | |
Hi. I have a program that detects all the folders that are open and displays each one in a ListBox item.  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 | |
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 … | |
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]); | |
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 | |
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 | |
sir will you please help me and send me query for this... Software Development vb.net | |
| |
![]() | 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 |
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++ | |
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 | |
| |
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 | |
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 | |
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 |
The End.