49,761 Topics
| |
Hi, can somebody tell me how i can generate a random number sequence,within a specific range? | |
undefined reference to WinMain@16 i use dev c++ by the way thanks for any help. | |
Hi, I dont know much about Standard template library(Vectors, Lists, Deque). I want to do one Program which is as follows. Write a program to create a data bank which holds the operator and operands of arithmatic/relational/bitwise(etc.,) operations. (Use STLs) The no. of operand fields(input and output) is variable depending … | |
Hi, Can someone please tell me, Is there any builtin function to convert decimal value to a fixed format? e.g. 6 to 0006 10 to 0010 123 to 0123 4987 to 4987 | |
Hello everybody this is my second posting and I have been working on this code for quite some time and its a module thats part of my coding but I am having quite a bit of trouble from having a check box checked and it changing the picture I got … | |
I thought I did perfectly but I want the histogram to like the graph: [code=cplusplus] #include <iostream> #include <cstdio> #include <ctype.h> #include <cstdlib> using namespace std; int main(int argc, char** argv) { int i, cols ; cols = 50 ; int line = 60 ; int c; int max = … | |
The code below suppose to ask a user the person's name and compare that name with the names in the file and if found it must display the name's details such as Age and gender and ask the user if s/he wants to edit the person's details if the user … | |
[B]I have problem with dijkstra algorithm [/B] [B]I want to write it in c++ and can not describe it in c++ //[/B] [B]please help me[/B] | |
I've heard that pointers can be a pain in the butt to implement and now I know.. Basically, I'm supposed to input a last, first and middle name. Then compute the size needed for a dynamic array to hold the full name. After that dynamically allocate the array, check DMA … | |
I have to find the largest item in an arry as a recursive function. Can't seem to get it right. Any ideas. [CODE]#include <iostream> using namespace std; int maxArray( int anArray[], int n ); int main() { int anArray[4] = { 1, 6, 8, 3 }; cout << "the largest … | |
I have a wondering. I am using something called ZedGraphControl to draw a Graph. I have managed to do all this work, to draw a Graph out of different values. The problem is that if I have drawed a graph and change some values and draw a Graph again, the … | |
Hey all! I am trying to build this code and I am running into a bit of trouble. Visual c++ gives me this error: >Profile.cpp 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error C2027: use of undefined type 'Post' 1> c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.h(6) : see declaration of 'Post' 1>c:\users\janice\documents\visual studio 2008\projects\assignment6\assignment6\profile.cpp(101) : error … | |
Hi there guys: For my OOP class I had to do a game (as usual, as I could see from other posts). I chose doing the traditional "memory" game where you have pairs of images scrambled in a grid and you have to choose the right pairs, until they all … | |
So I decided that I wanted to make a Sudoku creator and solver for fun. My plan is to fill a sudoku board with random, however, compatible answers using brutefruce. I simply check random numbers against the two prerequisite rules for a legitimate Sudoku: a given cell cannot contain the … | |
alright, i'm just learning c++ and i've put a code in to find the square of a number this is the code i used; [ICODE]#include<iostream> void main() { char cReply; int iNum, iSquare; std::cout << "Do you want to find the square of a number (y/n)?"; std::cin >> cReply; while(cReply … | |
I have declared a vector like this for managed type. My question is how it is possible to declare a number of elements as you do for native like this. OneVector(10) ? If I write OneVector(10) below this will not work. Either if I write OneVector.AddRange(10). Thanks... [code] public: System::Collections::Generic::List<double> … | |
I tried to initialized const char pointer to pointer variable. Following is the way i did it.but once i run the program it thows an error(Pops up "encountered an problem and needs to close... Tell microsoft about this problem...") const char * FB="test"; const char **Feedback ; Feedback = &FB; … | |
Is there a way to make it so that a C++ file wont close while it is running? | |
Hello everyone, I was wondering how can I make a precise delay that is shorter then 1ms on C++(I need it to drive a servo motor via PC)? If I understand correctly the standart delay function has a resolution of 1ms, so it won't do it... Thank you, A. | |
Hi there, I am writing in hopes that someone may be able to tell me if there are any special components used for creating graphical eq interfaces.. (you know with a line that bends to specific Q points) I am relatively new to this... Thanks, -Joe | |
I need to write a program that reads a file consisting of students' tests scores in the range of 0-200. I need to break them into ranges :0-24, 25-49, 50-74, 75-99, 100-124, 125-149, 150-174, and 175-200. Then I need to Output the score ranges of the students. Also I nee … | |
Is there a way to convert from an integer to a string? | |
Is there a nice function or a way of inputing values into an array until newline? i kinda don't like doing it with gets(); and then check if index%2 is 0 and then if it is i store the int(); value of the char - 48 into a new array. … | |
hi all, Am hell bent on creating a window that behaves like the windows taskbar in that it appears on top of the screen and all the other windows give way. Can someone suggest an API for doing this in visual c++? | |
I am trying to get a program so that its sort of like downloading something, when it shows you the % and stuff, in which it goes up. I've been trying to get it to work, but what I done always doesn't seem to work. And I was thinking if … | |
Some similar recent threads have reminded me that I've been wanting to ask this for a while. I would like to declare a 3-dimensional array that uses contiguous memory so that I can calculate memory offsets from the base array element ([ICODE]x[0][0][0][/ICODE]) and use pointer arithmetic to access any array … | |
Howdy all. I'm only in college for programming and am only in the my 3rd month of C++, and I'm working on a program now, just for fun and practice, and need some help. I'm making a MineSweeper game that will run in Command Prompt by making a grid of … | |
can someone please explain whats wrong with the below code segment? My intention is to assign characters in pointer "p" to pointer "a" one by one until the end. but this throws run time exception. I want to do assign character by chater without assigneing the entire pointer as a … | |
Hi, Why I get the errors when using 'friend function'? [CODE=cpp] // friend function as bridges on two different objects #include <iostream> using namespace std; class alpha { private: int data; public: alpha() { data = 3; } friend int frifunc(alpha, beta); // friend function }; class beta { private: … | |
Hi, I am currently using a C++ library (live555) to which I have added my own subclass, and this work is my first experience with C++. I need to get access to a pointer that is a private pointer in the parent class. Because I am using an exisiting library … |
The End.