49,761 Topics
| |
So I have to create a multiplication table but it has to be the size of a number I enter from 5 to 31. I think I understand creating a multiplication table without an input, but how do I do it when it has to be a specified size? [code] … | |
What is the difference between pointer and reference Please explain in detail. I want its full concept , so pls explain in detail | |
ah, nevermind, I've figured out the answer to my question. Feel free to delete this thread. | |
Hello I have compiled a project and are now doing a setup of this using the software "Inno Setup Compiler" What I wonder is this: This project that I am doing a setup of is done in Visual C++ 2008 Express Edition. Now if the user doesnt have the .NET … | |
Hi people, I am trying to read a text file and count each words length. I have got these 2 things working, but I can't write the wordLength into text file. anyone can help me out. thanks a lot~~ there is the text file like: ------------- absent absolute absolutely absorb … | |
I have to finish the code but I am having several errors with this and I can't figure it out can somebody give me some insight on what I can do to fix this and also explain what am I doing wrong. Here are the errors I am getting Error … | |
hi narue! i want a program that converts any number inputted into words. like "124" into "one hundred twenty-four" i did figure out the logic but i don't know what specific codes to type. i have my intro codes but i don't know how to do the rest. here it … | |
So, here's my problem: I have a superclass: [CODE] Class SuperClass { virtual someMethod() = 0; } [/CODE] ... and then I have multiple classes that inherit SuperClass. Now, if I want to put objects made from the subclasses to a single vector<SuperClass>, how could I get the abstract function … | |
I am trying to finish this hangman game I started. I know how to do everything I have left to do except for one thing. When I run the program and start guessing letters for instance in the word technical, if I guess the letter c, it only puts one … | |
Hi.. I have compiled a project made in Visual C++ Express 2008 Edition and have made a setup.exe of this using the "Inno Setup Compiler". [B](The project needs Framework 3.5 to work.)[/B] I can install this setup.exe fine on Windows XP and run the software. The setup is downloading the … | |
I have the following code to find first and second largest elements of an array: [CODE] using namespace std; #include<iostream> #include<conio.h> #include<cstdio> #include<string.h> int* create(int); int maximum(int *,int); int second_max(int *,int); void freememory(int*); int main(void) { int *p,size; cout<<"Enter size of the array:"; cin>>size; p=create(size); cout<<"\nMaximum elemnt in the array … | |
Hi, i´ve been studying WinApi for some time now, and have actually managed to create some stuff in c++ with Visual 2010 Express. Now, after creating my Menu, I wanted one of its functions to open a Form i've inserted through "Add New Item -> Windows Form". The problem is, … | |
Hey folks im having some trouble with a roulette wheel selection that im programming for a genetic algorithm. I decided to do it slightly differently to the standard Roulette wheel, primarilty because its highly likley in standard version that the fittest solution will mate with itself. And that just seems … | |
suppose we have following function: [CODE]void someFunction(int * araye){ for (int i=0;i<5;i++) cout <<araye[i]<<' '; cout <<'\n'; }[/CODE] can we pass an array to this function by following syntax, under upcoming c++0x standards? : [CODE]someFunction({1,2,3,4,5});[/CODE] if that's true, will we even be able to use this syntax in any case … | |
Hello everyone. I have managed to connect a winsock client to a server application; however, I do not know how to display the results that are recieved inside of my "recv" buffer as a unified string, as apposed to the char array format it is currently in. I would like … | |
The Developer Studio compiles my code with no error and no warning, but I do not include the needed libraries. Maybe some standard libraries are loaded by default, but I cannot find in the settings, and dont know which ones! Can you help me? | |
write aprogram in c++ to read the tokens in one at a time ,if it is integer,push it on stack, if it is binary operator, pop two elements from the stack, apply the operator to the two elements and push the result back on the stack?? please help me to … | |
Hi.. I am new to Dani web and would like to know the problem in the following code: [CODE] #include<iostream.h> #include<conio.h> void insertion_sort(int *p); int main() { int a[20],j; cout<<"\nEnter contents of array:"; for(int k=0;k<20;k++) { cin>>a[k]; } insertion_sort(a); return 0; } void insertion_sort(int *p) { int h,key; for(int i=2;i<20;i++) … | |
Hi, I'm currently writing an application using VS C++, Qt, and SQLite. I have a user interface where the user uses a series of combo boxes to select certain criteria that they want to fetch from the database. When this dialog closes, all of the combo boxes selected text (string … | |
Hey there folks. New at this so forgive any mistakes, first post. I'm beginning to learn c++. Not so easy. After reading a few threads went to project euler. Problem i have is problem 3. " The prime factors of 13195 are 5,7,13 and 29. What is the largest prime … | |
hi i want to display pascals triangle on computer screen.the pascals triangle goes like this. and what is logic. 1 1 1 1 2 1 1 3 3 1 1 4 6 4 1 1 5 10 10 5 1 and so on. | |
I have command string and want to find a pattern in it.If present i have to remove certain characters and retain the other characters as it is in the command string. [code=c++] string aDir("bin/kwp-init start -t1 -uwelcome@mails.com -ppasstoks@123 -v"); string search_char ("@"); size_t found=0; found = aDir.find_first_of(search_char); cout <<"@ is … | |
#include<fstream.h> #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> class ALARM { public : struct time t; int m,h,a,b; void resetalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); a=0,b=0; x<<a;y<<b; x.close();y.close(); } void setalarm() { ofstream x("D:\\hour.txt"),y("D:\\minute.txt"); cout<<"\n\n\t\t\t\tEnter hour\n"; cin>>a; cout<<"\n\n\t\t\t\tEnter minute\n"; cin>>b; x<<a;y<<b; x.close();y.close(); } void alarmmatch() { ifstream i("D:\\hour.txt"),j("D:\\minute.txt"); i>>a; j>>b; i.close();j.close(); gettime(&t); m=t.ti_min,h=t.ti_hour; if(h==a&&m==b) {cout<<"\n\n\t\t\t\tTime … | |
hellow every body i m trying to do a graphique interface using c++ but i cant know which .dll i have to use such im using visual studio c++ 2010 express edition . when i thank to use QT with vs2010 there is a lot of problemes caus i don't … | |
Hi all, I have a more philosophical question which I think might help me to better understand the interest of pointers in C++. Indeed, my background is mainly Perl and a bit of Java. I am currently implementing (as an exercise and because I work in this field) a class … | |
I am trying to write a named semaphore, can anyone point me in the right direction. I have tried googling it. I come from a java background so i understand the theory. Is a named semaphore created in the same way an semaphore is ? | |
Hi everyone, I am quite new to C++ (coming from perl). As an exercise, I am currently trying to create a class to play with graphs. I have a class Node in which I overload the == operator (to test the equality between two nodes). At the moment, I consider … | |
How would I make a 3,4,5 triangle print out in a GUI. I was using the drawline function, but I can't figure out how to make it so its between two coordinate points. I have some code like this to draw a line [code] // draw line coloredPen->Color = Color::Red; … | |
We've to build one mini project on Vending Machine.. Our Guide have given us following topics to be covered in mini project - [LIST] [*]Normal Vending machine program working on Deposited balance - Can do it [*]Login and Password for 5 members to store their individual spares separately [*]Permanent storage … | |
im juz learn C++ from C++ how to program , but i not really understanding in this section ,can someone explain and describe?..thx... |
The End.