Beginners - November 2013 (Page 41)

by h4ever
reverse beginning & reverse end, may you explain?
 
I am reading about vectors and one part is confusing to me. The reverse begining seems to me more clear, but I need to make sure so I ask you: http://www.cplus...
[5 replies] Last: The vector does not change, so since 5 is the last of {1,2,3,4,5}, it ... (by keskiverto)
by Deigo
Assistance with templates plz
 
I want to write a program that uses a template list that is able to manipulate integers, float & characters . by means of an array that can hold 5 generi...
[2 replies] Last: i have been up for atleast 15 hours and i cant figure it out Maybe t... (by MikeyBoy)
Help with pointers
 
Hi everyone, i'm having some difficulty with the output of my pointers. I'm fairly new to this so I know the code is probably sloppy. I'm just messing around wi...
[5 replies] Last: It printed the same thing yours did (by Dreilly91)
Dynamically resizing a stack, in C.
 
Hi everybody. I have trouble dynamically growing a stack. Any help will be appreciated. So, I have... #define CAPACITY 128 typedef double ElemType;...
[3 replies] Last: Hi, @catfish i didn't know "realloc()" also copies the values ( begine... (by fluppe)
SFML on Mac OSX
 
***update*** Okay, I realized that I just needed to create a new Templates folder with that file structure, and now Xcode does show the SFML templates in the Ne...
[no replies]
convert class object to string
 
can anyone provide me the small sample code to convert class object to string ?
[1 reply] : Which class object? You will have to give more information about how y... (by abhishekm71)
Prime Numbers Break error
 
I made a program that will print out all prime numbers up to a certain number the user desires. For instance, the user wants prime numbers up to ten, the progra...
[3 replies] Last: number = 10; for(i = 2; i<=number; i++) { prime=0; for(x = 1; x<i; ... (by wwwiii)
passing array to a function by pointer and reference
 
I have writen the following code to pass the array by pointer but there is one error if the error is removed probably it would be easier to do it by reference ...
[4 replies] Last: Thank you it works now :) (by Sharan123)
Need help with program
 
Mr program is supposed to read a series of functions from an input file. Ex. 4 + 4 34 / 12.3 etc. Then my program needs to echo the function to an...
[no replies]
thread library not included in minGW?
 
#include <iostream> #include <string> #include <ctime> #include <cstdlib> #include <thread> using namespace std; int tickNum; int ticker(clock_t tick, in...
[1 reply] : when I right click on #include <threads> in code::blocks the file does... (by zakedodead)
about delete char** p = new char*[5]
 
If at last I delete p only, positions to which 5 pointer_to_chars points lost a name to access, is it a memory leak case? How to solve such thing? and each ptr...
[5 replies] Last: OIC thanks a lot, guys! (by q1670741824)
by nvrmnd
why am i getting undefined reference ( code::blocks ) ?
 
I'm experimenting on creating my own static library in code::blocks everything worked fine, i've compiled the lib, no error came up. now i've created anothe...
[3 replies] Last: another thing to mention there is a std::array class so you may want t... (by giblit)
by tim039
Sams teach yourself C++ 7th edition
 
hey everyone, i recently bought the book sams teach yourself C++ and i seem to be having some problems with it. for example this code should output 2 48 14 bu...
[4 replies] Last: Okay, the reason it is messed up is because you need to do #include... (by BHX)
Object-oriented Geometry Calculator
 
I'm taking a language-independent class (Programming Logic and Design) where we are programming in C++. C++ is not a requirement, and we are not being taught C+...
[3 replies] Last: Unlike Java, in C++ the decision to split your classes across files is... (by LB)
Need help with Prime numbers
 
Hello all, sorry for using the same title as everyone. There are some words in the code that are spanish, sorry D: In summary, what I'm trying to do is wh...
[3 replies] Last: Thanks, both of you, i can now sleep in peace. Btw, both solutions so... (by Kevin531)
Pseudocode and Flowchart
 
I need help to write a good psudocode and a flowchart for the following programme please:::::::::::: //complier directives #include<iostream> #include<io...
[1 reply] : No. This is a thinking question, and you need to think your way throug... (by Duthomhas)
by Kalob
I cant keep this struct bubble sort to work
 
I keep getting run time errors when running the following. Tree temp; bool swap; do { swap = false; for(int c=0; c <SIZE; c++) { if(dat...
[2 replies] Last: I think I figured it out, so don't worry about it (by Kalob)
Set file directory
 
Okay I'm pretty new to programming and all, and I need help setting where to save the file I create to. Right now, it continues to save to the folder where the ...
[1 reply] : You are using a fstream as if it were a string. Also, watch out for th... (by Duthomhas)
How to make a calender in C++
 
#include <iostream> #include <iomanip> using namespace std; enum Month {JANUARY = 1, FEBRUARY, MARCH, APRIL, MAY, JUNE, JULY, AUGUST, SEPTEMBER, OCTOBE...
[2 replies] Last: My professor wanted it in that format. I just trying to figure out wha... (by jakesweater)
I need help with algorithm for an Array.
 
Hey, I've been assigned to write an algorithm for the following statement, and I don't know where to start. Write a function named onlyValidScores which has...
[3 replies] Last: You might find the following useful, given the nature of your assignme... (by cire)
November 2013 Pages: 1... 3940414243... 80
  Archived months: [oct2013] [dec2013]

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