Beginners - March 2014 (Page 24)

by matt93
Txt file comparson C++
 
I want to create a console app in C++ to compere to txt files I found a tutorial but cant seem to get it to work i'm still quite new to C++ please help Example...
[no replies]
Sort Descending and Ascending
 
Hi ; Please help on the code below. I want sort the names entered by the user in Ascending and descending order but the ascending order is not working and I h...
[4 replies] Last: I would like to add one more option, you can also use reverse iterator... (by naraku9333)
THANK YOU
 
I just wanted to say THANK YOU to all of you experienced members who take time out of your day to help people, like me, that are struggling through homework. T...
[2 replies] Last: really? for instance? what are we learning to do the wrong way? I wi... (by tdenning)
by enemy
eclipse
 
Hello! Please, does someone know how to get line numbers (left!) of the code lines on eclipse? Many thanks!
[2 replies] Last: I used to use Eclipse CDT, remember it was in settings -> text editor (by closed account EwCjE3v7)
Adaptive Dictionary
 
how do you add a string to one of the strings that are empty in a array of strings. The purpose of this project is to add new words being found in a message. ...
[no replies]
Make a vector of strings from a .txt file
 
Hello there, I was wondering how would you make a vector from a .txt file. I need it for this country game. I would like to import country names form a .txt. H...
[4 replies] Last: Yep got it, Thanks (by closed account EwCjE3v7)
by jb1200
Creating an inverted triangle using **
 
wqdadfa
[5 replies] Last: I edited the post with a code snippet. Basically you can find the rela... (by wildblue)
Multiplication tester via C++
 
I'm working on a program that will allow my daughter to be quized by random generated multiplication facts, and let her know if she got the correct answer or no...
[5 replies] Last: update - I'm going to attempt to build my original code differently (by mebruler)
trying to make a file to hold a class
 
ok so I have been trying to split into a separate file one of my classes but every time I try to use a string [some name] it errors the string and is so confusi...
[no replies]
by asrat
Console disappear
 
Hello I wrote simple "Hello World" console application in codeBlock. it works ok. Now same code does not work in CodeLite. Consolw window Flashes ou...
[2 replies] Last: I know in one of my c++ programming software you had to put in a comma... (by morngrym)
by jb1200
Integer Adjustment Problem
 
ffghfh
[1 reply] : If you want to repeat an action until a condition is true, you probabl... (by wildblue)
Help - Void functions with bool returns
 
So, I'm trying to get the printReport function to display the specified outputs using the pre-established values of the bool variables. For example if you input...
[2 replies] Last: Thank you for the assistance. I'm sure my style has much to be desired... (by msnyder0021)
by Pabel
stactic variable is shared as global variable
 
Hi, I have doubt about static variables declared in a header, if I declare the variable "numero" as static global variable in a header file (arch2.h) , then...
[5 replies] Last: That I was trying is only see how works static global variable in a he... (by Pabel)
Pyramid of name
 
HellO! I dont know how to make this pyramid, but with loops : -----jack ---jackjack --jackjackjack jackjackjackjack
[no replies]
Fahrenheit to Celsius function
 
For my class I need tabular view or celcius to fahrenheit and fahrenheit to celcius as described.... I'm trying to do basic mathfunctions called by main... any ...
[12 replies] Last: Actually, you can leave that off. You get the same results if it's a 2... (by whitenite1)
Question of class
 
well I have this class which I call Critter and I use it to load a critter with with Critter* Mobs; Mobs=new Critter; I want to try make another class (e...
[2 replies] Last: thank you the learncpp seemed to make more sense and I believe I got i... (by morngrym)
by jf1963
switch question
 
i did a simple test program using if - else statements and i am converting it to the switch statement but not doing to good. if (a < 80 && a > 69); cout...
[4 replies] Last: Yes. Use whatever best accommodates the situation. If you're checking ... (by Renthalkx97)
Greedy problem
 
I need help in a greedy problem which is like this : I have pairs of numbers like (x y) I know the number of pairs and I know that the first number is bigger ...
[no replies]
Precedence and postfix ++
 
What I don't get here is that the postfix ++ has greater precedence than the dereference operator, right? cout << *pbeg++ << endl; // pbeg is a iterator...
[2 replies] Last: Thank you so much, that clears so much. (by closed account EwCjE3v7)
Dividing char *array into words.
 
I need help with dividing char * array into words separated by "space". I have char *arrayOfNums = "1 14 23 2 13" and I need to get: arrayOfNums = "1", array...
[3 replies] Last: thank you very much! you've decided my problem! (by goniavinsky)
March 2014 Pages: 1... 2223242526... 79
  Archived months: [feb2014] [apr2014]

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