Beginners - March 2014 (Page 37)

by oajfh
Building string class
 
Greetings, A friend of mine is Learning C++ and he was given the assignment to create a String class that would implement constructor copy and '+' and '=' ov...
[2 replies] Last: Hmm, I don't think that's detailed enough. Besides, I think the code i... (by oajfh)
by buliga
Bubble Sort
 
Hi, can you help me please? I need the easyest bubble sort programe to put in alphabetical order 10 words. Who can help, please write the solution of this...
[2 replies] Last: nothing, because our teacher haven't explain us the way we should do i... (by buliga)
by Ram1
Please help
 
Write a function that receives a positive integer and display each digit of such integer one digit per line. For example, if the integer the function receives 2...
[6 replies] Last: I see, [quote=Ram1]I'm doing an exercises from my book, I need help wi... (by keskiverto)
Function Help
 
Hello everyone. I just have a quick question about my program. My program is basically a vector of a structure that holds an int, 3 strings, and a double (stude...
[4 replies] Last: http://www.cplusplus.com/articles/Gw6AC542/ (by keskiverto)
by F1n
Code::blocks doesn't recognize <iostream> during compilation
 
Firstly, I'm new to the language and to programming as a whole so I apologize in advance for my "newbishness", for lack of a better term. I recently downloaded ...
[4 replies] Last: I believe the issue was fixed when I manually selected to build the pr... (by F1n)
by Alby94
Namespace
 
What does the (default) clause together with the namespace declaration? Ex. namespace std _GLIBCXX_VISIBILITY(default) {}
[no replies]
Splitting file in mulitple files
 
Write your question here. I am trying to create a file splitter that reads a file and split it into three files (one.txt, two.txt and three.txt) with five reco...
[1 reply] : Without having tried this, you need to set line_counter = 0 again at t... (by fafner)
I don't understand why it does this...
 
Hi thanks for reading. I am learning some of the basics and I wrote a really simple program to practice them. One of my functions behaves differently depending...
[2 replies] Last: You must be right, adding sync solved it. Thank you. Appreciate the li... (by jiketsu)
Why does getline allow an int
 
According to your ref getline, 'Extracts characters from is and stores them into str ' So why can I say, int someInt; cout << "Enter value"; getline(ci...
[4 replies] Last: No, no. I was talking out of my ass. Ignore me, listen to Peter. (by Ispil)
Bubble sorting - stuck please help
 
Hi I really need help I am stuck on an assignment where I need to sort a list that is in a .txt file by name and then by year using bubble sorting. I figured if...
[1 reply] : Ok I managed to get my sorting function complete however when I sort b... (by Spector)
by Ram1
Please Somone help with this question ASAP
 
-write a function that receives two positive integers x and y. The function calculates and returns the greatest common factor of those two numbers. Please He...
[12 replies] Last: Thank you i did it.. (by Ram1)
ARRAY FLOWCHART & .DAT FILE!
 
I've been given a flowchart to code an array...only problem is I have no idea where to start. I've done countless research on how to code the array but haven't ...
[no replies]
by Ram1
Please help with is program
 
write a function that receives an positive integers x, and then display following matrix: 11 12 13...1x . . x1 x2 x3...xx Please help.. T...
[11 replies] Last: So, what your looking at is something like this... #include <ios... (by Codermik)
Please explain
 
Give the output of the following program. 3 Please explain #include<iostream.h> void sumfn(int last) { ...
[8 replies] Last: Thank you all... Yes, definitely I will learn tutorial ... Thank you f... (by Suma Menon)
Max of Numbers
 
So I have a simple problem that I've been working on and I'm having some scope issues. My program is supposed to have the user input how many numbers he/she wan...
[2 replies] Last: Ok so you can pull a variable out of the scope of the loop I just had ... (by RobGillespie)
Help with Plinko please
 
This code is from my main function. In a nutshell, I want the function multchip_slot to evaluate for the integers 0 - 8. However, I don't know how to get th...
[2 replies] Last: Thanks so much! Great answer. (by Stephenpoole4)
by enemy
Constant pointer life time
 
hello! please if we have a constant pointer like: int a=1; int b=2; int c=3; int* const pa=&a; /*pa=&b or pa=&c; are ERRORS cause pa is only ...
[2 replies] Last: THANKS!!! (by enemy)
How to get vector pair in numerical order (lowest # first)
 
so let say my infile looks like this 3212 rrrr 11 wrwn 233 mtgn 1561 fffse 3166 whbeh How do I get my output in the order? #include <iostream> #...
[5 replies] Last: How to use tags: http://www.cplusplus.com/articles/jEywvCM9/ (by keskiverto)
Newbie c++: find and save the max, min Index of vector
 
Dear Experts, I am a regular Matlab User and just switched to Cpp for a small project, thing are quite different and difficult than what I think as compared t...
[4 replies] Last: That code requires C++11. Either compile with -std=c++0x Or try this... (by JLBorges)
How to write this program in a file?
 
How to write this program in a file. And i need to add 10 more case but i am out of ideas it's not necessary but my mark will be higher if i do it. #inc...
[no replies]
March 2014 Pages: 1... 3536373839... 79
  Archived months: [feb2014] [apr2014]

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