43,549 Solved Topics
Remove Filter ![]() | |
Hello everyone, im currently stuck because i'm not sure how to start on this part of my program. What i'll need help is controlling another application, my program is suppose to run another application, and be able to hide it, show it, verify that is running, it also needs to … Software Development vb.net | |
#include <stdio.h> #include <stdlib.h> void main() { int a[400],n,i; printf("enter the no of elements: "); scanf("%d",&n); printf("enter the no: "); for(i=0;i<n;i++) { scanf("%d",&a[i]); } n=n+1; printf("enter the no: "); scanf("%d",a[n]); for(i=0;i<n;i++) { printf("%d",a[i]); } } i inserted elements after that i again inserted its not working.it shows 0 errors but … Software Development c | |
Hi all, i want to wite an method that can take a String and return boolean , it should return True if the first character of string is an uppercase . Can not using String Apis ? so how can i do ? thank ! Software Development java | |
Hello, I am trying to read values from an excel spreadsheet but just for specific cells at a time; say Cell A1 and B1. Then I want to save the respective values into a variable and use the variable through out the rest of the code. Then loop at the … Software Development microsoft-office python | |
I'm trying to write a string out to a file using File.AppendAllText, but I need to do it several times over the course of the program. I'm not using threading, and to give the file time to close, I'm letting my program sleep for a couple of seconds after it … Software Development vb.net | |
Hello! After I compile and run my program a windows error message shows up, it doesn't give some specific information it's just a standard windows xp error that asks me to send report. It gives me the error because in my code I have some basic math like this: int … Software Development c++ | |
Hello All! I am a little confused about the memory allocated for an executable. Now, say for example, this is my code: int foo = 1; int main() { const char* bar = "hello world"; int num; return 0; } Now, the "hello world" part would be stored in the … Software Development c++ | |
How can I get SetConsoleTextAttribute to work with my Console? I tried everything. First I redirected the cout and cin buffers so that my console can have input and output. But now it doesn't have Colour :S I used: HANDLE OutputHandle = GetStdHandle(STD_OUTPUT_HANDLE); SetConsoleTextAttribute(OutputHandle, 10); I don't think GetStdHandle is … | |
Hello 'am working in qt creator but have problem running my code. It compiles alright but never executes. And also gives the following message at the output pane 'exited at code -1073741819' Please help me out | |
I have a JTextArea that I need to be able to print off from the printer. This is the kid of text that is in the JTextArea GLEN ROGERS 47 PINE AVENUE, CARRICKFERGUS, BT38 8EE, 07824771114 733KIA 2012/07/03 DEVICE; OTHER - GIVE MAKE AND MODEL PACKARD BELL EASYNOTE TN? WINDOWS … | |
I need to open two pdf files as popup window on click ona button in asp.net C#,but now its opening only the first popup?Can anybody help me ,to open the both windows at the same time? This is my code: string PDFPath = folderpath + filename; string PopupName = "popUp"; … Software Development asp.net c# java javascript | |
Is there any way to host several txt files on a computer without having to dive deep into socket programming? I have a few requirements, though: * People could connect when the app is running * No inteference of Windows * Instructions on how to create a client side software … Software Development file-system python socket-programming | |
Hey guys, So I've been working on a program that takes a student id and name but however I got a weird error saying: error: expected ‘(’ before ‘.’ token error: expected ‘{’ before ‘.’ token and it occurs around the `name_first(firstName), name_.second(lastName)`. I'm having trouble to get the pairs … Software Development c++ | |
Hey Guys, i just started learning python and havent really done much programming so im pretty new im following a book and I have to read some data from a text file the code thats giving me trouble is os.chdir('Users\spreston\Desktop\HeadFirst\Chapter 3') the error says that the path does not exist, … Software Development python | |
Hi, ok i had a file looking like this: SilkroadR,,321,13,321,Gobi,False,False,False,False,False SilkroadR,,321,321321,321,Gobi,False,False,False,False,False SilkroadR,,213,321,231,Gobi,False,False,False,False,False SilkroadR,,3251325,3215,3251,Gobi,False,False,False,False,False SilkroadR,,,,,Gobi,False,False,False,False,False I encrypted it and it looks like this: Hdgr6oHm47q2SC5AEjqUY9Boi5WfUT5FTfLvMVYLtorgmufM5GiH6wMg12raZ/YpW/OPZ7bL94wbSWiauy59nrEHlJdO3o1voedaWb/XV7lxNzbUURqDgGtkpr6Ex++d0YAA4sCnkB/GcDtuFd+vqF2IJoI3cC+WKPF73zM5eNz6mJd1hjZK+40je7/LbUyU7JQ8nmvBpEy7J391xM5X5dfKlNziYahufdVsxbO8mTAosQcEZ8JtUoJg2ZWjXO8nPqDci8iy/JgBYnd8Z4fpbfwY5jKwTrq2+TW9k/+I2F9PXUT6OzUUTk4tRFfvWVXBFj/C5s60puxaYJQxgzUzKE2yWls4N3qk3TcZBH1kKCB8h0lS69X77mOxJ0ixkOm1a+deaIWXsBfFHq8ej30ShH2WFf09iAr3 Ok, thats what i wanted, i used to load my accounts like how it looked before the encrypting with this code: Dim iCount As Integer = CInt("0") … Software Development encryption vb.net | |
I am new to Linux, and C++. Usually when I used Java, I could just use javac Something.java and run it using java Something. How do I compile my own c++ code without the help of an IDE? Also I am using Linux Ubuntu 12.04 | |
Can someone point me in the right direction for formatting text and aligninng text in a JTextField? Thanks... Software Development java | |
I know that it generates a public key and then a private key. You encrypt with public and can only decrypt with private key. How is this algoritm going to work in a C++ program, how am i going to compute the public key and then the private key? Also, … Software Development c++ encryption | |
Hi everybody! I am having some trouble running a detached process using CreateProcess function in C++. I have been using the following function to spawn processes in c++ for years now havnig no trouble. I have used it with console applications, mfc apps, dialog based ... etc : StartProc(char *callprogram, … Software Development c++ java windows-api | |
The following four classes are an attempt to set up three different JFrames and switch between them. The three frames are: MainView, DetailView, and FormView. The main class is MultipleFramesExample. The four source codes constitute a NetBeans project with a package called FrameViews. MainView, DetailView, and FormView are essentially identical … Software Development java java-netbeans java-swing | |
Hi, I have a Win32 Console Application which is throwing the Debug Assertion Failed! .. _CrtIsValidHeapPointer( pUserData ) and followed by a Debug Assertion Failed! .. _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). After I did a Step by Step Debug strangely what I saw was it is throwing error once it is exittin the main … Software Development c++ | |
![]() | hi, My question is about the const keyword. union emp { char name[]; int age; float salary; }; const union emp e1; int main() { strcpy(e1.name,"H"); printf("%s",e1.name); e1.age=45; printf("%d",e1.age); printf("%f\n",e1.salary); return 0; } I know this code has error which is that "cannot modify constant objects". But Can anyone tell … Software Development c ![]() |
![]() | hi, int a[][2]={1,2,3,4}; int *p[]={(int*)a,(int*)a+1, (int*)a+2}; for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d ",*(*(p+i)+j)); Firstly, This is part of any code. And i want to ask that in *p[] definition, why it is written (int*) with every element since a is already an pointer. Secondly, when I am accessing *(*(p+1)+1) element in loop, then … Software Development c ![]() |
I wanted to write a simple program that uses classes but I've been running into errors. Anyone have a clue as to what is wrong with my code because I can't seem to figure it out. #include <iostream> #include <iomanip> #include <cmath> using namespace std; class cone{ private: double radius; … | |
Eventually i want to load names from a database to textboxes which are created at runtime. Thought i'd try just getting names into a listbox first though as i'm new to using databases in vb and for some reason nothings getting added to the listbox Heres the code iv'e got … Software Development open-source sql vb.net | |
How to define multiple characters using macros?? I want to declare all the hexadecimal digits under a name "hexa". Does anyone know it how to do that?? The below code is wrong! Any suggestions to make it correct?? #define hexa 'A','B','C','D','E','F','0','1','2','3','4','5','6','7','8','9' #include<stdio.h> int main() { char a; printf("Enter a character= … Software Development c | |
Yea, i've made a lot of threads xD well, im learning and im doing things for different projects. Is there a shorter way to change the backcolor of the textboxes instead of doing this: Private Sub TextBox1_GotFocus(sender As Object, e As EventArgs) Handles TextBox1.GotFocus Me.TextBox1.BackColor = Color.FromArgb(65, 65, 65) End … Software Development vb.net | |
I'm writing a program in MARS that encrypts/decrypts a string with a simple addition/subtraction method to each character according to a 4 digit key such as '2848.' I'm now trying to navigate through each character in a string and just increase the decimal count by 1 just to test it … Software Development assembly | |
Why the program is running without line 14? #include<stdio.h> #include<iostream> //#include<conio.h> //#include<math.h> #define FOR(i,a,b) for(int i=a;i<b;i++) using namespace std; int main() { int a[]={1,2,3,4,5,6,7,8,9,10}; int *b; //b=(int *) malloc(sizeof(a)); b=a; //cout<<b; FOR(i,0,10) cout<<b[i]<<" "; //cout<<sizeof(b); //getch(); return 0; } Software Development c | |
Hi guys! How I can include BoxedApp.dll for my Java - project? Is it really? Software Development java | |
I have this code and when ever i try to put in the value 'e' it doesnt want to take it, the program freses. #include <iostream> #include <string> #include <fstream> using namespace std; int encrypt(); int decrypt(); int phi, M, n, e, d, C, N, D, answer, p, q, s; … Software Development c++ encryption ios | |
Hello all, I recently started working with java, and I have been in the process of creating a new game for use on Android operating systems. I have at least 90 percent of the game fully conceptulized and at least 30 percent of it already in actual code. However I … Software Development android java operating-system | |
Why can't I use inline functions with my setter method in c++. Here is the code: Main.cpp #include <iostream> #include "Employee.h" using namespace std; int main() { Employee h; h.setAge(30); h.setSalary(70000); h.setyearsOfService(5); h.printAllInfo(); return 0; } Employee.h #ifndef EMPLOYEE_H #define EMPLOYEE_H class Employee { public: inline int getAge(); int setAge(int … Software Development c++ | |
![]() | hello, I am learning C from past 1 year, Now, I want to improve my coding skills by learning techniques like dynamic programming, backtracking and all that stuff. Can u please tell me or give me links from where i can learn, practise and improve these skills ? please help … Software Development c ![]() |
I am writing a chatbot and it's database is going to be contained in a .txt file. Now i have this code: #include <iostream> #include <string> #include <fstream> using namespace std; int main() { string line; string uinput, resp; char key = line[0]; ifstream file("t.txt"); cout<<": "; getline(cin, line); while(getline(file, … Software Development c++ | |
Hi, I've got an XML file that I need to make changes to before creating an output XML file. I've got an XSLT Transform file which does part of the job fine, but I'm needing to go one step further which is where I'm struggling. In C# I'm using an … Software Development c# data-structure xml | |
Hi, How do you delete a newline character that is inside a VB string? Apparently Trim removes only spaces. Thanks in Advance. Software Development visual-basic | |
hi, i am doing a project using C#. i am new to this area. the task is to extract the zip or rar file using C#. in my windows form have a text box and button in the form. i will give the zip or rar file. when i click … Software Development c# file-system | |
Hi guyz, I'm just wondering if it's possible to add the mouse when capturing the screen or monitor in vb.net? because I'm doing a project that would record the screen and I'm actually successfull doing that by capturing the screen and include it in a timer, but my only problem … Software Development vb.net | |
I am trying to grab the string/object from the treeview. So when a user click on any item in the treeview, I can show it on the terminal. ANy help is appreciated.Here is the code. QtCore.QObject.connect(self.treeWidget, QtCore.SIGNAL("clicked(QModelIndex)"), self.treefunction) def treefunction(self, index): print index Output on clicking the item in treeview … Software Development python | |
If My.Forms.Main_frm.UseProxy.Checked = True Then My.Forms.Main_frm.IPBindingTextbox.Enabled = True My.Forms.Main_frm.ProxyIPTextbox.Enabled = True My.Forms.Main_frm.SocksV4.Enabled = True My.Forms.Main_frm.SocksV5.Enabled = True My.Forms.Main_frm.ProxyUser.Enabled = True My.Forms.Main_frm.ProxyPw.Enabled = True ElseIf My.Forms.Main_frm.UseProxy.Checked = False Then My.Forms.Main_frm.IPBindingTextbox.Enabled = False My.Forms.Main_frm.ProxyIPTextbox.Enabled = False My.Forms.Main_frm.SocksV4.Enabled = False My.Forms.Main_frm.SocksV5.Enabled = False My.Forms.Main_frm.ProxyUser.Enabled = False My.Forms.Main_frm.ProxyPw.Enabled = False End If Is there … Software Development vb.net | |
I know it's a bad practice to post the same question on more than one help site (I posted it on Stackoverflow, but after some time your question loses its place on the "active" list and people stop reading it) but I'm really desperate here. So my question is: I … Software Development c c# c++ matrix-multiplication | |
I started this code, and it does encode the text, however it only does the first line of text and repeats it. It is also encoding spaces. #include <fstream> #include <iostream> #include <string> using namespace std; int main() { ifstream fin; string fileName; cout << "What file do you want … Software Development c++ | |
Hello, I have a JList which contains all data from mySQL table. I want the user to be able to select an item from the list and show it on the label. When I click on the first item it works, However when I click on the other items, the … Software Development java | |
hi every body , i recently finished my first project, what i need is how to make my project execute without visual studio , and also connected with the project database , i need the correct steps , thanx before. Software Development vb.net visual-studio | |
#include <iostream> using namespace std; int answer(int x,int y); //function proto int mutab[10][12]; //two dimentional array declaration int main() { for (int i=0;i<1;i++) //this will fill 1-10 of the multiplication table { for (int h=0;h<10;h++) { mutab[h][i]=h+1; } } for (int i=0;i<10;i++) //this will fill 1x1,1x2,1x3 etc.. to ......10x11,10x12 { … | |
I'm getting an error/crash when trying to use Python on my virtual server running Win 2008 Server. Python installed without incident, and IDLE opens and the interactive widnow works fine. But when I try to open a new window and run it it crshes when trying to save. Example: I … Software Development client-server python | |
I am doing following code to get the output upto 5 decimal characters of any number inputted by user when divided by 1, I have to use typecast it with (float) , can any one tell me how this can be done without typecasting or using float constant.. int main() … Software Development c | |
I have it all written, and it works. However, I have to enter a value and it brings the prompt up again. When I enter the value in the second time, it plays the game. I always have to enter the value twice to get it to work. I'm not … Software Development c++ |
The End.