132,726 Archived Topics
Remove Filter ![]() | |
# include<stdio.h> # include<conio.h> void main() { int s1[10],s2[10],s3[10],total[10],per[10],i; char name[20],pid[10]; clrscr(); printf("==================== Marksheet ======================"); printf("\n\n\n"); for(i=0;i<3;i++) { printf("\n Enter your name:"); scanf("%s",name[i]); printf("\n Enter your PID:"); scanf("%s",pid[i]); printf("\n Enter your Subject1:"); scanf("%d",&s1[i]); printf("\n Enter your Subject2:"); scanf("%d",&s2[i]); printf("\n Enter your Subject3:"); scanf("%d",&s3[i]); } printf(" \n ===================== RESULT OF MARKSHEET … | |
Ok guys, I'm back with new code. I got help from my professor on the problem, but the USB drive I'm using deleted all of his work and I can't remember what he did to get it all to work. I need to get the file (titled lab2.dat): This is … Software Development c | |
Option Strict On Public Class Form1 Private Sub btnCalculate_Click(sender As System.Object, e As System.EventArgs) Handles btnCalculate.Click Dim strType As String Dim intYellow As Integer Dim intBlue As Integer Dim Price As Double strType = txtType.Text Integer.TryParse(txtYellow.Text, intYellow) Integer.TryParse(txtBlue.Text, intBlue) If strType.ToUpper = "R" Then If intYellow >= 1 AndAlso intYellow … Software Development vb.net | |
Hi, I wonder if anybody can set me straight as I am having a hard time understanding what is going on with INotifyPropertyChanged. My understanding of the events are: 1> Have a window with 2 textfields and a button 2> Create an instance of the Employee object 5> Bind both … Software Development | |
Here is a picture of a form. http://postimage.org/image/a813nony5/ Please help: I have a form with: - 4 textboxes (textbox 11,21,311 & 41) - 4 buttons (add, delete, save, refresh) - 1 DataGridView (MS Access database connected) - 1 filter to filter the data through DatagridView Here is the story: When … | |
i m trying to do a music cd databse. i done most of it bt i dont kno how to do the search methord..can any 1 help this is my program import javax.swing.*; import java.util.ArrayList; import java.io.*; import java.io.IOException; public class Cd { public String ArtistName; public String CdName; public … Software Development java java-swing | |
need help to create an array of CDs, where the data comes from a text file, and then sorts the array content by artist name, then title,releaseyear,length in ascending order of artists name.(2 classes main and Cd ) When sorting is done is written a new fill to disk, with … Software Development java | |
Hello, I'm making a application to use in college to retrieve my calendar and other things in VB.NET. But my college uses a proxy so when I connect my laptop I need to change the internet settings in my web browser to view web pages. Can anyone help me by … Software Development router-proxy-firewall vb.net visual-basic | |
Hi all, I am learning to code in c++ on Linux Mint 13. I am going through an exercise drill in a book called "Programming Principles and Practice using c++ by Bjarne Strustrup". I have a couple of questions. - I am having trouble with the calling the error function … Software Development c++ machine-learning | |
Someone a few months ago told me that I had to change a bunch of code from stuff like this... // config_options.h // define _FOO if and only if you want option foo to be available #ifndef _FOO #define _FOO #endif // main.cpp #include "config_options.h" #ifdef _FOO void foo() { … Software Development c++ ide visual-studio | |
What am I doing wrong? In the following templated functions, I'm trying to convert all my CopyMemory functions to std::copy functions. I'm not sure what I'm doing wrong as they don't work as they should with the std::copy but instead, they work with memcpy and CopyMemory. I'm only doing it … Software Development c++ | |
I'm having problems with the code below. I figured since Monster1=new Orc 's attack function can't know whether it's attacking a Troll or Goblin since it accepts an Entity pointer as an argument. But having the be_attacked functions doesn't help either #include<iostream> using namespace std; class Entity { public: virtual … Software Development c++ | |
hello! I'd like to rank a numpy array without getting the number positions changed. I was able to do it using the numpy function below but it keeps ranking the 'NaN' values as well, how can I get it to ignore them and just rank the real number values instead. … Software Development python | |
I'm trying to do something simple like get calc.exe to start minimized, but it's not happening. import subprocess import win32gui import win32con info = subprocess.STARTUPINFO() info.dwFlags |= subprocess.STARTF_USESHOWWINDOW info.wShowWindow = win32con.SW_SHOWMINIMIZED x = subprocess.Popen("calc.exe", startupinfo = info) It pops up the same as always, no matter what I provide for … Software Development microsoft python windows-api | |
Hi, I've posted m code below and cant get it to work because of *fatal error c1004 unexpected end-of-file found*. Appreciate any help. #include <iostream> using namespace std; /* //what i addedint q[8][8]; void printSolution();//int q[]); void hereQueen(int q[], int n1, int n2); */ class Queens { bool canGo; int … Software Development c++ | |
How am I supposed to take input/catch CTRL+C or CTRL+V commands ? Software Development c++ | |
Why is C++ on linux basically C? I've tried everything to avoid C on linux but it's simply near impossible. I've tried to stick directly to the standard library but I somehow find myself using dirent.h, types.h, etc.. Is there any other ways to do these other than using C … | |
Hello, I'm very new to C#. Basically, this is an existing windows form application, I'm supposed to add a checkbox in two existing forms. The forms have other comboxes and and textboxes. There's a restricted folder for many departments.So, when i fill up the other fields and check this check … Software Development | |
I have just started getting into SFML and Visual studio as well . I have always worked on turbo c++ . I am not sure I understand the very first code that I have come across while getting into SFML . Here is the program.. #include<iostream> #include<SFML\System.hpp> int main() { … Software Development c++ visual-basic visual-studio | |
What should be the output to the following code ? I am confused because I am getting a slightly different output everytime . Any other advise would also be appreciated . #include<iostream> #include<SFML\System.hpp> void apple_thread(void *data) { using namespace std; for(int i = 5 ; i<11 ; i++) { cout<<"I … Software Development c++ | |
Ok Guys, got a question on a nested list and how to return the values from it. Writing a scout script for a game I play. The return is this: [[278,278,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] [[278,279,-1,[25076,u'name',3,6,u'',0,0,1,[0,0,None,5]]]] I'm wanting to place the coordinates i.e. 278 and 279 along with the 3rd value in this case … Software Development python | |
> Quoted Text Here Hello Guys ... HOw's are you .. kindly guide mein about format of DateTimePicker where user can select date from calnender as wel as time also .. Thanks in advacne waiting for your reply ... TC Software Development vb.net | |
I'm having a problem with the code below. Can anyone help me? #include <iostream> #include <string> using namespace std; class Aircraft { public: Aircraft() : MPrice(0), LPrice(0), BPrice(0), PPrice(0), TotalPrice(0) , Stars(0) {cout<<"aircraft constructor"<<endl;} virtual ~Aircraft(){cout<<"aircraft destructor"<<endl;} protected: string Missile; string Laser; string Bomb; string Propulsion; int MPrice, LPrice, BPrice, … Software Development c++ | |
data = open('sketch.txt') for each_line in data: try: (role, line_spoken) = each_line.split(':', 1) print(role, end='') print(' said: ', end='') print(line_spoken, end='') except: pass data.close() I'M gettin the following error when I run this code but it looks exactly like what I'M seeing in my Head First book. File "sketch.py", line … Software Development python | |
What is the difference between Class and structure Software Development c++ | |
I have a small Python program that should react to pushing the up button by running an appropriate method. But instead of doing this, it gives me a confusing error... from tkinter import * class App: def __init__(self, master): self.left = 0 self.right = 0 widget = Label(master, text='Hello bind … | |
hey guys reading deitel book and have a little problem with the code that I cant understand #include <iostream> using std::cout; using std::endl; #include <iomanip> using std::setw; int main() { // define array sizes const int responseSize = 40; // size of array responses const int frequencySize = 11; // … Software Development c++ | |
i am making a booking system and i am thinking how am i suppose to know if there is a conflicting time.. i want to add an Error message if the time is conflicting in other event help me please Example: Date Time Start Time End DEBUT September 18 5:00 … | |
I have Table of Contents working fine. I can't get a Table Of Figures to work, however. I have tried setting the Caption property, but I still get "No Tables of Figures Entries Found". Anybody, HELP! Thanks. Software Development visual-basic | |
Does anyone know tutorials for link list to be able insert,delete,cout list,give id and time void list_insert( UINT time, UINT id, UINT event) { } void list_head_delete() { } UINT list_head_event() { work_ptr = list_head; if(work_ptr == NULL) { return 0; } else{ printf("Should print the list head \n"); return … Software Development c | |
How can i specifically setfocus a textbox column in datagridview? Software Development vb.net | |
can someone help me solve this problem...i can't solve it..this is for my final project report & i really need help from the expert one.... Software Development vb.net | |
import java.util.Scanner; // Needed for the scanner class /** Chapter 2 Programming Challenge */ public class Wordgame { public static void main(String[] args) { String name; //The user's name String age; //The user's age String city; //The name of a city String College; //The name of a college String Profession; … Software Development java | |
Basically I am attempting a HW assignment for questions that a frequently asked in interviews. I am not sure if I am having problems with the coding or actually understanding what they question is asking for. Basically I am asked to find an element in a sorted array and that … Software Development c | |
Hey folks, I am working on a project (its a continuation of my previous project)... but with a few additions. First off, i have to use class templates... I have used them before, but not when working with multiple class definitions and multiple files. Below i will post sections of … Software Development c++ | |
I have a textbox has a maxlength of 18, e.g Textbox=ABC123456789012345 i want that the first 3 input must be letters only. Software Development vb.net | |
i have made a database in sql+. it has a database. there is a table project. its columns are p_id,p_name,p_manager. i have inserted 5 rows in above table. in d front end in vb6 i have a form . please help me with the code such that my p_id is … | |
i am trying to make a program where i have a server with multiple clients, where a client sends a message to the server and when the server replies to it, the server broadcasts the reply to all the clients. the code has some error and is not working. i … Software Development c socket-programming tcp-udp | |
Hey guys! I'm having a problem and I hope you guys can help me figure it out. I have to create a program that prints all the armstrong numbers from a user given lower and upper bound. I have a lot of the code but I can't seem to get … Software Development c++ | |
A program which displays the prime factors of a given number, all the 'hard' work is done by the [B]factorize()[/B] function: [CODE=c] /* Find out the prime factors * of a given number and print * them on the screen */ void factorize(int n) { int d = 2; if(n … Software Development c data-structure | |
Hi all, I wrote an application for our poker games. It works great as a timer and stores our points. My problem is that I want to sort the points in order and redisplay along with peoples names, total tournament games, total games. Here is a snippet of how I … Software Development visual-basic | |
Make a program that counts, identifying every value divisible by 3 and 5. If it is divisible by 3, put an asterisk (*) beside it. If it is divisible by 5, put a tilde (~) beside it. Print the first 200 values. Can someone help me? i don't actually know … Software Development c++ | |
Hi Everyone, I am taking C++ for the second time and I am understanding it better this time around. I have an assignment that needs a switch (got that, know how to do it), I have put if/else statements inside of the cases. The thing I can't get to work … Software Development c++ | |
![]() | Hey, so i'm having some problems with my message passing code. Ultimately, what i'm trying to do is use the msgget/snd/rcv commands to send the pid of the parent to the child, and visa versa. However, i'm getting an invalid argument error fr my msgsnd in the child process. My … Software Development c |
I am using C++/Qt4.3.0.Here I am exporting an html report to .doc file containing some images that are created at run time.For that, I have used html and then inserted the html text to QString and then to QTextEdit..Now I want to make this .doc file system independent so the … | |
Hey all, this is a pretty basic program that will take a use submitted array and call functions to find the max,min and then a function to reverse the array. I have the first two functions written and working but I am having trouble with the reverse array function. The … Software Development c | |
how can i view record from my mysql database in datagridview and update or delete it? can you guys help me? please share your codes. thanks in advance. Software Development vb.net | |
Hi Guys, I have this problem which I encountered a while back in Java, and I worked through that at the time, however, know I'm using VB.net and am not really sure how to tackle this. I am trying to read a text file line by line, using the following … Software Development file-system vb.net |
The End.