Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #3K
~4K People Reached
Favorite Forums
Favorite Tags
Member Avatar for angel6969

Write a program that will read in a sentence of up to 100 characters and output the sentence with spacing corrected and with letters corrected for capitalization. In other words, int the output sentence all strings of two or more blanks should be compressed to a single blank. The sentence …

Member Avatar for cbsinc
0
2K
Member Avatar for vivosmith

Hello I am glad to find this site. I have been searching for help with learning C++, to no avil. So my question, which is multi-fold: I have a book from 10 years back or so, ansi compliant, should it work with dev-cpp. Second, I learned the difference between char …

Member Avatar for vivosmith
0
564
Member Avatar for Afupi

My goal in this program is to solve for the 12 unique solutions for the 8 queens problem. All the below posted is my code. I believe that my findSolutions function is capable of finding the first solution but I have a couple issues from that point. If the user …

Member Avatar for Afupi
0
448
Member Avatar for Galf

Hi guys, Design question: I have a class that contains 2 vectors, and I'd like for that class to provide a public interface to access the next element in either list. The easy way to do it is to obviously return the list itself, either const or not, but this …

Member Avatar for Galf
0
102
Member Avatar for merse

I have a pair member data in a class: pair<double,double> memory; How can I change the firs or second element? If I simply write memory.first = 42 the compiler says read-only structure If I use memory = pair<double,double>(42,42) than: error passing 'this' argument I dont understand, please help me

Member Avatar for Galf
0
74
Member Avatar for mani_singh

hello all, i am trying to make a program using nested for loops that outputs a triangle made of *. so far i have part of the triangle, but am having diffuculty finishing it. my code so far: [CODE] #include<iostream> #include<conio.h> using namespace std void main() { int n = …

Member Avatar for Galf
0
111
Member Avatar for sho12345

Hi everyone, I am having problems with my c++ code for about 2 - 3 hours now and decided I need help. I am a student at a college and I am trying to code this for my assignment. cpp file:[CODE] #include "bridgehand.h" BridgeHand::BridgeHand() { for (int x = 0; …

Member Avatar for Galf
0
169
Member Avatar for mbrinkley

I have been working on this program for about two weeks. I missed the day that the professor covered the material necessary to code this program due to surgery. I am now behind about 5 programs that are due at the end of the week and I'm trying to teach …

Member Avatar for mbrinkley
1
172
Member Avatar for lgonzo

was hoping someone with more experience could look over and tell me if these answers look alright. in red is what i got -- srand: a. Should be called before each call to rand. [COLOR="Red"]b. Should be used instead of rand to generate truly random numbers.[/COLOR] c. Is unnecessary in …

Member Avatar for Galf
0
357
Member Avatar for Galf

Hi guys, I'm writing a simple function to return the file portion of a path. Strangely, the results I'm trying to duplicate accept something like a/b/c\d\e\file as a valid path, so I'm really just searching for the last occurrence of a slash or backslash. Anyhow, I'm curious what your thoughts …

Member Avatar for Galf
0
160
Member Avatar for Galf

Hi all, I'm a little wary of posting this, since there were no posts on autoexp.dat, and this is a general C++ forum, but I thought I'd give it a shot. I'm trying to create an AddIn to display some custom datatypes for an application that uses RogueWave. I created …

0
58
Member Avatar for Galf

Hi all, My first post here -- I've been trying to update some old code that uses C-style casts into the C++ equivalent, and I've stumbled on one cast that I can't figure out how to convert. This isn't the code that was giving me issues, but it reproduces the …

Member Avatar for Galf
0
171