49,761 Topics

Member Avatar for
Member Avatar for lainho

I'm currently in a data structure class and i have little programing experience. The assignment is A. In this part, you are supposed to design an integer random number generator that would produce random numbers between 10 and 99 (both inclusive). Design schemes to evaluate its performance as a random …

Member Avatar for lainho
0
137
Member Avatar for jibrownie

please help, the program converts polish notation to reverse polish notation yet when i try to print out any of the elements of string bits or equat it gives me an error [CODE]sing namespace std; string equat, StringBits[26], hold, str; char c = 'a', oc; int i; int main(int argc, …

0
21
Member Avatar for edwalk

This program is suppose to grab the first letter of each name and then output the initials. #include <iostream> using namespace std; const char blank= ' '; const char newline= '\n'; void main() { //Declare character variables char firstInitial, middleInitial, lastInitial; cout<<" Please enter first, middle, and last name separated …

Member Avatar for edwalk
0
88
Member Avatar for fukki

Hello, In some functions of my program this code doesn`t work normally [code] string w1; string w2; cout<<"1st msg: Enter 2 words: "; getline(cin,w1); cout<<endl; cout<<"2nd msg: Enter 2 words: "; getline(cin,w2); cout<<endl; cout<<endl<<"w1: "<<w1<<endl; cout<<"w2: "<<w2<<endl<<endl;[/code] But when i run it is some functions(except main and some others) of …

Member Avatar for Ryaether
0
107
Member Avatar for MyrtleTurtle

Is it the boost library? Regex in particular? I have searched and searched, but this is all I could come up with. If this is the correct library, then how do I get it to work in Dev-C++? I managed to add all the boost .h files to my Dev-C++ …

Member Avatar for mike_2000_17
0
365
Member Avatar for maharjun

if a pointer is a dangling pointer and one applies delete[] to it. is the result defined or not. i basically have the following situation [CODE] class A { private: int *p; //other data members public: //rest of class } [/CODE] i intend to initialise p in the constructors. but …

Member Avatar for mike_2000_17
0
1K
Member Avatar for lradske

i have made a program with a vector that is a instance of a class student with three variables. i have stored the information and calculated the class average. what I want to do is get the person with the highest test score and output "this student has the highest …

Member Avatar for Ancient Dragon
0
115
Member Avatar for Suzie999

I'm having a little trouble returning the current date from a dll function. Here is my code [CODE]LPSTR __stdcall date() { int i; char dateStr [10]; _strdate( dateStr); LPSTR string = ""; for (i = 0; i < 10; i++) { string += dateStr[i]; } std::cout<<dateStr<<"\n"; return dateStr; }[/CODE] I …

Member Avatar for Suzie999
0
130
Member Avatar for it-lady

1. Suppose we have three functions f(n), g(n), and h(n) such that f(n) = O(h(n)) and g(n) = O(h(n)). Must it be the case that f(n) = O(g(n))? Explain why or give a counterexample showing why not. I think it is equal ! what you think ? 2. Write a …

-1
65
Member Avatar for n.aggel

Hi, i have created a data structure {heap based}, capable of manipulating up to 10 million elements....I noticed that i can't go above this number because i have serious memory leaks.... The problem seems to be that i haven't written a destructor!{i a bit used to garbage collection!} if i …

Member Avatar for ani malviya
0
216
Member Avatar for gwahl

If I wanted to declare a large number of variables that were all similar, for example: [code=c] var x1; var x2; var x3; var x4; var x5; var x6; var x7; var x8; var x9; var x10; var x11; [/code] ...etc Is there a faster way to do that? Maybe …

Member Avatar for mrnutty
0
97
Member Avatar for lukename

Hello. How can i use SendMessage to "press" other program's button? I don't know other program's button's ID but there is only one button in that program. I searched MSDN and found something. I tried this piece of code: [CODE]HWND hWnd; hWnd = HWND(FindWindow(NULL, "WindowName")); SendMessageW(hWnd, BM_CLICK, NULL, NULL);[/CODE] At …

Member Avatar for lukename
0
179
Member Avatar for neti1987

hi! I'm looking for things which compile on visual-studio, but not in the gcc compiler in the C programming language (C++ it's ok too). I have to make list of such things. If someone could send me link to such list or send me some examples, it will be great! …

Member Avatar for Ancient Dragon
0
122
Member Avatar for dude1

im using a tstringgrid to make a sudoku game im using goEditing = true with a few loops and its working fine so far what i want to do next is is make a tcheckbox so when i input the initial grid values i check the box and it changes …

0
62
Member Avatar for Nemo_NIIT

Hi Friends I need to test the [B]VC++[/B] code its for [B]protected/unprotected[/B] code can you please help me by telling [COLOR="Green"]which software is good for testing or can you send me some links.[/COLOR] I have gone throw NUnit software but in that i am facing many problem for VC++. So …

Member Avatar for Ancient Dragon
0
96
Member Avatar for NeiLLio

Please me help me guys...our teacher gave us this problem in c++ and i really dont know how to solve it since i have been confined at the hospital for a week because of dengue..please help me out.. Here's the problem: Define a class named Time to perform the conversion. …

Member Avatar for Ancient Dragon
-2
85
Member Avatar for Syrne

So, my assignment is to take in a student ID, first and last name, and 5 test scores. I am then to average the test scores, collect all of that data into an array and output all of the information in a tabular format(which I have yet to do). I …

Member Avatar for SgtMe
1
377
Member Avatar for 4ever_free_4u

hi all ]i need programme in c++ to insert values in linear array and also delete them plz help me i'm new to c++ programming[/B][/B]

Member Avatar for SgtMe
-2
62
Member Avatar for LevyDee

Hey guys, I had applied for a fall internship through my local college to for an Associate Software Engineer. Just got a call and learned it would deal with software testing for the medical equipment. Anyways, are there any subjects I should brush up on before my interview, and would …

Member Avatar for elsiekins
0
84
Member Avatar for glenc70

i have created a window with a button but what i want to do when i press the button is delete or hide the Minimize, Maximaize and close buttons at the top right of the window now the thing is i know how to do this when i make the …

Member Avatar for mitrmkar
0
78
Member Avatar for baconswife

Hello, I need some help figuring out which errors are syntax errors in this. Compared to what I started with this has come a long way but there are still some in there that I am having trouble spotting. I do know that they if statements are incorrect, i'm just …

Member Avatar for Fbody
0
120
Member Avatar for CoopOwnz

hey all, I'm writing a C++ console app that converts all the letters of a string to an ALT+NUM equivalent. e.g. e might convert to é (or ALT+1154) My problem is only with those ALT+NUM combos that have to start with a 0 For example with letter 'd' the only …

Member Avatar for Banfa
0
134
Member Avatar for burcin erek

there are four playing cards . you choose one of them if selected card is 1 spades you win else you lose but ı want to make win card as random from 4 cards. i dont know how. [CODE] #include <cstdlib> #include <iostream> using namespace std; const int clubs=0; const …

Member Avatar for burcin erek
0
103
Member Avatar for varunrathi

Can anybody help me with permutation in c++. say if the entered string is "stop" then there must be 24 (=4*3*2*1) different words made by the letters s,t,o,p. Similarly if the entered string is "abcde" then there will be 120 (=5*4*3*2*1) different words made using the letters a,b,c,d,e. Please Help. …

Member Avatar for richieking
0
916
Member Avatar for icpeople

Hi everyone, I'm having problems with the output of this coding and I would really appreciate the help. The assignment requires to show how someone's taxes are distributed by first ask the user for the amount of money (dollar[] and income) and at the same time prompt for the taxes …

Member Avatar for Ryaether
0
78
Member Avatar for Spartan_MSU12

I am trying to complete this program. It is excuting the second part of it, Which every 5th word needs to be replaced with an underline. But I need to print out the text with out the underlines first. then have it replaced with underlines. Also, the user has to …

Member Avatar for Ancient Dragon
0
124
Member Avatar for Beancounter5

okay , i see .... i have situation where i have a list called bunnyList containing mutantType objects, i want to create a new object using a constructor and add this object to my list. Like below. bunnyList.push_front( new mutantType ); with the aid of the newly discovered rbegin pointer …

Member Avatar for arkoenig
0
76
Member Avatar for emko

Hi, I have to make a program that takes an input text file and reverses the contents of that file, and outputs that into another text file. I am new to stacks, but what I have so far nothing happens, it just outputs a blank text file. I just wanted …

Member Avatar for emko
0
109
Member Avatar for AdventGamer

ok well i'm having issues sending a char array to a listbox. To do a little explanation on the code itself... The point of this part is to take a hexidecimal string and convert it to a alphabetical string (this part works and has been tested in a console application). …

0
63
Member Avatar for vitin6039

I need help with a homework, i been working in this for the past 2 weeks and can't get it to work. I need to make a function that will allow me to create a dynamic array and them expand the old array of 3 subcript into the new array …

Member Avatar for LevyDee
0
111

The End.