199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pawan_sharma777

i make this project what i unable to use file handling[CODE] #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<fstream.h> #include<ctype.h> #include<bios.h> #include<ctype.h> int menu(int,char a[25],char b[25],char c[25],char d[25],char e[25],char sl1[2],char sl2[2],char title[40],char under[2]); void lbyl(char a[50]); void main_menu(); void student_menu(); void mark_menu(); int records=0; void lbyl(char a[50]) { int l,i; l=strlen(a); …

Member Avatar for nbaztec
0
155
Member Avatar for emko

Hi, I would like to get some suggestions on how to change this program from array to vectors. This program reads an ASCII input file and outputs the character frequency into a text file. I got it to work with the arrays, but I can't figure out where to do …

Member Avatar for emko
0
153
Member Avatar for harpay

Write a C++ program that creates an invoice for a small fruit vendor named “Bob’s Fruits”. The fruit vendor sells three kinds of fruit: oranges, apples, and bananas. Oranges cost .90 each, apples cost .65 each and bananas cost .70 each. For each type of fruit the program should ask …

Member Avatar for nbaztec
0
582
Member Avatar for mamdooh26

Hi every one I am facing a problem in deleting items from a list <<< Could any help me !!! [CODE]b=['a', 'b', 'r', 'g'] for c in b: b.remove(c) [/CODE] but when I check b the result is ['b', 'g'] how can I delet all items using for loop thanks

Member Avatar for cghtkh
0
85
Member Avatar for Naveed_786

Dear All, How can i get Crystal report between two dates from SQL SERVER Database. We will enter the dates from One column. Any help will be apriciated.

Member Avatar for bhagawatshinde
0
104
Member Avatar for kk33

Hi all, here is my code to find the LoadlibraryA address from an exe, I want to write the return value to text file , but I cant figure out how to do that.Any help would be greatly appreciated. [CODE] #include <windows.h> #include <tlhelp32.h> #include <iostream> #include <conio.h> using namespace …

Member Avatar for kk33
0
227
Member Avatar for pawan_sharma777

i use microsoft visual c++ but i'm unable to execute my graphics program in it is there any solution to over come it???????????????? and can any one have an project of student management system ????????????

Member Avatar for pawan_sharma777
0
98
Member Avatar for kirviepalencia

ca anyone help me... i am having a problem of my c++ code.. im still a begineer in c++ and i want to creat a program that searches and input an ID number and reading the whole line..this is my sample txtfile Record2.txt 101,Kirviepalencia,500.00 102,ALmond Olilang,700.00 103,Krishna Laguardia,200.00 104,Carl Kabalyero.300.00 …

Member Avatar for kirviepalencia
0
162
Member Avatar for daudiam

Forward referencing is allowed during declarations when the undeclared variable is used in the LHS of an expression, but not if its in the RHS. Therefore, the following won't work : [CODE]class A { int a=h; int h; }[/CODE] But the following code works : [CODE]class A { int a=this.h; …

Member Avatar for daudiam
0
227
Member Avatar for daudiam

Is it true that during autoboxing, the type.valueOf() method is called (which creates a new object only if another with the same primitive constant is not in the intern list. This applies to cases where interning is allowed. Otherwise, it creates a new object using new() ). Is this right …

Member Avatar for daudiam
0
141
Member Avatar for PDB1982

I can't seem to get my counting loop to stop if m OR n are <=500. The loop stops only when m hits 499 right now, but I need it to cancel if n is 499. I have tried using a break statement, but I'm not sure what else to …

Member Avatar for jon.kiparsky
0
153
Member Avatar for dennishall

Hi All: I am trying to load an image into a div using AJAX. Instead on loading the image, I get �PNG  as the result in the div. Does anyone know how to load an image into a div? Best Regards, dennishall

Member Avatar for hielo
0
993
Member Avatar for kumar_k

Hi, I want to convert a string to numbers ... i tried a lot of codes.. iam a beginner... Kindly help... Ex: a=1 b=2 c=3 d=4 e=5 f=6 g=7 h=8 i=9 j=10 input value -->abc output value --> 123 input value -->abcj output value -->12310 I mean i want to …

Member Avatar for kumar_k
0
94
Member Avatar for aviavyne

Hello, I got a new problem. Our teacher asked us to create a menu-driven program which will make all types of conversions ([url]http://classroom.sdmesa.edu/vtrinh/pp4.html[/url]). This program must be able to do conversions back and forth (like inches to centimeters, and centimeters to inches). Below I started the assignment and so far …

Member Avatar for prvnkmr449
0
402
Member Avatar for Protoroll

In my tree class the user can set the fall color of whatever tree they choose, but it's not taking the colors I type in when I test it. [CODE]import java.awt.Color; public class Tree { private String treeSpecies; private int treePrice; private Color currentColor; private Color fallColor; private int treeAge; …

Member Avatar for coil
0
129
Member Avatar for WHITE_BOLT

Help me with this project?: You will create a login system that allows a user to access his/her account. A successful login is defined when both the login and password match. Once a successful login occurs, the program should welcome the user by using their Employee ID. Eg. Welcome Employee …

Member Avatar for Adak
0
119
Member Avatar for bmos31

I'm having some problems finding memory management errors in this code. The only one I see as a possible error is the deleting the dereferenced pointer, but I'm not even sure if thats correct. Some of the errors should include memory leaks, memory deletion when still in use, two objects …

Member Avatar for bmos31
0
205
Member Avatar for harpay

please help me how i would write these two programs. im learning c++ and am having difficulties, if anyone can help i will greatly appreciate it. Write a C++ program that displays the results of the expressions 3.0 *5.0, 7.1 * 8.3 – 2.2, and 3.2 / (6.1 * 5). …

Member Avatar for harpay
0
452
Member Avatar for durpderp

Say I have a class: [CODE]class foo { public: foo(); int len{return 1}; }; [/CODE] Then in main I have a class pointer: [CODE] foo *var[5]; [/CODE] My question is when do class pointers get initialized? Or do they not? How would one initialize them?

Member Avatar for durpderp
0
110
Member Avatar for Empireryan

Hey guys, I think I have a pretty simple fix here, I just need somebody to point out my error. I'm getting a seg fault after writing to an array of char. I need my function to run through the array and find pairs. If every char in the array …

Member Avatar for Empireryan
0
189
Member Avatar for CalPolyGrad

Aloha, I'm new to database design and have a basic question. I'm writing a customer database. All of the customers can have several contacts. I've created a Customer table, and also a Contacts table. The contacts table stores name, email, phone number, title, etc. However, all of the customers can …

Member Avatar for griswolf
0
109
Member Avatar for Stazloz

Hi! Having some major issues my homework assignment. I have to end this while loop when detecting two consecutive newline escape sequences in a row. This is the word problem: Write a program that gives and takes advice on program writing. The program starts by writing a piece of advice …

Member Avatar for Stazloz
0
1K
Member Avatar for phpDave

Hi, I'm trying to build a site that lets users contact each other through the site. Like an email system in the site only. I'm just looking for some keywords to do research on my own. Thanks!

Member Avatar for phpDave
0
71
Member Avatar for danijela123

hi there, im using mfc when i close my dialog box i want to disable mouse move events, so any idea how to do that? i want to do that because i have problems, mouse move event happen before closing dialog box and i dont want that. have no idea …

Member Avatar for Ancient Dragon
0
265
Member Avatar for Ami_m24

Hi i'm Browsing a file, then showing the contents of file in tree control, i just want that if user wants to browse again a file, then in tree control previous items should be removed and new file items shouls present only can any1 help me, how to do that …

Member Avatar for Ancient Dragon
0
130
Member Avatar for widapol

Hi all, I'm learning socket programming in Unix. My jobs is sending some frames over TCP/IP Client-Server model, ex Hello, Ack, Bye packets. Each frames have a ID field, which helps we know which packet the server/client received. For example, 1 for Hello, 2 for Ack and 3 for Bye. …

Member Avatar for widapol
0
634
Member Avatar for tommyz4

Hi, I spent a lot of hours, why this code is wrong. This code compiles good, but execution causes errors (during sorting objects). Environment: (MinGW WinXP or VS 2008) [code] #include <iostream> #include <vector> #include <algorithm> using namespace std; class Edge1 { int v_,w_,weight_; public: Edge1(int v, int w, double …

Member Avatar for Ancient Dragon
0
268
Member Avatar for BzzBee

hi, I am trying to upload picture using PHP. I made this title because if the thread contains title with tough problem, no one even open thread and try to help. Actualy i have problem in picture uploading, but critic part is that my code is at one site and …

Member Avatar for accountholder
0
155
Member Avatar for iwanttolearnc

what my code does is it waits for the user to type in "led" and performs the blink function. what i am trying to do is introduce the letter 'p' as a command to stop the blinking. what happens is that blink is only executed once. [CODE]if (!(strcmp(userinput, led))){ //condition …

Member Avatar for iwanttolearnc
0
114
Member Avatar for frogster

Using this code:[CODE] class box { public: int x; int y; XMMATRIX world; ConstantBuffer cb; cb.mWorld = XMMatrixTranspose( world ); box(int a, int b){x=a;y=b;} };[/CODE] Gives error on "cb"(This declaration has no storage type or class or type specifier. What should i do about this? Is it not possible to …

Member Avatar for StuXYZ
0
122
Member Avatar for muze

hello guys...if it is simple question plz excuse me... [B]1)[/B] I have a var associated with ListBox (you know adding var to the control in MFC). Now I can access it in one class [B]"MyProgDlg.cpp"[/B] but can't access it in another class [B]"classA.cpp"[/B], why is this so [B]2)[/B] how do …

Member Avatar for Ancient Dragon
0
137
Member Avatar for flyingcurry

We have an assignment to write a program finding the nth Fibonacci number. On the web, there are some standard mathematical equations for this, but that would just defeat the purpose of this assignment if I use those formulas. I have my current code down here(with some sketchy back up …

Member Avatar for coil
0
1K
Member Avatar for rt0026

The recently made a change to my code that made it work correctly. I would like someone to help me understand why it works, but it did not work before. [B]Before (not working correctly)[/B] total = (amountPaid - purchaseAmount) * 100; totalInt = total //changes from float to int totalDollars …

Member Avatar for StuXYZ
0
184
Member Avatar for Rez11

Is it possible to use a string with classes? Even if you are using a class specification file and implementation file? I need to have 3 member variables that need to store a string. Or is an array of characters a better fit when it comes to classes?

Member Avatar for Rez11
0
170
Member Avatar for ryan-t

Hi, I'm pretty sure this would be something I'd need javascript for. What i want to do is to recognize when a user presses the enter key while active on a text area and to insert a new line

Member Avatar for Airshow
0
163
Member Avatar for Indirect

Hey. So i was working on a shopping cart that didn't focus much on having a database to support the information. I have a snippet of code that checks to make sure there is no dublicates. if there is it just changes the quantity to the right one. but if …

Member Avatar for Indirect
0
87
Member Avatar for vello

[CODE]a.cpp: In function ‘int main()’: a.cpp:39: error: no matching function for call to ‘find(int&, int)’ [/CODE] [CODE]#include <iostream> #include <fstream> using namespace std; int minutes, seconds; char temp; int array_l; bool* sees; int* a; int saade; int main() { ifstream sisf("raadio.sis"); ofstream valf("raadio.val"); /* * How many songs? */ sisf …

Member Avatar for arkoenig
0
202
Member Avatar for blknmld69

[CODE] import javax.swing.*; // Needed for swing classes import java.awt.event.*; // Needed for the action listener import java.io.*; // Needed for the file and IOException import java.util.Scanner; // Needed for the scanner class import java.util.List; // Needed for the arraylist import java.util.Arrays; // Needed for the arraylict class /** This …

Member Avatar for peter_budo
0
231
Member Avatar for danalovesc

Hi all, i'm new to Templates and when i tried to implement templates methods which needs to use a map (which is a member in private), the map can only do 3 things: insert, swap, and operator =. and i don't get the full functionality of map.. Here's the code: …

Member Avatar for danalovesc
0
110
Member Avatar for nick3592

Hi i have a membership system on my site and i noticed a problem that is on my site. The user can change the a cookie information which holds the users id, after that the user can be logged in as a different user by changing the id, i was …

Member Avatar for brandonrunyon
0
256
Member Avatar for kerp

Hi I'm currently writing an Othello game using the Windows API. I have 3 classes in my program, the first class is simply called "Othello" and it handles almost everything. I also have a class called Field that's used to control which fields are black which are white etc. My …

Member Avatar for kerp
0
1K
Member Avatar for plasticfood

particularly from a txt file. for example if the file reads "name ###-####-#### address" all in one single line. how do i put all three items in three separate variables and print them?

Member Avatar for CrazyDieter
0
132
Member Avatar for menacingsprite

So I'm trying to build this program for class and the teacher didn't really show us how to do it and is leaving it up to us to figure it out. The directions are as follows: The program will input the divers name, the scores of the 5 judges, and …

Member Avatar for CrazyDieter
0
205
Member Avatar for bdv

i have a problem,,here in turbo c i don't know if what kind of loop i will use can you please help me with this problem?? "write a program that accepts ordinary number and outputs,the equivalent in roman numerals" 1------I 5------V 10-----X 50-----L 100----C 500----D 1000---M 1500---MD Until 3000 Only

Member Avatar for CrazyDieter
0
84
Member Avatar for Premsathishbe

hi every body, I came across a problem basedcoomand prompt , I need to concert my fiile to another format to support my project but actaully i got an error with that, C:\Documents and Setting\Premsathish\"[B][COLOR="Red"]NAtive2ascii -encoding utf-8 time.txt output destinationfile.tc\xt[/COLOR][/B]" but i am getting 2 errors Native2ascii is not recogonised …

Member Avatar for agugglez
0
102
Member Avatar for DoEds

Can anyone give me some ideas on how to find the middle value between 3 numbers.? I really dont know how to start... I know how find minimum and maximum but finding the Middle value is kinda hard for me... For those C Wizards give me some idea advice please?., …

Member Avatar for krutarth
0
3K
Member Avatar for alenturuskovic
Member Avatar for Wolfgan
0
177
Member Avatar for shruti1210

Is the following code snippet show valid inheritance? [code]class A { int v; final String sayHello() { return "Hello"; } } class B extends A { public int sayHello(int a) { return 3 + a; } }[/code]

Member Avatar for JamesCherrill
0
80
Member Avatar for Jalwes

I am very new to JavaScript. In our class we were assigned a project to create a Web page with 5 text boxes, each with a value attribute of zero. When the user changes the values, it is supposed to call a caclAvg() function. How do I pass 5 values …

Member Avatar for P0lT10n
0
101
Member Avatar for gauri_agr

Hi all, I am able to run perfectly the following [CODE]<li><a href="javascript:ajaxpage('login.php', 'ajax');">Login</a></li>[/CODE] But not the following [CODE]echo "Welcome Guest!<br><a href=javascript:ajaxpage('login.php', 'ajax');>"[/CODE] I removed the " around the javascript:ajaxpage('login.php'); as it was giving me syntax error. But I am unable to cal login .php upon clicking Login. I tried various …

Member Avatar for hielo
0
99

The End.