51,593 Topics
![]() | |
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 … | |
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? | |
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 … | |
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 … | |
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, … | |
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... | |
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 … | |
write a program that prompts the user to input three number.the program should then output the numbers in ascending order. | |
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 … | |
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? | |
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 … | |
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. | |
[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: | |
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 … | |
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 … | |
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++ … | |
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 … | |
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 … | |
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 :) | |
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!! … | |
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 … | |
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]. … | |
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 … | |
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 … | |
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.. | |
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 … | |
hey member... i wanna get icon i like when build my c++ project together... how do that ..plz | |
how can ı sort a student list from a text file like StudentList.txt according to students' surname and id number.can ypu help me? | |
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 … | |
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 … | |
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 … | |
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 ; // … | |
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? | |
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 … | |
I have project for ATM application >> & design with QT windows >> How can connect between windows ? please help me soon.... | |
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 … | |
| |
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? | |
what is the difference between dynamic array and simple array | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 == … | |
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. … | |
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 … | |
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] = … | |
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 … | |
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, … |
The End.