49,761 Topics
| |
Please help to solve this problem.....i am using c++ programming language.... the output of the problem is.... [ATTACH]11520[/ATTACH] i only have this... help me plsss....... [ICODE]#include <iostream> using namespace std; int main() { int a, b, c, e, i, j, k, m; int z=1; int n=10; for (a = e … | |
Is there any way to go to a specific line of a text file and print it to screen? I used getline to do this, but what if i need to enter a number and the program will go to that line number and print it to the screen. is … | |
| Hi, I have a question related to pointers to base and derived classes. I have the following base and derived class: [CODE] class A { protected: double a,x; public: void set_ax(); virtual void mult_ax(); }; class B:virtual public A { protected: double b; public: void set_b(); void mult_ax(); }; class … |
im curios since i just completed mine [URL="http://www.daniweb.com/forums/thread221217.html"]my first program (thread)[/URL] | |
Hi . How we can design graphical menus in c++ for a multimedia device ? Thanks ... | |
Hi all, I’m doing some automation for a nightly deployment of some software. My program should: Open a program Send shortcut key press to the program Push a button And close the program again. So far I can open the program, bring it to front, send shortcut keys, but I … | |
| Hello, I have this problem with multidimensional array on Form. [QUOTE]I have multidimensional array (like 5x5 matrix), but I can't add buttons on the form, if I use Controls.Add it adds only one button, and if i use Controls.AddRange program gives me an error [/QUOTE] I want to make a … |
who knows how to create games of the general in c++? i really want to know how.. ^_^ SNIP if you know this.. i'l be waiting for your help | |
hi guys i am doing a project and i need so help plzzz [URL="http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view¤t=uu_000.png"]http://s891.photobucket.com/albums/ac111/redblood_bucket/?action=view¤t=uu_000.png[/URL] at this link u can find a pic this a small part of my project the problem is that i want everything that i type or want to display like welcome to the back blah blah … | |
Hi ... Is there a way to write a program in c++ that get a decimal number and convert it to its equivalent in hexadecimal without using arrays ? A bit guidance please .... Thanks ... | |
Dear experts, I am new to the subject of bitwise operator. I know some of the basics like the gates and how the gates function eg. and gate, or gate, exclusive nor gates. And also how to change decimal numbers to binary numbers. But I am not quite sure about … | |
How to retrieve Motherboard, Hard Disk serial numbers and other related information on Windows 64 bit OS? | |
[CODE]#include <iostream> #include <iomanip> #include <cctype> #include "account.h" #include "CharRange.h" using namespace std; void displayMenu(); void makeDeposit(Account &); void withdraw(Account&); int main() { Account savings; // account object to model a saving account CharRange input('A', 'G') char choice; cout << fixed << showpoint << setprecision (2); do { displayMenu(); choice … | |
Hi I am in desperate need of help, I need to manage an application dependency in Visual Studio. The application links to a DLL only on a specific version of windows, lets say Windows 7. and on other environments, the DLL should not be loaded. How will I be able … | |
I have class eventqueue_t which is derived from the abstract class event_storage_t. When I compile the code I get: make mpixlcxx -c -O3 brain.cpp mpixlcxx -c -O3 config.cpp mpixlcxx -c -O3 connection.cpp "eventqueue.h", line 17.29: 1540-0408 (S) The base class "event_storage_t" is declared but not defined. make: *** [connection.o] Error … | |
Hi, I'm new to the whole programming environment. I'm currently taking an object oriented programming class and am a bit lost on my first assignment. I know there is already thread for how to draw a diamond but it doesn't answer my question. I'm trying to draw a diamond with … | |
hi, I am new to C++. can anyone give me a sample to start with or refer to, on how to create a Windows Management Instrumentation with C++? | |
If I type g++ main.cpp, I get the error: /tmp/ccalbYhC.o(.text+0x160): In function `main': : undefined reference to `CBigInteger::CBigInteger()' /tmp/ccalbYhC.o(.text+0x389): In function `main': : undefined reference to `CBigInteger::CBigInteger(std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >)' /tmp/ccalbYhC.o(.text+0x43d): In function `main': : undefined reference to `CBigInteger::display()' collect2: ld returned 1 exit status I … | |
Hi everyone, I am trying to print content from a Win32 richedit control, but it doesn't work. The text wraps to the half width of the page, and after printing, the text in the richedit is also messed up (word wrap to the half width of the box). I use … | |
Hi I am just wondering if it would be possible to add compression to this encryption program I have? It will compress the file before it encrypts it for faster encryption time. Thanks for your help. | |
Hey, I was working on a program in windows API where there are multiple edit boxes and there are push buttons. If a pushbutton is clicked, I want the program to find the edit box that the cursor is in and add the character to that edit box. Now I … | |
[B][U]An overview of what my program does[/U][/B] I'm given a main.cpp file with some function prototypes that I have to define in a separate .cpp to manipulate an image file ( basically a 15 x 15 matrix of 1's and 0's) [B][U]The result of your current code[/U][/B] I dont know … | |
Hello, I am writing a C++ program to find the largest such number such that the square root of that number is less than or equal to a fixed number, set by me, like this: [code=c++] #include <stdio.h> #include <math.h> int main (void) { long fixed, param, result; result = … | |
I have a structure containing [ICODE]struct XboxFriends { char gamertag[SIZE]; char name[SIZE]; char country[SIZE]; char city[SIZE]; char favoriteGames[SIZE]; int age; };[/ICODE] this code is supposed to keep track of my xbox friends. I also have written a function [ICODE]void searchFriends(vector<XboxFriends> &friends) { string gameName; cout << "--- Favorite Game Search … | |
I'm making a tick tack toe game for a programming class and i*m stuck with some problems. Problem 1: rand sometimes returns a value over the max value. Max is 9 and it can return up to 1000000 on some occasions. Problem 2: The Win function only works in player … | |
Hello! I'm wondering how to go about packing data from an std::vector<unsigned long> into valid unicode (UTF-8) characters. So far, I've tried writing the unsigned long data directly to a text file, but that usually results in invalid characters. (I don't actually need to store the data in unsigned long … | |
Hi I have some code that is supposed to take an array of booleans and for each `(int minBits = 10)` bits turn the binary number into decimal. The algorithm is working in part, but the bit at `binArr[64]` where when is somehow changing in between when I print the … | |
so, iwe been messíng arround with C++ for about 4 days now and here is my first real print all squarenumbers (it will break at a point) : [code]#include <iostream> #include <windows.h> //---------------------------- using namespace std; //---------------------------- int main () { string numbers="1"; bool on = true; do { cout … | |
Hi everyone, I have a modal dialog box which is called by the main thread. This dialog has no parent (appears at center screen, overlapped, and shown in taskbar). When the user clicks "Save" in the dialog, the dialog procedure receives the command and displays a save file dialog (GetSaveFileName). … | |
[code] #include <iostream> #include <windows.h> //---------------------------- using namespace std; //---------------------------- int main () { long int numbers=1; bool on = true; while (on==true) do { cout << numbers*4; numbers = numbers+1; Sleep(500); } }//--breaks here [/code] how come the loop not work? |
The End.