Beginners - November 2012 (Page 39)

Recursive function for sorting in array
 
Hi all, i have this mini program that generates randomly 15 to 25 sized array. This array then randomly generate lower and upper case letters. So far i have g...
[1 reply] : Minor point: C++ already has an std::swap() function in the algorit... (by Catfish2)
MadLibs play again Option
 
So I am trying to make a madlibs program that will ask for a file and open it, read it, and ask the user for input, then input the words in the story and displa...
[6 replies] Last: What did you mean by that? when I change it around, it will delete ... (by keikepono)
Why is there error?
 
i get error : 1>c:\digit_string.h(39): warning C4018: '<' : signed/unsigned mismatch 1>c:\digit_string.h(40): error C2110: '+' : cannot add two pointers ...
[8 replies] Last: To fix the error: in WCS_String you need to declare: friend char* op... (by Stewbond)
No errors just weird results from rand
 
I can't seem to get the right results for the program. It's a random and you press d to deal again and x to get out of the loop. Help is appreciated, thank you....
[3 replies] Last: Lol. void Lots_of_code doom3 had ~609000 lines of code. (by pogrady)
Having trouble incorporating a function into my main function
 
Hi guys! Long time listener, first time caller here. I'm doing a hangman program, and I know exactly where I'm stuck - I had to build a function that tested a g...
[5 replies] Last: cire - fortunately or unfortunately as it may be, I got no compiler wa... (by kevmeister77)
Guys need a fast help -- i have to submit my assignment at midnight
 
What should i change to make this both compile??.. one of the errors in my digit_string.h is not the right loop.. please help me by giving the right loop.. and ...
[5 replies] Last: Thanks yes u can trust me but still errors are there ): (by boazgeorge)
Logic error, reading from file stream.
 
I'm having issues reading in from a filestream The code where the error is located. Customer::Customer() { static int nameNum = 1; ifstream fin1("name...
[1 reply] : I noticed that I initially posted the wrong class... fixed. (by chrisdayt)
undclared identifier
 
i keep getting the error for an undeclared identifier for customerprice, customerprice2, customerprice3,ticketamt help i can't figure it out # include<io...
[2 replies] Last: i actually fixed the identifier problem somehow really dont know how b... (by bethisawesome)
by AnnT
Not understanding functions with two dimensional arrays
 
I'm new to C++, so far have been doing good with my assignments. Now I have a problem understanding functions with arrays. Homework is to read in names into tw...
[1 reply] : Can you post your full code? Use the buttons on the right of the dialo... (by macleight)
please help
 
not sure why but im getting the error code c2059 for my last curly bracket and i cannot get my programm to run need help asap # include<iostream> # include<st...
[no replies]
Pointer Usage
 
Okay, so I got a program that I'm suppose to analyze and I pretty much understand most of it, but I'm having some difficulties understanding funcC. The output i...
[2 replies] Last: ooo okay thank you that was a lot of help! (by brainmush)
array in case structure
 
Can i have an array value in a case structure ? The program repeat storing 10 calculating value's to be displayed how will the array be intialized in the case s...
[3 replies] Last: any advice ? (by Madmax86)
need a help
 
how can i make a program that reads from an input file as following : the input file contains TWO lines: the first line contains length of the ladder , the num...
[1 reply] : You should read a whole line with std::getline and then extract each v... (by vlad from moscow)
by jsnc
logic problem
 
Hello, I'm in a basic logic class and every week my professor has us copy a C++ program line by line. This week we're doing using a loop to populate an array ...
[1 reply] : You should check whether the input file was opened. (by vlad from moscow)
Making one string out of another?
 
I am looking to remove punctuation and spaces from a string and I thought I could do this by checking with isalnum()and inserting alphanumeric bits into a new s...
[1 reply] : You forgot specify parentheses. Write finalInput += ss.str () ; inst... (by vlad from moscow)
which is prefferable? cinn>> or getline for string
 
Here name, roll and cl are strings. when i use cin>> for all it dont take second input and when i use getline (cin,) for all it skip first input. cout<<"\n\t...
[6 replies] Last: The getline() function reads everything, including the '\n' (which is ... (by Duthomhas)
Programing in "C" ---help
 
hello,,, can someone help me ,,i am beginner in this,,, this is my home work: Write an algorithm that will be of three integers find the maximum and mini...
[13 replies] Last: cout << " Diff " << (max-min) << endl; (by SamuelAdams)
Creating a Christmas Tree
 
Hello, I have an assignment to create a christmas tree in c++ and I have tried everything i can think of and it is driving me crazy. I am supposed to use 3 n...
[8 replies] Last: For reference: int x = 3; int y = 3; int a = ++x; //pre-increment: x e... (by LB)
Help neeeeded fasttttrt... urgent
 
Please help me These are the errors that i get 1>c:\users\digit_string.h(37): error C2143: syntax error : missing ',' before ':' 1>c:\users\main.cpp(47): err...
[6 replies] Last: Also how to fix the loop. (by boazgeorge)
by dioing
average
 
#include <iostream> using namespace std; int n; int m ; int i; int average; int main() { cout << " Introduce one value between 0 ...
[9 replies] Last: one big thank you ! I'm realy bad in c++ ! (by dioing)
November 2012 Pages: 1... 3738394041... 75
  Archived months: [oct2012] [dec2012]

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