48,986 Topics

Member Avatar for
Member Avatar for kurorokhristoff

Hi, im confuse making this program,.. i need a little help from expert here in dream in code so i decided to post it in here,.. Write a program that uses for statements to print the following patterns separately, one below the other. Use for loops to generate the patterns. …

Member Avatar for Lerner
0
2K
Member Avatar for Se7Olutionyg

[code=cplusplus] // grade.cpp // display the letter grade corresponding to an exam // score assuming a noormal scale # include <iostream>; using namespace std; void displayGrade (int score); int main () { int score; displayGrade(); cin.get(); return 0 ; } // get the data void displayGrade cout << " ENTER …

Member Avatar for sidatra79
0
103
Member Avatar for nkw0820

hello, I come from malaysia and i am doing a final year project in Evacuation Simulation programming i need to develop a WINDOW based simulation program which allow user to input data and show the result in Graphical method i have Background on C++ but i need use VB to …

Member Avatar for sidatra79
0
72
Member Avatar for ShadowOfBlood

I had to write a program that asks the user to guess a number. The program then tells if their guess is too high or too low depending on the difference between their guess and the random number. I finished the program and it works, but my teacher's very picky …

Member Avatar for Narue
0
179
Member Avatar for gopi17

hello....i'm juz wondering is there any that generates UML diagrams such as sequence diagram,activity diagram n more once i enter my source code??...help me pls most of the software i use only generates class diagrams... could anyone tell me which is can help me......

Member Avatar for sidatra79
0
108
Member Avatar for biggz

i started using c++ a few weeks ago , and i was told to build a program the finds the factorial of a number ... [code] #include <iostream> using namespace std; void main() { int x,fact; cout<<"Enter the number wanted"; cin>>x; for (fact=1; fact<=x ; fact++); { fact = fact …

Member Avatar for sidatra79
0
231
Member Avatar for VBNick

Hi, trying to simply plot a point when the user clicks my window, but the `WM_LBUTTONDOWN` even seems to be triggered no matter what input i give the program...letter keys, tab, pgup, spacebar, Everything! I don't understand what is going on =/ Im catching the even like this in the …

Member Avatar for VBNick
0
130
Member Avatar for abelingaw

A program where u have a 10 input number and enbles u to choose wether the output is in asecnding or descending order. Thanks in advance!!

Member Avatar for rati
0
170
Member Avatar for TheKebab

I don't know if this belongs in the programming section, but I'll ask anyway: I've been using VS2008 Pro since I got it for free through the MS Dreamspark student page. I've been using Dev C++ (Which many experienced programmers have given me harsh comments for) before I got it. …

Member Avatar for TheKebab
0
91
Member Avatar for unk45

alright..so i have to create an overloaded func where i replace O with E in str and replace world with jack in str and print from main using pointers to pass my strings to the func(needs to adhere to the mentioned)...need help ASAP ppllzz.. thnx [code] #include <iostream> using namespace …

Member Avatar for rati
0
123
Member Avatar for killdude69

I am trying to create a context menu that pops up when you right click a RichEdit. I know how to create the context menu, but I don't know how to check for when the user right-clicks RichEdit. This is what I have: [CODE=cpp] case WM_CREATE: { // Create RichEdit …

Member Avatar for killdude69
0
836
Member Avatar for gangsta1903

[code=C++] while(cin >> par1 >> par2 >> par3){ // get inputs cout << par1 << par2 << par3 << endl; [/code] I want to read three inputs with cin,as long as three inputs exist,the loop works good. But if the user enters two inputs,this time it waits for the next …

Member Avatar for gangsta1903
0
146
Member Avatar for Niner710

I am a little confused with class scope. Lets say that you have a class. [code] //file.h struct B { int BB; char CC; }; class A { public: struct B *getStructure(); private: int number; }; [/code] I dont understand what is the difference between putting struct B inside the …

Member Avatar for ArkM
0
119
Member Avatar for JackDurden
Member Avatar for Agni
0
275
Member Avatar for grisha83

Hello, Here is the problem ive been working on: write a while loop that displays each int from 1 to 5 together with its square and a cube. Display all three values for integer on a separate line. My problem is that it does not really do what it is …

Member Avatar for grisha83
0
258
Member Avatar for Tr1ckst3rNcag3d

First off, I have searched the forums and have not stumbled across the answer to my question. If I overlooked it feel free not to post here or close the thread or link me to the correct thread. I apologize if i missed it. I'm trying to create a number …

Member Avatar for Tr1ckst3rNcag3d
0
92
Member Avatar for demroth

I am trying to read the data (integers) from a file to a larger unsorted array and then move specific elements from that array to specific sub arrays. I can write the data from the file to the unsorted array fine but I get the wrong integers when trying to …

Member Avatar for demroth
0
90
Member Avatar for kevin7778

error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'overloaded-function' (or there is no acceptable conversion)

Member Avatar for stilllearning
0
62
Member Avatar for thenic

ok ive got my program to work now but cant get it to ask me if i want it to make a new calculation and i need to do this with a while command i dont what a done code out of you ppl cause its my homework and i …

Member Avatar for kenji
0
113
Member Avatar for kevin7778

[code=cplusplus] #include <iostream> using namespace std; int main(){ int n ,sum(1),k; cout <<"Please enter an integer n "<< endl; cin >> n >>endl; for(k=1;k<=n;k++) { sum +=(1/(1*(k+1))); } cout << "The sum = " << sum <<endl; return 0; } [/code] It does not recognize the input operator >> when …

Member Avatar for kevin7778
0
124
Member Avatar for unk45

why do i keep getting the same1?? [code] #include <iostream> #include <ctime> using namespace std; struct card { int value; char suit[10]; char faceCard[10]; }; int deal(card deck[maxcards], int decksize, int &z); void shuffle(card deck[], int decksize); int score =0; int main() { int scoretracker =0; card deck[52]={{11, "s", "ace"}, …

Member Avatar for chococrack
0
101
Member Avatar for CodyOebel

I am wondering if theres code for removing this software completely, but through code ? It has been a while since I have been working on this type of a project, but now that I am trying I noticed security centers such as norton, and mcafee have changed a bit …

Member Avatar for Th3_uN1Qu3
0
143
Member Avatar for t_s

I have been searching (google and books) for an answer to this question for a long time without managing to find any answer worth the name, so I'll try posting a thread hoping for better luck. Can someone explain to me why this: [code=C++] Aclass **tmp, *aclass[10]; tmp = aclass; …

Member Avatar for t_s
0
109
Member Avatar for goodmuyis

hello my dear am sorry to give this disturbance, i need a full cup of help am thirsty. i design a database application with c++ and access, when i test on my PC it work fine but on others PC it can find settings of ODBC what can do to …

Member Avatar for mcriscolo
0
81
Member Avatar for koushal.vv

Hi Friends, Can any tell me a free tool which detects memory leak in C++ code. to be more specific [ UNMANAGED C++ code ]. i am using some C Structs in my MFC SDI application, When i run in debug mode , the output window shows that memory has …

Member Avatar for Salem
0
151
Member Avatar for Melab

I'm looking for a very easy to use compiler that I don't have compile or download any other stuff for and on that is a GUI app.

Member Avatar for Narue
0
79
Member Avatar for sunveer

I want help in reversing a string without using another array. a string "Hello" should be printed as "olleh" Please help.

Member Avatar for Narue
0
166
Member Avatar for volscolts16

Hi everyone, I have a project that I have to do in C++. I have already done a very similar project in Java in another course. It's kind of amazing that the teacher that was teaching the java course got all of her materials from the C++ teacher. Anyways, my …

Member Avatar for volscolts16
0
101
Member Avatar for brezzler89

The code I have thus far is as follows: [code=cplusplus] /*-------Header (head.h)-----*/ #include <iostream> #include <cmath> #include <iomanip> #include <cstdio> #include <cstdlib> #include <ctime> using namespace std; #include "fcn.cpp" #include "Montecarlo.cpp" /*-------Main Source (prog.cpp)---*/ #include "head.h" int main (void) { Montecarlo(); system ("pause"); return 0; } /*-------Source file (Montecarlo.cpp)---*/ void …

Member Avatar for brezzler89
0
244
Member Avatar for Newguy89

the program should print 1 this one should have six spaces and then 1 22 5 spaces then 2 333 and so on 4444 sum reason when i post here it aligns left 55555 666666 though it prints... 1 22 333 4444 55555 666666 [code=cplusplus] #include <iostream> using namespace std; …

Member Avatar for Newguy89
1
107

The End.