Beginners - October 2014 (Page 16)

Please help a poor fellow out, tokenizer
 
I am having hard time getting next line from my tokenizer //----------------------------------------------------------------------------- // Tokenizer def...
[1 reply] : #include <stdio.h> #include <string.h> #include <iostream> const in... (by closed account 48T7M4Gy)
Vowel Counting Program Problems
 
I am making a program that is supposed to check how many vowels are in a string of characters, it works fine except when a space is included, in these cases it ...
[5 replies] Last: Thanks! Works beautifully now! Plus I learned a bit which is always a ... (by closed account 2hfG1hU5)
recursive function help
 
does anyone have any idea how one could implement a recursive parsing function that will create and return multiple objects that can be accessed using a map and...
[no replies]
by Jjabes
Help solving a code
 
I have this homework to complete but i dont have the sightliest clue :/ // This program will read in the qunatity of a particular item and its price. // I...
[2 replies] Last: ? (by Jjabes)
by tirexc
Sentinel value question
 
What statement should i provide that would tell the user which is the sentinel value in this code? #include <iostream> using namespace std; int main(...
[4 replies] Last: ok thanks man (by tirexc)
Opening a text file from a command line argument
 
I am trying to open a file from a command line argument. I've debugged my program: when I print the value of file it gives the value <incomplete type>. when...
[1 reply] : ifstream file (argv ); Think about how many elements are in the arra... (by norm b)
3D array
 
So i have this assignment where im supposed to create a number using an array. For some reason i get a red line under the first brace of my array. I don't know ...
[4 replies] Last: Are you kidding me....how did i not see it. Thanks for the help. (by skimmer001)
Read text file.
 
My question is, we were given a homework assignment and it comes with a .txt file that we need to read and then sort. The .txt file has scores on it like thi...
[4 replies] Last: There's many questions like this, I would try searching if you want a ... (by Ganado)
Grading program problems
 
I have been trying to complete this program for weeks, and I could not complete it. On the output text file, it isn't outputting anything. #include <fstre...
[2 replies] Last: You can initialize out like this: ofstream out("file.txt"); ... (by fabtasticwill)
container template??
 
Hi am wondering if is possible to write a function that can use any type of Sequencial container such a vector deque, list n the likes?? /// can do som...
[4 replies] Last: Thenk you very much my template function is now working fine on all co... (by closed account SECMoG1T)
choosing between inheritance and compostion
 
when we are designing..when we have to give importance to inhertance and when to compostion..(compostion vs inheritance).. please explain me with a code snip...
[1 reply] : Use composition when you can and inheritance when you have to. Use pu... (by MiiNiPaa)
why pointer and new ?
 
what is the advantage of using pointers? will it give me more performance? or what? please give me some examples and what is new and why should i use it. ...
[3 replies] Last: oh okay ! thank you !! (by xxgixxx)
Divide code into function or not ?
 
Hello :) I just wrote a big program(for me it seems big) and wonder if I should divide instruction blocks in separate function or leave all in the main functio...
[10 replies] Last: @xxgixxx - If you're coding in C++, the preferred style is to use refe... (by AbstractionAnon)
by iluv41
alternative to .getline?
 
I am asking for a single character from the user so i can search for the items in an array that match the character. Each character corresponds with an Enum typ...
[4 replies] Last: Yes. You could do: char findCat; cin >> findCat; That... (by AbstractionAnon)
How to Center Text in C++
 
Hi, I'm using visual studio for C++ program and want to center my menu list at the center of the screen. How can I do this? I've tried using something li...
[1 reply] : If I recall correctly, the standard console window is 80 characters wi... (by Esslercuffi)
by clodi
OOP quick question (constructors..)
 
Write your question here. class Lattice { private: //private members Site site[ NSITES ]; Atom atom[ NSITES ]; ...
[5 replies] Last: Another thing new in C++11 is constructor delegation: class Circle {... (by MiiNiPaa)
by drax
string arrays loop
 
Hi, In my code I would like to search through both arrays, to find if they have a matching string, and then get outputs, only for if both arrays have that st...
[5 replies] Last: Thank you so much! (by drax)
by iluv41
Searching an array for enum type
 
I have an array that has types char, char, int, and enum type Category. I have to search the array for the entries matching a certain Category. How would I d...
[6 replies] Last: nevermind, I used accessor functions instead of .category and .title a... (by iluv41)
calling a program
 
How could one call a program inside another program please help. Thanks in advance
[4 replies] Last: So far I have no idea regarding ShellExecute() execvpe(), system () ,... (by closed account SECMoG1T)
Visual Studio Step by Step F11
 
Hello everybody, When i push F11 to debug step by step in C++ Visual Studio, it takes me all through intern files and classes. For exemple, if I have a "cout"...
[3 replies] Last: Oh yes, very useful using F11 and F10. Thanks dudes (by JasBeckC)
October 2014 Pages: 1... 1415161718... 70
  Archived months: [sep2014] [nov2014]

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