Beginners - April 2010 (Page 12)

Character array
 
Hello, I'm trying to get a word/sentance as input, save each character into an array, then output it backwards. #include<iostream> using namespace std; ...
[3 replies] Last: ahhhh I see what you did thur... Yea i'm sure there's more efficient ... (by FohTwin)
by razta
Object function not returning values
 
Hello, My function is not returning any values. main() int main(void) { txrx data; modules mods; int sa = 0; int da = 0; int status = 0; ...
[3 replies] Last: You sir are a true gentleman! Thank you very much for helping me under... (by razta)
is this legal?
 
hello guys, can someone tell me why is this legal... extern int neg(int x); #define neg(x) (-x) ... y = neg(i+j); ----------- actually this is a hw ...
[4 replies] Last: ok thanks a lot guys (by newNode)
by EEVIAC
trouble with enumerator
 
I cannot figure out how to get the input of the "desired grade" to increment , in the final output. I have no idea if I'm even using the enumerator correctly....
[3 replies] Last: Well 'A' is 65. (by oghmaosiris)
Icon
 
Hello to everyone... i'm new in C++ Programing, so i got one problem... I have created my program (in CMD) and I want to change the icon... it is possible ???
[2 replies] Last: http://www.cplusplus.com/forum/beginner/22523/ (by blackcoder41)
cin.get() vs system("pause")
 
whats really the difference between the two? is there advatanage of using one over the other? i know that cin.get() will work on other OS like linux too and tha...
[3 replies] Last: but is one faster than the other? Faster??? I don't think it mak... (by cnoeval)
by badass
issues with objects storing lists
 
so basically i have a row class which stores a list of characters as a doubly linked list and i have a maze class which i want to store row objects as a doubly...
[8 replies] Last: +1 moorecm What OP is calling his copy constructor is not a copy co... (by jsmith)
by EEVIAC
compile error
 
I can't get this to compile. Please Help.. #include <iostream> using namespace std; int main() { const int Size = 20; char FirstName ; char LastNam...
[4 replies] Last: yes, that works... heh, your right.. The program WAS doing what I ... (by EEVIAC)
Tic-Tac-Toe Problem
 
I'm trying to make a Tic-Tac-Toe game and have the controls relatively done but don't know how I'm going to save the location. If anyone has any tips or even a ...
[4 replies] Last: p.s. as to the block of code u might want to use a for loop that make... (by justAbeginner)
A confused question,what do I learn?
 
I have a confused question.I have already the foundation of C++. I'm beginning to programm with MFC.However,I know MFC has not updated for a long time.Many peop...
[14 replies] Last: Hello, magnificence7 I want to learn to program for linux/unix,... (by fengshuiyue)
Using "ccc_win.h" on Xcode
 
I have to program something with graphics for a class, but while using xcode with #include "ccc_win.h" I get. error: ccc_win.h: No such file or directory I g...
[1 reply] : Ok I downloaded some libraries but I have been getting all sorts of we... (by TommytheCat)
openCV - comparing RGB pics
 
hi everyone, i am trying to compare between two RGB pictures by comparing there histograms on visual studio 2008 i am having few problems: 1. when spl...
[no replies]
Can't use function of object in pointer
 
Okay so basically I've got a vector, thePointerTest, that is holding pointers to pointerTest objects. What I need to know is how to call the print function for...
[4 replies] Last: Yeah I just realized that while looking at another post on here. It h... (by Woden501)
Recursively increment variable used in many calculations
 
Hi! My program currently works, but I need it increment using only recursions, not loops. The program needs to output a number (x), its square root (sqrt x), ...
[2 replies] Last: Your function will need to also take an integer that will be incremen... (by closed account jwC5fSEw)
Tic Tac Toe animation
 
I wrote a Tic Tac Toe program and it works perfectly except I'd like to improve it a bit better by having the board refresh slowly instead of just clearing the ...
[3 replies] Last: Consoles don't do "slow" outputs. Provided I understood what you meant... (by Albatross)
Using different user-defined functions?
 
Hello all, I just started c++ this semester and I'm totally lost now. I did okay in the class up until now but this assignment totally has me confused, I'm not...
[4 replies] Last: http://cplusplus.com/forum/general/22636/#msg118671 -Albatross (by Albatross)
by Jimble
Word counting (multiple word occurrence)
 
Hi folks, I'm trying to write a function that will take an input string, entered by the user. And count each occurrence of each word. So for example if the i...
[13 replies] Last: Nevermind, it should be oneword.size(), now it works. Just have to fig... (by Jimble)
const argument modifier
 
Hi to all, Hope you are having a nice day/night I've been struggling with this code for an hour or so, and I'm not sure what I am doing wrong. Class Cons...
[2 replies] Last: Thanks Gulkan, I really appreciate your help (by Celythar)
by zinogg
New To arrays, Addition
 
I had to add two arrays with each other so this the initale program thati wrote it work fine but is there any other solution more optimized where i would use ...
[5 replies] Last: Ah that's right it's useless a mistake i made ,but the compiler didn't... (by zinogg)
Wage Code Problem
 
im just a beginner, how do i complete this so it works? #include <iostream> using namespace std; void main() { double hourlyRate; double hoursWork...
[17 replies] Last: Well, no clue whats going on. this is the first class on computer ... (by hanst99)
April 2010 Pages: 1... 1011121314... 35
  Archived months: [mar2010] [may2010]

This is an archived page. To post a new message, go to the current page.