49,761 Topics
| |
I guess i'm missing something basic, but i'm new to C++ and do not know how do these streams behave. Can someone please explain why no text is printed to the screen in the following example: [code=C++] #include <iostream> using namespace std; int main (void) { char *ptr = NULL; … | |
I want to create an mpeg video with [B]ffmpeg[/B] with my program that generates lots of 2D arrays, each of which represents an image. As ffmpeg only takes YUV images. Is it possible to draw a YUV image in c++ or should i generate a RGB image first and then … | |
Hi, how is it possible to make vertices in maya (3d s/w ) react to wind ( dynamic effects ). Brgds, kNish | |
Hello DaniWeb members! I am using wininet for communicating with HTTP protocol.Everything goes right expect one thing: Cookies. Problem is that all cookies are not saved.Some of them are but no all.For example ASP.NET session id cookie doesnt get saved when i visit page with wininet but i need its … | |
can anyone here write me a program which takes data from my parallel port (at address 0x378) every 1 second and saves it to a .txt document somewhere on my computer. I wanted this in c++ or c or any other programming language that i can instantly use or compile. … | |
how can we use very big numbers in a c++ coding ... eg a number which is some 40 digit long... i just found out tat there is some data type known as biginteger ... but its not working in turbo c even after installin reqiured files... can anyone help … | |
hi... i want to ask about my receipt program again.. this time ,i really like to know the ways how to clear the informations after the user has entered those informations that are neede by the program.. For example,take a look at this sample output : -------------------------------------------------------------------------------------- CASH RECEIPT PROGRAM … | |
hi i am muzamal.i have a assignment question .somebody can help me. please send me code of this programme.i tried hard but not succeeded.please help me early.emergently send me please .because time is short for me . thanks[COLOR="Red"][/COLOR] | |
Hello, I am using Visual Studio 2008 to program in C++. My program needs to read in a line, break it into two strings. It seems that the String Toolkit Library (StrTk) ([url]http://www.partow.net/programming/strtk/index.html[/url]) will enable this. However, I am unable to figure out how to physically add the library files … | |
I have a very basic problem, which answer is not covered in the 1200 pages of the C++ book I'm using to teach myself. Consider this simple code: [code]#include "stdafx.h" using namespace System; class EventListener { long mRef; public: EventListener() { mRef = 0; } }; int main(array<System::String ^> ^args) … | |
1. I have few data in "MyData.txt" : 9 7 4 4 6 5 9 1 3 4 7 6 5 4 1 4 8 6 4 8 5 I only can copy the data into the code like this : [CODE] #include <iostream> #include <fstream> using namespace std; int … | |
Hi, I Have a CString (MFC) which contains the following three conditions separated as follows. Message=("Condition1|Condition2|Condition3") I am trying to extract the three conditions from the CString and use them to perform other operations. However I cant seem to find the right built-in function. Could someone please advise on what … | |
hello; can U plz explain this Q for me, i do not know how to solve it ? Rational fractions are of the form a / b, where a and b are integers and b ≠0. In this assignment, by "fractions" we mean rational fractions. Suppose a / b … | |
Hi, I am using Dev-C++ 4.9.9.2 with g++ compiler. I recently made a DLL in c++ that shows a window using Windows API. I discovered that the text shown inside are large and bold, which aren't looking very good. I want to change this, so I used the following code … | |
I'm trying to figure out how to use a bubble sort in a array of names. since the names are type string, I can't figure out how to alter the bubble sort to do this. all the examples I find online deal with numbers instead of strings. So how do … | |
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... | |
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++ … |
The End.