49,757 Topics

Member Avatar for
Member Avatar for woody0114

Trying to get an outcome that looks like this.. # ?# ??# ?# # What I'm getting is this... # ?# ?#?# compiles ok, but as you can see it places the # after each ? rather than grouping them together, and it neglects to count back down. Don't want …

Member Avatar for woody0114
0
124
Member Avatar for kutuup

Hey all I have a dynamic array of pointers to instances of a class ("Player"). The constructor for the Player class looks like this: Player::Player(void) { this->leftChild = 0; this->rightChild = 0; srand (time(NULL)); this->id = rand() % 1000; } The dynamic array of pointers looks like this: Tree* PlayerTree …

Member Avatar for mike_2000_17
0
129
Member Avatar for g_u_e_s_t

Can someone explain how to get this output? How do I trace this? Output: * ** *** **** ***** ****** ******* [CODE]#include <iostream> using namespace std; void Triangle(int x) { if (x <= 0) return; Triangle(x - 1); for (int i = 1; i <= x; i++) cout << "*"; …

Member Avatar for chrjs
0
121
Member Avatar for DKDeath

Hello again! Another noobish question :) Can PHP be ran in MFC? Can i add it right in teh html file or convert it over to php? or do i include it in html? do i create a box in c++ tat connects to the php page? or do i …

Member Avatar for DKDeath
0
385
Member Avatar for ac20734

I need help figuring out how to write a program with recursive functions in order to identify the path to a given maze. The maze is read in from a file and then when the path is found the maze is printed with the path shown. The read in maze …

Member Avatar for gerard4143
0
155
Member Avatar for Transcendent

I got my hands on the Accelerated C++ book and I'm trying to work the exercises. I want to see the solutions to see if I'm right and see how they did it and how i did it.

Member Avatar for arkoenig
0
1K
Member Avatar for purepecha

/* this program compiles is almost done, but i cannot get the las function to sort numbers from the array. the output should have the even number on the left and odd numbers on the fright.*/ [code=cplusplus] #include <stdio.h> #include <stdlib.h> #define N 9 void revArray(int *a); /* reverse an …

Member Avatar for arkoenig
-1
1K
Member Avatar for DKDeath

Hello! I'm a beginner in the worl of C++. I'm building a program that acts as a launcher for a game. In it I have Start and Exit button. What I want the Start button to do is start an .exe with extra conditions: IP and Port. [CODE] if (nResponse …

Member Avatar for DKDeath
0
886
Member Avatar for donaldw

I'm using the function CInternetSession::OpenURL in a "try" to open a webpage (a servelet which returns XML). The servelet take a little while to respond sometimes (around 13-15 seconds in a web browser). When it's slow like this, the code catches a CInternetException. Is there a way to see what …

Member Avatar for donaldw
0
399
Member Avatar for grebote

So I've only been programming for a few weeks, and I thought that I'd learn how to program by converting a rather complicated baseball board game to a program. I'm writing a preliminary program that stores player information from a card into a random access file. My Struct holds the …

Member Avatar for grebote
0
216
Member Avatar for trebor-pl

Hi, I am writing a program that allows to keep track of some racing records and to do this I need to be able to save objects on a external file and then load them with next startup of the program. As I am just a beginner I need your …

Member Avatar for trebor-pl
0
1K
Member Avatar for NickOOOShea

So, once again, this is a really dumb question. I am outsourcing some C++ Programming work for a game. When I say outsourcing, I mean India, so I will never meet these programmers. I was just wondering how I would get the coding off of them. Can I simply ctrl+c, …

Member Avatar for setherith
0
110
Member Avatar for htq2511

hi everyone. i am working on the tower of Hanoi code and got a very interesting question. Here is the code of Tower of Hanoi problem: [code]#include<iostream> using namespace std; void move( int n, char*s, char*i, char*d ) // s stands for source tower // d stands for destination tower …

Member Avatar for pseudorandom21
0
163
Member Avatar for determine

It's my first code. I put alot of effort into it. I just haven't been able to see if it actually works because tomorrow I go the the computer lab to test it. Positive and negative feedback is welcomed. Also, here is a link to the description of what the …

Member Avatar for user422
0
144
Member Avatar for Najeeb gb
Member Avatar for Ancient Dragon
-2
34
Member Avatar for MaDo4

Hi guys i am trying to write a program that counts the number of lowercase characters in an input file and display the two most used lowercase letters. My problem is I dont know how to get my program to count each lowercase character and save them into an array …

Member Avatar for MaDo4
0
120
Member Avatar for tomtetlaw

Something very strange is happening. I put a breakpoint in VC++ at the line [icode]char *arg[/icode] and string is what it should be. But as soon as I go to the next line, string changes to this: [icode]0x0012f864 ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌ[/icode] I really have no idea why this is happening and I …

Member Avatar for Ancient Dragon
0
113
Member Avatar for Dexxta27

How do I create a pointer for a struct. This is an example [CODE]typedef struct worker_t { char name[25]; job_t title; double payrate; double hours; }; int input(worker_t); [/CODE] I tried it here [CODE]worker_t employee[10]; worker_t* ptr_worker; *ptr_worker = &employee; input(worker_t employee[10]); [/CODE] I know how to use pointers on …

Member Avatar for Dexxta27
0
151
Member Avatar for jubba_us

need help adding feeting and inches together [CODE]#include <iostream> using namespace std; // introduces namespace std int main () { int ft1, in1; int ft2, in2; int ft3, in3; int total; int fft; int iin; cout << "The measurement in feet and inches" << endl; cin >> ft1 >> in1 …

Member Avatar for triumphost
0
151
Member Avatar for coolbeanbob

I can't figure out why I am getting this error. I have tried #include several things and I have tried changing the location of srand. #include <iostream.h> #include <ctime> class Horse { int position; public: Horse(); //Horse constructor??? Per UML int random; srand( time(0)); void advance(){ random = rand() % …

Member Avatar for sfuo
0
4K
Member Avatar for Frederick2

I'm doing command line compiling, and thought there might be some switch that would list starting and finishing time, but couldn't find anything. I'm using Windows, and trying to work with the default gcc/g++ from mingw installed with Code::Blocks. Or is there some way of doing this with some shell …

Member Avatar for Frederick2
0
354
Member Avatar for ezat2020

[CODE] // image - input image // result - output image // N - width of the image // M - height of the image void _medianfilter(const element* image, element* result, int N, int M) { // Move window through all elements of the image for (int m = 1; …

Member Avatar for ezat2020
0
184
Member Avatar for zack654

Can anyone suggest me some nice string tutorials because I found few of them but they seem pretty hard to learn (like one on [URL="http://www.cplusplus.com/reference/string/string/"]http://www.cplusplus.com/reference/string/string/[/URL] ) It should be native C++ string library because that is the one I started learning, So I would appreciate any suggestions... thanks

Member Avatar for zack654
0
132
Member Avatar for Xytheron

Hey all! So i've been working on a unix chat server and I think I've done a good job having no idea what I'm doing :-p. The only issue I'm running into is that I can't get it to go 1 to multiple. For instance, the idea is that any …

Member Avatar for Xytheron
0
148
Member Avatar for rbduck09

I have to create this C++ program for a class could someone please explain this more in detail for me Create a new C++ workspace called incomeTax. Construct a C++ program with a function called incomeTax which computes the tax due using the gross income and itemized deduction. • The …

Member Avatar for rbduck09
-1
100
Member Avatar for fabricetoussain

ok so i have this program here i had to finish, and it was for input and output files, i wrote everything, and even wrote the data.in and data.out files but when i run it i get nothing in return. do the files have to be in the ".in" format …

Member Avatar for triumphost
0
293
Member Avatar for pupucashu

The program takes a file with names and GPAs and sorts them in order of highest GPA to lowest using vectors. I cant seem to find out whats wrong with the code. Everytime i run it it says 'vector subscript out of range'. Can someone please help me? File: James …

Member Avatar for jonsca
0
424
Member Avatar for determine

I'm not sure where to start with this code. I would greatly appreciate if someone could write the code up for me. Here are the details. The program should prompt the user to enter the weight of an object on Earth, between 0 and 1000 pounds, and the name of …

Member Avatar for determine
1
307
Member Avatar for VasquezPL

Hi! I need to use if statement to check if its the summer time (CEST) or Winter time (CET)...But I dunno how to do that..Couldn't find anything useful on the INTERNET.my date format is (d-mm-yyyy) Basically I need to do sth like that [code] if DateTimePicker->Value>(31-10-yyyy) {time="CET";} [/code] THX For …

Member Avatar for VasquezPL
0
363
Member Avatar for patrioticparado

I have no specific question, though I could go on asking random questions for days. I am still rather early in the learning phase as far as c++ goes. I decided to post here for a rather different reason. I was Google searching for a problem related to getch() and …

Member Avatar for Narue
0
115

The End.