43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for terence193

This is what the question is stating: Write a program that inputs a line of text using function fgets() into a char array s[90], then it outputs the line converted to uppercase. For function [ICODE]fgets[/ICODE] to be used, am i correct if I understand that the user doesn't have to …

Software Development c file-stream
Member Avatar for WaltP
0
192
Member Avatar for vani krishnan

Consider there is a string [COLOR="Red"]"hai welcome..."[/COLOR] I need to [COLOR="red"]print the string [/COLOR]as such [COLOR="red"]leaving the first three characters..[/COLOR] I should not use in-built functions or others... It should b [COLOR="red"]done in a single printf statement [/COLOR]by [COLOR="red"]changing the control string pattern..[/COLOR]

Software Development c
Member Avatar for vani krishnan
0
143
Member Avatar for MB1711

I have a TreeView control in VS 2010 that I need to be able to INSERT (not add) nodes to. I have stored a unique key in the TAG for each node and know how to find the value of the tag in the tree. However, I can't figure out …

Software Development vb.net
Member Avatar for Reverend Jim
0
4K
Member Avatar for pseudorandom21

I have a combobox I need to display some data in from a Database, but there are duplicates and I don't know how to select the distinct ones. Any help?

Software Development c c# c++
Member Avatar for pseudorandom21
0
223
Member Avatar for Kitson

Hi guys, First post so please don't be too harsh :D. I'm trying to open a .txt file, search for a specific line starting with (" Performance Summary"), copying the first and third numbers in the columns of the 4th line below it and every line below that until there …

Software Development python
Member Avatar for valorien
0
209
Member Avatar for dineshswamy

[CODE] import java.util.*; public class PetrinetSim { public int noofplaces=0; public int nooftransitions=0; public inputarc[] ip=new inputarc[50]; public outputarc[] op=new outputarc[30]; ArrayList<place> pl= new ArrayList<place>(); public Scanner in=new Scanner(System.in); place[] p; transition[] t; void createplaces() { int i; p=new place[noofplaces]; for(i=0;i<noofplaces;i++) { p[i]=new place(); p[i].token=0; p[i].id=i; } } void createtransitions() …

Software Development java
Member Avatar for JamesCherrill
0
252
Member Avatar for Thermalnuke

Alright, I am having a problem with an error message that comes up, i am pretty sure the code is alright, but it might be the code, i have tried re-installing VB (Visual Basic 2010). i have tried a few things on the web and nothing. here is the error …

Software Development c++ visual-basic
Member Avatar for Thermalnuke
0
113
Member Avatar for abhiagro

can someone please help me with this code? i am getting the following error : [Linker error] undefined reference to `enr(int, int, double, double, double)' thanks #include <iostream> #include <fstream> #include <math.h> #include <string> using namespace std; float ran1(long *); #define IA 16807 #define IM 2147483647 #define AM (1.0/IM) #define …

Software Development c++ ios
Member Avatar for Schol-R-LEA
0
270
Member Avatar for Syrne

Hi there! So I'm working on my next assignment and it's all about implementing a few exceptions in order to get us familiar with the topic. I am tasked with implementing 3 very simple exceptions to my previous program. So far I have 2 out of 3 working fine with …

Software Development data-structure java
Member Avatar for JamesCherrill
0
199
Member Avatar for DragoDraco

Can someone please explain to me why I am getting errors with this? [CODE] /** This class stores data about a room. */ public class Room { private int walls; // Number of walls private int windows; // Number of windows private String ceiling; // Type of ceiling private String …

Software Development java
Member Avatar for JamesCherrill
0
126
Member Avatar for metronomu

A question regarding inheritance implementation. Let's say we have 2 classes: [CODE]class B { public: int x; // for the sake of argument it's public, don't stone me }; class D: public B { public: int x; // again x, i know ... stupid dilemma };[/CODE] Now, if you will …

Software Development c++ oop
Member Avatar for metronomu
0
138
Member Avatar for pseudorandom21

I have a form with a number of controls on it, and I had thought that the "Controls" property of the form instance contained all of the controls on the form as per the documentation. Actually it does, but now iterating over all of my controls becomes similar to iterating …

Software Development algorithm c c# c++
Member Avatar for darkagn
0
142
Member Avatar for cool_zephyr

Hello there..i'm trying to implement a tree in C#..the basic node structure is give below [code] struct node { public int _x; public int _y; public int _cost; public node _parent; public pos(int i, int j,int cost,pos parent) { _x = i; _y = j; _cost = cst; _parent = …

Software Development data-structure
Member Avatar for cool_zephyr
0
159
Member Avatar for gizmo7008

I just have a quick question, I tried to figure this out from my textbook but can't seem to find it. j = 5, i =7 Evaluate (++j == i) + 3 How does C evaluate the expression? To me, it just doesn't make sense. I'm not looking for the …

Software Development c
0
53
Member Avatar for coolbeanbob

Is it possible to have multiple input streams open at the same time? I know it takes a lot of time to open a file, and I am trying to be as efficient as possible. I really need to have two streams open at the same time. The data is …

Software Development c++ data-structure file-stream
Member Avatar for coolbeanbob
0
251
Member Avatar for jeevsmyd

Overload new and delete operator to manipulate objects of Student class.Class Student must contain data members like char * name,int roll_no,int branch etc.The overloaded new and delete operator must allocate and deallocate memory for the student class object and its data members. Here is my code. The problem is that …

Software Development c++
Member Avatar for jeevsmyd
0
409
Member Avatar for walid86

[CODE]Bitmap cropImg = new Bitmap(747, 591, System.Drawing.Imaging.PixelFormat.Format24bppRgb); cropImg.SetResolution(300, 300); //create a new graphics object from our image and set properties using (Graphics grPhoto = Graphics.FromImage(cropImg)) { grPhoto.CompositingMode = CompositingMode.SourceCopy; grPhoto.SmoothingMode = SmoothingMode.AntiAlias; grPhoto.InterpolationMode = InterpolationMode.HighQualityBicubic; grPhoto.PixelOffsetMode = PixelOffsetMode.HighQuality; //now do the crop // grPhoto.DrawImage(loadedImage1, new Rectangle(0, 0, pictureBox1.Width, pictureBox1.Height), imageBounds1.Location.X …

Software Development
Member Avatar for walid86
0
160
Member Avatar for cafegeo

Hello all. This program is supposed to maintain inventory for 5 warehouses with 3 items each warehouse. Each in a different city. You can place an order or send a shipment to each warehouse. When you place an order, if one warehouse does not have enough of the item it …

Software Development c++
Member Avatar for PrimePackster
0
159
Member Avatar for datdude07

Hi I'm stumped on how to make this program that I'm working on to output the information to the text file in a nice fashion instead of writing it in a funny way. I basically want this program to output the student record information line by line and organized. The …

Software Development assembly file-system
Member Avatar for datdude07
0
154
Member Avatar for Thermalnuke

Hi, there im a new member, I have a few questions. i am having a problem i am trying tp find words that are related together by one word for example "dous" Tremen[B]dous[/B],stupen[B]dous[/B] ect... I have my code working so that it goes through my text file and picks out …

Software Development c++ file-system
Member Avatar for Thermalnuke
0
137
Member Avatar for Nekawa

I've looked on the site and I've Google'd this for the past couple days to no avail. Either this is just completely obvious and I'm terrible at programming(I'm new, so this is possible). Anyway, the assignment is to accept two whole numbers that are 512 digits or less. Then we …

Software Development c
Member Avatar for Nekawa
0
2K
Member Avatar for bigredaltoid

[B]Edit2: I realized the title of the thread was misleading after the post was made..it's more like There's 6 lines per student..I need to make a list for each student. So it's 6X..where X is the number of students.[/B] Hi all.. I have a text file that looks like so: …

Software Development python
Member Avatar for bigredaltoid
0
159
Member Avatar for Smith5646

I have a menustrip with several levels of submenus as in below Client 1 [INDENT]Project 1[/INDENT] [INDENT][INDENT]Project 1 Task 1[/INDENT][/INDENT] [INDENT][INDENT]Project 1 Task 2[/INDENT][/INDENT] [INDENT]Project 2[/INDENT] [INDENT][INDENT]Project 2 Task 1[/INDENT][/INDENT] [INDENT][INDENT]Project 2 Task 2[/INDENT][/INDENT] Each entry is clickable, even if it has children. In the above example, I can select …

Software Development vb.net
Member Avatar for Smith5646
0
164
Member Avatar for skracer13

Hello everyone, I'm new to Java. I found this site and the members to have a lot of knowledge and was hoping I can get some assistance. I have written this 2D array code to find the lowest value in each row and return the values. "getLowestInRow" is the method …

Software Development java
Member Avatar for hfx642
0
163
Member Avatar for lcfjoertoft

First I tried getting a SQL query into an array, and then mail it. Made the data incomprehendable. So someone told me to use CSS to build a table format, filling it with the array. A LOT of hard work (since I had to learn css all the way from …

Software Development email vb.net
Member Avatar for Unhnd_Exception
0
930
Member Avatar for PM312

hi i am trying to accepte text in text box only numbers and capital alphabets in keypress event below code is not converting lower case to upper case [CODE]Private Sub Tbx_AcctCode_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Tbx_AcctCode.KeyPress Dim KeyAscii As Short KeyAscii = Asc(e.KeyChar) If KeyAscii >= …

Software Development vb.net
Member Avatar for PM312
0
547
Member Avatar for lgbagabuyo

[code] public class Book { String title; boolean borrowed; public Book(String bookTitle) { } public void borrowed() { } public void returned() { } public boolean isBorrowed() { } public String getTitle() { } public static void main(String[] arguments) { Book myBook = new Book("Da Vinci"); myBook.name = "The Da …

Software Development java
Member Avatar for lgbagabuyo
-1
2K
Member Avatar for HumanBeing86

// Linked list Hi... Below is the codes that I wrote so far... everything is fine but just abit headache on when trying to read the data from the file...and it give me a weird things... my output suppose is like this [CODE]============================================================== No Name/Site Location Weight 01 ThunderStone Russia …

Software Development c++ linked-list
Member Avatar for HumanBeing86
0
126
Member Avatar for regogo

Hi guys ive been working on this mini pokedex program. unfortunately im having a little problem. Im so sleepy right now and I think i need help. [CODE]/* Program Description: a mini pokedex */ import java.util.Scanner; public class Pokedex { public static void printOptions () { System.out.println(" POKEDEX ver 1.0 …

Software Development java
Member Avatar for hiddepolen
0
1K
Member Avatar for Liuhh00

Hey i am wondering if it is possible to have a switch statement in a function that is leading to another switch statement and another switch statement afterwards. Question. Write a program that will give the user the option to select a shape or a three dimensional object. The program …

Software Development c
Member Avatar for Liuhh00
0
1K
Member Avatar for UNDER-18 FG

Hi. I need to develop a C source code that accept all marks and counts the total percentage of the subject "STIV1013". And, based on the total percent obtained, I need to determine the grade acquired for the subject "STIV1013" based on the grade table given. Look below, for a …

Software Development c
Member Avatar for Adak
0
162
Member Avatar for Despairy

i wrote a program that needs to act like the SHELL in linux everytime the user enters a command the shell needs to get it and do the action by sending a fork child to do so now i read using FGETS and get a char array containing the command …

Software Development c
0
105
Member Avatar for jcAmats

I’m creating a program that displays random lines from a file. I have 8 lines on my text file and after displaying the last/8th random line… it displays [B][I]Segmentation fault[/I][/B] and then terminates the program. The program should display a message saying that there are no lines left to display. …

Software Development c++
Member Avatar for jcAmats
0
11K
Member Avatar for Octet

I am creating a database search and I am having a bit of issue when I want to return to my main menu. I have attempted to use loops with no success, could anyone suggest how I can do this? [code] #include <iostream> #include <fstream> #include <windows.h> #include <string> using …

Software Development c++
Member Avatar for Octet
0
303
Member Avatar for David321

I'm supposed to be making an inventory program with a logo. I can get the inventory part working fine in a jframe, and I can get the logo working fine in jpanel, but if I combine them it starts acting really weird. Every time I click a button, it generates …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
202
Member Avatar for Stefano Mtangoo

Hi, I need to concatanate lines based on regex. Lines to be concatanated are scattered. All lines begin with number$number$number$number$sentences. There is nothing to mark the end of sentence, only the beginning. Here is an example. I want to rewrite this one [CODE]2 $5$233$ check big cat if it have …

Software Development python regex
Member Avatar for Stefano Mtangoo
0
215
Member Avatar for Unsated

Hi everyone i have this simple banking program here and i was hoping someone could help me jazz it up.. Something simple like making it easier to use or making it look better. Just trying to go beyond what was asked for.. [CODE] import javax.swing.JOptionPane; class MiniLab5z { public static …

Software Development java java-swing
Member Avatar for JamesCherrill
0
168
Member Avatar for toldav

Any will help will appreciated. Every time I run my code my list city still visible at run time how do i make not to visible when I run my vb code. [CODE]lstCity.Visible = False[/CODE]

Software Development vb.net
Member Avatar for TechSupportGeek
0
168
Member Avatar for IcyFire

I have an assignment to make a craps game in c. The program i wrote runs but it always ends before it should. I think that the while loops in main have a problem but im not exactly sure wat the problem is because ive reviewed this code over and …

Software Development c gaming
Member Avatar for IcyFire
0
2K
Member Avatar for Octet

I am creating a MAC Database for my home network which shall contain a list of names of those on the network and allow me to quickly search for people when I get a warning about a user. I am using switch statements to go to each main section (sorry, …

Software Development c++
Member Avatar for Octet
0
193
Member Avatar for TurkAlush

Hey Can someone explain me how I can make a simple calculator, which can plus to numbers together.. And later make the program ask if user wants to multiply or divide..?

Software Development
Member Avatar for TurkAlush
0
1K
Member Avatar for dre-logics

I use Visual Basic 2008 with Mysql I have a table article with the following data : Articlenb - Productcode - amount 1 - XXL - 1 2 - 12 - 1 3 - 10 - 1 4 - 1.5 - 1 5 - 7 - 1 6 - 4 …

Software Development vb.net visual-basic
Member Avatar for adam_k
0
193
Member Avatar for ekin5683

hye..its kinda easy..but i still cant solve it.. [QUOTE]1.Write a program that has an array of at least 10 string objects that hold student’s ids and names, you may make-up your own strings or use the following: “1000614921, Abdulkadir Musa Jibrin” “1000717859, Abdulwahab Ali Esmail Al-Nawah” “1000716597, Ahmed Ebrahim Mohammed …

Software Development c++ seo
Member Avatar for ekin5683
0
2K
Member Avatar for Joey_Brown

Hello; Is there a way in java to create a flip card effect. I have two pictures, that are to form a double sided card. Ive come with a way to snapshot them in different angles and finally iterate through them in a loop. Its not very good :) Is …

Software Development java
Member Avatar for hiddepolen
0
111
Member Avatar for vammy

Hi Guys, I want to enforce validation rule in create table statement for a coloumn. im using vb.net as front end and access as back end. could u please post a sample code here.help would b highly appreciated.

Software Development vb.net
Member Avatar for vammy
0
91
Member Avatar for vammy

Hi friends, i want to restrict -ve values entering into access database table.im using vb.net as front end... please help..

Software Development vb.net
Member Avatar for vammy
0
120
Member Avatar for UNDER-18 FG

Hi everyone. My assignment this time requires me to: [B]1.[/B] List down the marks obtained for each 5 Quizzes. [B]2.[/B] Choose the best 2 highest marks out of the 5 Quizzes. [B]3.[/B] To make the "best 2 highest marks" becomes the ultimate Quizzes total mark which has a 10% carrying …

Software Development c
Member Avatar for WaltP
0
89
Member Avatar for Dakot

hello , whet i compile , i get these errors , but i dont know where i mistaked g++ -Wall -o "untitled" "untitled.cpp" (in directory: /home/btwnix/Documents/Projects) untitled.cpp: In function ‘std::string bunnynames(std::string)’: untitled.cpp:14:14: error: no matching function for call to ‘tolower(std::string&)’ untitled.cpp:14:14: note: candidates are: /usr/include/ctype.h:116:12: note: int tolower(int) /usr/include/ctype.h:116:12: note: …

Software Development c c# c++
0
306
Member Avatar for mkbear

Hey so Im a beginner, and I need some help. My professor gave us this code: [CODE] def average(list): total = 0.0 for number in list: total += number return total / len(list) [/CODE] Then, he asked us to rewrite that program so that it uses a while loop instead. …

Software Development programming-construct python
Member Avatar for askandstudy
0
205
Member Avatar for MrEARTHSHAcKER

Hi, What's wrong with this code: [CODE] //Comments explain what I check int Array[9]={1,2,3,4,5,6,7,8,9}; int Integer=0; int i=8,n=0; for(int x=0;x<9;x++) cout<<"array="<<Array[x]<<endl; //Are all members ok? for(int exp=0;i>=0;i--){ Integer+=Array[i]*pow(10,exp); cout<<"Integer1="<<Integer<<endl; //Is Integer being summed fine? exp++; } cout<<"Integer="<<Integer<<endl; [/CODE] Program's function is to create an integer from array ( for example: …

Software Development c++
Member Avatar for mazzica1
0
118

The End.