49,761 Topics

Member Avatar for
Member Avatar for kaos

Hi, can somebody tell me how i can generate a random number sequence,within a specific range?

Member Avatar for kaos
0
104
Member Avatar for joshuabraham
Member Avatar for William Hemsworth
0
93
Member Avatar for ambarisha.kn

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 …

Member Avatar for ithelp
0
91
Member Avatar for savinki

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

Member Avatar for Radical Edward
0
98
Member Avatar for sanfan49er

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 …

0
82
Member Avatar for bookworm619

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 = …

Member Avatar for mitrmkar
0
98
Member Avatar for Traicey

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 …

Member Avatar for Traicey
0
80
Member Avatar for myleila

[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]

Member Avatar for jephthah
0
181
Member Avatar for Metalsiege

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 …

Member Avatar for Metalsiege
0
84
Member Avatar for buddy1

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 …

Member Avatar for Duoas
0
107
Member Avatar for Jennifer84

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 …

Member Avatar for Jennifer84
0
112
Member Avatar for janicecbeginner

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 …

Member Avatar for VernonDozier
0
189
Member Avatar for darklogan

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 …

0
36
Member Avatar for zoner7

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 …

Member Avatar for Duoas
0
166
Member Avatar for Nameste

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 …

Member Avatar for Nameste
0
118
Member Avatar for Jennifer84

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> …

Member Avatar for Radical Edward
0
104
Member Avatar for savinki

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; …

Member Avatar for Salem
0
92
Member Avatar for Hockeyfreak889

Is there a way to make it so that a C++ file wont close while it is running?

Member Avatar for Ancient Dragon
0
59
Member Avatar for Arctic wolf

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.

Member Avatar for Arctic wolf
0
118
Member Avatar for jokinjoe

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

Member Avatar for Ancient Dragon
0
34
Member Avatar for timdog345

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 …

Member Avatar for timdog345
0
135
Member Avatar for CodeBoy101
Member Avatar for wellibedamned

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. …

Member Avatar for vijayan121
0
87
Member Avatar for myusernotyours

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++?

Member Avatar for mitrmkar
0
74
Member Avatar for Dannyo329

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 …

Member Avatar for Alex Edwards
0
84
Member Avatar for VernonDozier

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 …

Member Avatar for Prabakar
1
2K
Member Avatar for Gibbie

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 …

Member Avatar for Alex Edwards
0
113
Member Avatar for savinki

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 …

Member Avatar for Ancient Dragon
0
112
Member Avatar for zawpai

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: …

Member Avatar for zawpai
0
121
Member Avatar for msupstream

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 …

Member Avatar for msupstream
0
192

The End.