49,757 Topics

Member Avatar for
Member Avatar for modyutd

hey am doing an assignment i need your help cause i reached something and i can't solve i have to make these stuff that i did to inheritance and polymorphism. the assignment is about I am required to design an Advisory System which models the academic advisor and advisee system …

0
47
Member Avatar for pinsickle

Hello, I am working on a merge sort but I keep getting the following error : ds07(6443) malloc: *** error for object 0x100100098: incorrect checksum for freed object - object was probably modified after being freed. I don't see what my error is with the creation and deletion of my …

Member Avatar for mitrmkar
0
81
Member Avatar for pinknblu

It provides the average grade of an student. Assignment: How many students are in the class ? 3 Enter five test scores for student number 1 80 90 70 90 80 The average for student number 1 is 85 Enter five test scores for student number 2 100 60 60 …

Member Avatar for pinknblu
0
184
Member Avatar for robski

Hi. I need some help with some code i'm writing. I'm new to c++ and to be honest i feel like i have tried everything but cant get this bit working. I've included the small part of the program i have so far. I still have a lot to do …

Member Avatar for robski
0
89
Member Avatar for tarheelfan_08

Hey guys, I have been trying to do some stuff outside of my class to learn a bit more and I have come across something called a vector. And I read online that its similar to an array! But I am not sure how to do this. I have been …

Member Avatar for mitrmkar
0
380
Member Avatar for juuuh333

Hello, I have Visual C++ 2008 in a Windows 7. I wanna get the value from a textbox to an int, after that I wanna make some operations with the int like + or - or * or / and I want to write it to an another textbox. And …

Member Avatar for juuuh333
0
3K
Member Avatar for jmoran19

I'm trying to write a program that builds a full binary tree from an array containing an even number of sequential numbers. I know the memory allocation part, I'm just having trouble with how to pass the integers to act as array positions. This is what I've come up with …

Member Avatar for rydhima
0
145
Member Avatar for juuuh333

Hello, I wanna create a string witch gets the value of a textbox. How can I make it ? THX for your replays :D

Member Avatar for juuuh333
0
602
Member Avatar for greedydeepak
Member Avatar for karanjaswal

Suppose I had a network of switches, or more generally, Nodes. Each Node has a method getNeighbors(), which returns a set of adjacent Nodes in the network. Write a function findNeighborhood(Node, n) which given a Node and int n returns all nodes no more than n hops away... I want …

Member Avatar for WaltP
-2
53
Member Avatar for LevyDee

So I finally decided to take on some Windows Programming, and everything is going fine, except this: Edit: using this tutorial [url]http://bobobobo.wordpress.com/2008/01/31/how-to-create-a-basic-window-in-c/[/url] [code] #include <windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nShowCmd) { WNDCLASS myWindow; myWindow.cbClsExtra = 0; myWindow.cbWndExtra = 0; myWindow.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH); myWindow.hCursor = LoadCursor(NULL, …

Member Avatar for nithy.sweety
0
516
Member Avatar for GooeyG

Whenever i type in code, Visual Studio puts an dot or a tab(->) in between code.I tried uninstalling and reinstalling Visual Studio, but that didn't do anything.I'm not quite sure what i did and i can't find a way to undo it. Thanks! P.s.-I tried to copy and paste the …

Member Avatar for GooeyG
0
84
Member Avatar for casjackkwok2001

HI ALL. I'M LOOKING FOR A SOLUTION FOR MY CODE. I WANT TO FIND THE [B]HIGHEST CHARGE[/B] AFTER AN ARRAY HAS SHOWN UP(SPEAKER'S FEE). WHAT CAN I DO?? THANKS HERE'S MY CODE: [CODE]#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std; struct Bureau { char name[50]; // Name char phoneNum[50]; …

Member Avatar for WaltP
0
282
Member Avatar for fyp

so far I could manage to create OpenFileDialog and select the txt file. after that ,How could I display the contect of selected txt file into TextBox? [CODE] ************************************************************* private: virtual System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { System::Windows::Forms::DialogResult OK = openFileDialog1->ShowDialog(); } private: System::Void openFileDialog1_FileOk(System::Object^ sender, System::ComponentModel::CancelEventArgs^ e) { ???????????????????????????????? …

Member Avatar for fyp
0
647
Member Avatar for hurricane123

Why should a function that accepts an array as an argument and process that array,also accept an argument specifying the array's size?

Member Avatar for WaltP
0
60
Member Avatar for SCoder1

How would I loop a switch statement until one of the valid options are entered. would this work? example: [code] // lets just say all the necessary starting code is already here.... int choice, number; do { cout<<"please enter a number from 1-3\n"; cin>>number; switch(number) { case 1: break; blah …

Member Avatar for WaltP
0
92
Member Avatar for f0rd

Hi everybody, I'm trying to develop an application for personal use, that will just make my life at work a lot easier and save me from doing a repetitive process by hand, when I know it could be done with [B][I]relative [/I][/B] ease in C++. Anyway, I want to be …

Member Avatar for WaltP
0
281
Member Avatar for dzruptz

well so i've made a simple wrapper class to facilitate uploading a text file to my server.....and i can't seem to find the problem.....would anyone be kind enough to see where i did wrong? HTTPPost wrapper class: [CODE=c++]#ifndef _HTTP_POSTER_ #define _HTTP_POSTER_ #include <windows.h> #include <wininet.h> #include <tchar.h> #include <fstream> #include …

Member Avatar for dzruptz
0
89
Member Avatar for athlon32

Hello Daniweb! I'm coding a small application and I've hit a road block. I've been using C++ for almost two years now, but to be honest, I hardly use dynamic polymorphism (i prefer static), and so with great embarrassment, I come here to ask this: My code is basically structured …

Member Avatar for jonsca
0
134
Member Avatar for tinkeydo

The following is an excerpt from a complete program that runs without any errors. It has 2 file dependencies which it uses to access and store information. The program, in its entirety, displays a menu with 4 options the user can choose from. [LIST=1] [*]View Characters [*]View Items [*]Add Character …

Member Avatar for tinkeydo
0
178
Member Avatar for sbdblyss

Hello, I am currently working on a project that requires me to write write a program that adds, subtracts, multiplies and evaluates polynomials. I am required to use linked lists of nodes. I am stuck on writing the code to input the polynomial. I understand how I will input each …

Member Avatar for Lerner
0
111
Member Avatar for yapkm01

I know that this book is for C++ Primer 3rd Edition (Stanley Lippmann) but can this be used for C++ Primer 4th Edition. There is no C++ Primer answer book for the 4th Edition. Still comtemplating if i should get it. :?:

Member Avatar for Spartan-S63
0
143
Member Avatar for Jeff_5_7

I am writing a program for class that inputs two of chars values no larger than 20. Then it adds these to Values together and prints the sum. Say this is my input Value one 123 Value two 456. This is how i input it into program for keyboard. 3 …

Member Avatar for Luckychap
0
91
Member Avatar for Roo0ond

how repair the faild? [CODE] #include<iostream> using namespace std; #include<ctime> int rolldice(void) int main() { enum status {continuo,won,lost} int sum , mypoint; status gamestate; srand(tim(0)) sum=rolldice(); switch (sum) {case 7; case 11; gamestate=won; break; case 2; case 3; case 12; gamestate=lost; break; default; gamestate=continuo; mypoint=sum; cout<<"enter:"<<endl; break; while (gamestate==continuo){ sum=rolldice(); …

Member Avatar for jonsca
0
110
Member Avatar for restrictment

Well, I had my program running perfectly, and I was quite pleased with the results. However, after I made the text file a bit big, the program just stopped working all together. (255 lines of text) so I 'suppose' it is a bandwidth problem..however 255 lines of text is like …

Member Avatar for david.k
0
172
Member Avatar for PDB1982

I'm trying to create an overload of the "+" within my program to add a private constant value to an already establish polynomial, but the last portion of my code comes out with the following error: [code] Error 1 error C2677: binary '+=' : no global operator found which takes …

Member Avatar for david.k
0
176
Member Avatar for ccaatty

This is just out of curiosity! Does anyone know what is the maximum number of characters that a line of code can have? EDIT: Added more details. Is it possibly possible to make two lines become one? .... This seems pretty odd, I dont know how to explain it, but …

Member Avatar for cassandy
0
99
Member Avatar for som3aman

Hey guys, Im trying to make a program that guesses the name of an animal in the users head by asking him or her a bunch of questions. The questions, answers, and line number for yes/no are inlcuded in the file animals.txt as follows: Q Does it have feathers? 2 …

Member Avatar for Lerner
0
2K
Member Avatar for cpp.coder

[CODE]# include <stdio.h> int abc(int & x) { return x; } int main() { int y = 0; abc (y++); // error here return 0; }[/CODE] error is error C2664: 'abc' : cannot convert parameter 1 from 'int' to 'int &' But if i call the same function as abc …

Member Avatar for cpp.coder
0
194
Member Avatar for gopi17

okay i need some help with this...i'm creating a graph program..the problem is the linked has to be user specified...i manage to create a linked list..i don't know how to create another one...its some sort like this : 0 1 2 0 - - > created this 1 - - …

0
63

The End.