49,761 Topics
| |
I would like to be able to dynamically load and display images in a Windows application written in an old version of MS Visual C++. I'm currently using functions as given [URL="http://forums.devx.com/showthread.php?t=89505"]here[/URL] by Karl Lilje. The pictures display fine when they are supposed to but they are not "persistent" (by … | |
Hello, Beginner in C++ how to make this program if i pressed ctrl-c the program will quit. and there's a tiny problem. whenever i run my program it says that return 0 is unreachable code. thanks guys :) [CODE]#include <iostream.h> #include <stdio.h> #include <stdlib.h> int main() { while (1) { … | |
does anybody know library for c/c++ to catch presses of keys like ctrl+shift+foo or fn+f7 etc. ? | |
Hi, I'm making an MVC pattern based app and I though I would learn the principles first. I have reached a stage I need to connect the three elements. When Controller receives user action It calls right model. Now I need to register callback function so that when Model is … | |
c++ programming from problem analysis to program design by d.s malik .. guys is this a good book for the beginner?? | |
:) Hello, I am making a C++ console application where the user can encrypt and decrypt text. So far, I have successfully made the encryption part, but am not quite sure how to make the decryption part. For example: abcb -> 128.70.88.70. but I can't make it go back to … | |
This is what I read about it. [CODE] virtual base class becomes common direct base for the derived class [/CODE] So my question is exactly what does this mean. What I believe it means. [CODE] class A { protected: int a; public: virtual int get_a(); A(void); ~A(void); }; [/CODE] With … | |
[CODE]#include <iostream> #include <string> using namespace std; int main(){ string str = "Gregory"; int k = 0; for (k=0; str[k]!='\0';k++){ if (str[k]>=65 && str[k]<=90) { str[k]+=32; } } cout << str << endl; } [/CODE] is this code right | |
As we learn all, C dont supprot Inheretic, Polymorphism, Function Overloading... And Few Other Things... My Question is: What is this one? [URL=http://imageshack.us/photo/my-images/705/wico.png/][IMG]http://img705.imageshack.us/img705/5661/wico.png[/IMG][/URL] [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Example { public partial class WForm : Form { … | |
Hello, I m doing an exercise i found in internet. The exercise is the following: [QUOTE] Pancake Glutton Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person 2, ..., Person 10) Once the data has been … | |
Im having some problems identifying where my error is. I've read through the post on this topic and applied the responses to my code but it's still giving me a warning. I am trying to use an array to compute the average of 10 numbers. [CODE]#include <iostream> using namespace std; … | |
Hi, does someone know nice, clean tutorial with links for all headers and libraries for connection to MySQL database? I'm searching for something good for about week now, but I've still found only some rly rly rly retarded posts, without any libraries for donwload or something, just code, i've tried … | |
This assignment will require you to develop a program that reads a series of positive and negative integers from the user and loads these values into an array. The program then calculates and outputs the average of the values read. You will develop the entire program from the problem statement, … | |
[TEX][TEX]This assignment will require you to develop a program that reads a series of positive and negative integers from the user and loads these values into an array. The program then calculates and outputs the average of the values read. You will develop the entire program from the problem statement, … | |
Hello, I need advice. Ive been using Microsoft Visual studio 2008 and making c++ console applications for some time. I made a "Five in line" game. I have a complete system, so its playable, now i just upgrade an AI. So, I have the code for console version, but I … | |
Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and … | |
Hi i need help, what i am trying to do is that the program should search & print the first occurrence of that integer in the array and last occurrence of that integer in the array. If that integer does not exist in the array at all, then the program … | |
I have 2 error for my code when i compile and i need some guidance =) This is a small part of my program. Here's my code. I declare my function like below: [CODE] void working (Stack& deck, Stack& deckStack, List* column, Stack* stack, bool& loadGame, bool& exitGame, bool& newGame, … | |
Hi all, Can any one please help me how to call an function from dll in vc++. [CODE]// test1.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "windows.h" #include "conio.h" #include "windef.h" int _tmain(int argc, _TCHAR* argv[]) { HINSTANCE instcall=LoadLibrary(TEXT("c:\\test2.dll")); if(instcall==NULL) printf("Failed to load dll"); … | |
Hello, I've confused myself a bit with virtual functions. I know they're useful when you want to call the parents function via casting the class to it's parent, but I've found myself scratching my head on few cases. So... Lets say I have a parent Class P and a child … | |
I writing simple cmd game. My question is how to use timing function while I use _getch() command? Because this getch function stops the timing and the timer continuous after I click the keys.:@ | |
Why doesn't this work: [CODE]#include <iostream> class myclass { public: union d { int i; }; }; int main() { myclass i; i.d.i = 3; return 0; } [/CODE] but this does: [CODE]#include <iostream> class myclass { public: union { int a; }; }; int main() { myclass i; i.a … | |
Hi, i'm having a few problems when debugging my project. Basically i have two errors; Error 2 error C2065: 'cout' : undeclared identifier Error 3 error C2065: 'cin' : undeclared identifier This is where the errors are (It's a header file) int temp; cout<<"Enter the Client Number : "; cin>>temp; … | |
is it possible to have a back() in stack....i know queue and vector has it... [CODE] #include "Card.hpp" #include "Card2.hpp" #include <stack> using namespace std; typedef char StackItemType; bool Card::isEmpty() const { return cards.size() == 0; } Card Card::see() const { return cards.back(); } Card Card::pop() { Card c = … | |
Hi all, I am working on a C++ application which involves a thread. My application draws the waveform on screen. The drawing speed should be 25mm/s and the thread should run every 10.56ms for this speed to obtain. But with either 10ms or 11ms set as the Time period for … | |
Greetings, I've found [I]Accelerated C++[/I] to be a pretty solid foundation in C++, but with regards to the new standard, does anyone know of a good supplemental text that can keep me up to date with said standard? Any help would be greatly appreciated. Thanks in advance. | |
All right, I am trying to make a working healthbar for my game done in direct x 9 and for some reason nothing I do works. Basically, when I run the game and the main character collides with an enemy, the red bar for his health just travels towards the … | |
Hello, this is kinda my first program. I would like to know how to clean the screen so only this code would stay in the console [CODE=C++] cout<<"Welcome to calculator!\n\n"; cout<<"[*] - a * b\n[/] - a / b\n[-] - a - b\n[+] - a + b\n\n";[/CODE] I m also … | |
I have some menu problems. So this is my first time, and I need someone to please solve the problem for me. This is my program. When I ask it to enter on the home menu, it takes me back to the second menu and asks me again if I … | |
i am getting some thing in while loop and want to pass that on to my rest of the programme. But i want that loop to be always running. but my code get strucks in the loop and does not move forward... i am not getting how to keep that … |
The End.