51,593 Topics

Member Avatar for
Member Avatar for restrictment

Hello, I need help with this problem I came across. What I have is this: [code] char answers[5][4] = {{'1','2','3','4'},{'10','0','3','0'},{'1','0','0','0'},{'1','2','3','4'},{'1','0','0','4'}}; [/code] However, this code does [B]not[/B] accept 2 digits..only one. This irks me, and I was wondering if there was a way to add 2 digits. [COLOR="Red"]Note: I am going …

Member Avatar for jonsca
0
115
Member Avatar for stockton

I need to produce a program that would process/read a magnetic stripe card within a windows kiosk environment and would prefer doing this in C or C++. Could someone suggest pointers/recommendations about where one should start?

Member Avatar for Talguy
0
155
Member Avatar for Abdul wahid

hi can anyone help me, how can i exit an infinite loop?? i made a clock and i want that by pressing any key or ESC the prog shud exit here is the code ==============================================[CODE] #include<iostream.h> #include<stdlib.h> #include<conio.h> void display() { long int i,j; for(i=0;i<15000;i++) { for(j=0;j<15000;j++); } } void …

Member Avatar for WaltP
0
134
Member Avatar for grib

Had a moment to sit down and plow through a chapter, and as usual, wound up stuck. My compiler is giving me a string of [inlinecode]undefined reference to SALES::[all my function names][/inlinecode] in my main function. It's entirely possible that there are problems within the function definitions, but right now …

Member Avatar for grib
0
270
Member Avatar for MrJNV

Hi. I have this assignment and have absolutely hit a wall here. I will give the assignment details, then say what the issue is: Consider a collection of songs in an MP3 library where each song is characterized by artistName, songTitle, album, playTime (in seconds), musicCategory, and albumProducer – hence, …

Member Avatar for jonsca
0
157
Member Avatar for jolianne

hi can you help me make a program that convert decimal to binary,octal & hexadecimal, binary to decimal, octal & hexa, octal to decimal, binary & hexa and hexa to decimal, binary & octal? That's our project in logic design. thanks in advance...

Member Avatar for mrnutty
0
77
Member Avatar for TotoTitus

Hello everyone, i'm fresh new here, and i already have a question regarding...well, C#. I've made a Forms Application in which the user submits an image (bmp,png,jpg or gif), and the image suffers some byte-level modifications (obviously, i'm using the LockBits() method). Now, after the modifications are done, the user …

Member Avatar for TotoTitus
0
10K
Member Avatar for ali zeeshan

write a program that prompts the user to input three number.the program should then output the numbers in ascending order.

Member Avatar for muzamal
0
99
Member Avatar for 9122080

The main programm is to permit input of a text of arbitrary length,the number os special frequencies of vowels must be counted. Output: Frequency of each english vowel(aeiou) ignoring the cases(i.e case insensitive) ignoring special vowels in other languages,depending on the following occurences: vowels in monosyllabic words vowels in two-syllable …

Member Avatar for VernonDozier
-1
115
Member Avatar for StaticX

Hi i am wondering if its possible to do the following,say i have 2 integer pointers containing numbers,and i want to add them together to a third integer pointer,is this possible?

Member Avatar for necrolin
0
106
Member Avatar for suman holani

Hi , I am writting an c++ boost shared memory application. The string/char class works fine . But the allocation to int phases some problem. It works fine for a while bt suddenly shared memory crashes. Unable to access it. here is a small snippet. we have to create a …

0
60
Member Avatar for sanjay kothari

It is possible to run our visual studio c++ application in Syambain OS ? If Possible then How to do? Syambain Support VC++ or Not ? thanks.

0
46
Member Avatar for tinhdau_noinao

[B]Hi all,i'm a new member.[/B] first,good luck for all,and then can anybody help me ? "how to find all path between two vertex in graph?" please give me some pseu,or some code(if possible) hey,thanks a lot.:idea:

Member Avatar for tinhdau_noinao
0
65
Member Avatar for Spiderpig085

how do i get a function to write to a file for me?? im getting the error error: invalid use of void expression i want to save my tic tac game board to this file in order to save it..... am i going the right way about it?? [code] if(save_or_not …

Member Avatar for Ancient Dragon
0
105
Member Avatar for Dewey1040

Ok im creating a program to make a database of people associated with a university, these people are called universitypeople, i have another file universitydatabase which stores all these people and will edit their information... well im having these errors when i type make... the errors could be class based …

Member Avatar for jonsca
0
119
Member Avatar for basedon

First off, I'm new to C++. I'm taking an intro class at university and have discovered something odd after installing Visual Basic 2008 Express on my laptop. Here's what I'm doing: New Project --> Win 32 Console --> Empty --> Add New item --> C++ File In my new C++ …

Member Avatar for jonsca
0
194
Member Avatar for discovery-power

Hi All, I am learning to write c++ code, all is going well so far, I am currently compiling my applications with the g++ command in terminal, this creates my executable file no problems however at the moment I can only start my applications from terminal using ./Whatever. What do …

Member Avatar for discovery-power
0
114
Member Avatar for kirennian

Current setup - One single core graphics device, Two monitors. As the title would suggest, I'm currently attempting to create an application in c++/DirectX which supports a theoretically uncapped limit on the number of full screen view points in the program. I'm utilising swap chains for each display and worthy …

0
63
Member Avatar for Stefano Mtangoo

Please help me to setup my development enviroment on Mandriva 2010. I used to MINGW and Codeblocks then Codelite. So I would be happy to have some IDE full bundled with GCC. I have googled but nope, nothing comes. Iam posting at codeblocks forum too :)

Member Avatar for ItecKid
0
102
Member Avatar for tkud

Hi everyone, I am beginning to find the later chapters of the book understandable. My problem now is this , When I compile the following code, the MDI child would not be created .. why? Please,any help with this and my other post on my edit control would be appreciated!! …

0
57
Member Avatar for Happy Family

Hi every one. it is my solution. if it is false, reply. using Turbo C [CODE]#include<iostream.h> #include<stdio.h> #include<conio.h> struct Date { int y; int m; int d; void subdates(Date, Date); long int calculate_date( Date); long int setvalue(int, int , int); }; Date t; void main() { clrscr(); Date e,d; cout<<endl<<"first …

Member Avatar for Dave Sinkula
-1
96
Member Avatar for alizee67

Hey guys! I have an assignment for Tuesday. The problem is: Write a program, getting n (odd, n>=1 && n<=15) from the user and prints this shape: For n=3 [B][URL="http://i50.tinypic.com/25ria7c.jpg"]PLZ Click here to see the image[/URL].[/B] I wrote this code, but I don't know what to do with [B]line #13[/B]. …

Member Avatar for VernonDozier
0
104
Member Avatar for CoderRyne

Hey there, I am new to DaniWeb. This site is great! I would really appreciate it if someone would answer a question regarding three errors that this code generates. I have tried for a long time to make this text-based C++ RPG work. I got it down to just three …

Member Avatar for Bench
0
210
Member Avatar for Aprentchacker

I am working with the above files and have precompiled MyClass header to an object file (MyClass.o). Now if I add this precompiled header to my project and try compiling the project I get errors i.e. [Linker error] undefined reference to MyClass::<all member functions>. I'm using Dev-c++ ver. 4.9.9.2 IDE …

Member Avatar for Aprentchacker
-1
105
Member Avatar for manefa3

hallo everyone. please help me. i will make search about lexical analysis in c++ language . useing c++ cods and ant subject about lexical analysis...pleas help me.. thanks alot..

Member Avatar for manefa3
0
72
Member Avatar for octavia

Hi all fri, I got some problems in my simple searching program - what i want to do is to search one or more character ('needle') from the string 'haystack' . The function " int stripos(char *haystack,char *needle,int offset)" should return -1 when the character was not found; if found …

Member Avatar for mrnutty
0
182
Member Avatar for Eracobengo

hey member... i wanna get icon i like when build my c++ project together... how do that ..plz

0
46
Member Avatar for merturk

how can ı sort a student list from a text file like StudentList.txt according to students' surname and id number.can ypu help me?

Member Avatar for merturk
0
119
Member Avatar for enterhellozia

is it possible to have a generic stack which works for all the primitive and non primitive data types???? Sir this is very serious question because this is confusing me a lot look at the code of push method of the integer stack [CODE] void Stack::push(int number) { Node* newNode=new …

Member Avatar for Narue
0
134
Member Avatar for BobRoss

Does anyone know why getch() would fail upon starting a second iteration in a while loop? By fail I mean that I have to press the ENTER key after a keyboard character is pressed to continue. So in effect it is functioning like getchar() where you have to press enter …

Member Avatar for alvinwong
0
180
Member Avatar for DarthPJB

If anyone saw my last wonderfully perplexing post I've almost finished my binary-conversion lib. However while writing it I've come across a couple of simple questions that google doesn't seem to want to answer for me. Thus I once again find myself pulling my hair out over something trivial. So …

Member Avatar for DarthPJB
0
109
Member Avatar for daeuse

I can't seem to figure out what I am doing wrong here. I can either get my loop to play indefinitely, not replay at all, or not initiate in the begging. I'm very new to programming & would appreciated any help. Code: [CODE] int main() { int weight ; // …

Member Avatar for daeuse
0
215
Member Avatar for kratoz

Hello, First of all, im a total newbie at c++ so please , dont be amused. My question is, how can i make a application that needs a user and pass. from a already existing website in order to continue?

0
44
Member Avatar for mdawaina

hi guys, i am new in this forum, my project is about Quad Tree image compression, the problem is that it does not succeed to encode large images, it works good for my small 8 by 8 image, i work by QT c++ editor, i attached my project with my …

Member Avatar for mdawaina
0
86
Member Avatar for it-lady

I have project for ATM application >> & design with QT windows >> How can connect between windows ? please help me soon....

0
59
Member Avatar for colmcy1

Hey all, I am having trouble with the ""std_lib_facilities.h" header. I am getting the complier message: error C2614: 'String' : illegal member initialization: 'string' is not a base or member I am going through Bjarne Stroustrup's - Programming Principles and Practice Using C++ and he suggests that if you cant …

Member Avatar for xqq524148626
0
313
Member Avatar for waqas malik bha
Member Avatar for jbennet
-1
79
Member Avatar for hao90

I am learning the OOP recently and i have a few questions to ask 1) When should i use operator overloading? 2) When should i use template?

Member Avatar for jbennet
0
107
Member Avatar for sidra 100
Member Avatar for bilalislamabad
0
79
Member Avatar for nedsnurb

I wrote this program which takes the value from the user and makes it into a even number if the number entered was odd, if not then print out a message to say they need to enter a odd number. But the program continues to return a value from the …

Member Avatar for bilalislamabad
0
225
Member Avatar for laelzio.mosca

I have this code for a tic tac toe game, everything works fine, but only two player can play, I`d like to make it so the user can enter the number of players, and if there`s only one player, the user can play agains the computer, how do I get …

Member Avatar for nerdinator
0
203
Member Avatar for cthoes

below two are same program except i interchange to accept input value ....in the first program i accept first using scanf and the by getchar()...which didnt allow to accept character value . but in the second program i first accept getchar()value and then scanf(). so it works fine but i …

Member Avatar for cthoes
0
101
Member Avatar for daeuse

I am trying to get my program to restart if the user enters a y, and terminiate if the user enters n. What am I leaving off here, or what am I typing wrong? code: #include <iostream> using namespace std; int BMICalc(int weight, int height); int main() { int weight …

Member Avatar for jonsca
0
207
Member Avatar for iammfa

Hi, At the moment, I try to practicing c++ with directx, I found good tutorials for that, I started with "Tutorial 1: Create a Window" in this link: [URL="http://www.two-kings.de/tutorials/dxgraphics/dxgraphics01.html"]http://www.two-kings.de/tutorials/dxgraphics/dxgraphics01.html[/URL] I do all steps ok like the tutorial, but when i compile it gave me errors, I'm using VC++ 2008 express …

Member Avatar for iammfa
0
152
Member Avatar for Spiderpig085

im having major issues saving my TicTacToe game in C++. it is mainly in the function to save the game.. im not sure also if the code is calling that function properly. il show the code.......: [CODE] { char save_or_not; cout<<"Would you like to save the game?"<<endl; cin>>save_or_not; if(save_or_not == …

Member Avatar for mrnutty
0
984
Member Avatar for Rombosia

Hi, I have a C++ dll with a header having the following struct: [CODE] struct TData { DWORD m_Command; BYTE m_Option; char m_Message[300]; }; [/CODE] The dll also has a callback function MessageReceived that takes TData as a parameter. The function fills in the m_Message with some data and returns. …

Member Avatar for selvaganapathy
0
1K
Member Avatar for saintrenz

Can you guys check my work i want to perfect my studies at school.. this will be passed on sunday also there some that dont have answer which you know please do tell.. [QUOTE]False 1. When you go through a list of names, from beginning to end, until you reach …

Member Avatar for ryoumah03
0
204
Member Avatar for suho

I have a map of pointers to objects, i want to delete some randomly chosen pointers and the objects they point to. Is it possible to do it without using libraries like boost ? I assign the map as follows [CODE]map<int,particle*> particle_map; particle* particles= new particle[number_of_particles]; for(i==0;i<number_of_particles;i++) { particle_map[i] = …

Member Avatar for suho
0
116
Member Avatar for luliana

hi ..pleas any one can help me to write aprogram that allows the user to enter the last names of 5 candidates in a local election and the number of votes received by each candidate, the program should then out put each candidates name the number of vote percentage of …

Member Avatar for luliana
0
84
Member Avatar for kenetpascua

I want to create a menu like this Menu List Type - 1 for Bubble Sort 2 for Insertion Sort 3 Selection Sort 4 Stack 5 Queues heres the code of bubble sort [CODE]#include <iostream.h> #include <stdlib.h> const int MAXSIZE = 10; void bubbleSort(int arr[], int size); void swap(int& x, …

Member Avatar for kenetpascua
0
102

The End.