Beginners - July 2014 (Page 12)

by ameneh
Different Mersenne Twister in different object
 
Dear All I am working with Mersenne Twister in the distributed network. In the network I have a different nodes which have different IDs. These IDs are genera...
[7 replies] Last: Random number engines (like std::mt19937 ) are required to generate i... (by JLBorges)
Set() from one class and Get() from another
 
Dear all, I have some experience in c++; but in involved OOP, I am relatively inexperienced. I am trying to do the following: I have two classes: A and B. In A...
[8 replies] Last: Let's say that you want to ask your colleague Alice about something.... (by kolahalb)
by MSH
How can an int be converted to a char
 
I would like to store an integer to a character array and then display the character (which would be an alpha numeric at that point?). I tried casting to char, ...
[9 replies] Last: @dhayden sure he wont understand a single thing if he just use sprintf... (by xenovia12)
develop simple system for business
 
A developer wants you to develop a simple system to monitor his business processes. The processes include received orders from buyers, check availability of s...
[5 replies] Last: Okay, so each item of stock has a name and an amount. You need a coll... (by dhayden)
PDF
 
This morning i joined an organization that will teach programming to other freshmen for their preparation (im freshmen too)... then they assign me to teach java...
[8 replies] Last: @mutexe i think it would be worst if i ask on java forum because ,like... (by xenovia12)
find longest word in file
 
how can i find and print the longest word? #include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace st...
[2 replies] Last: Just to show you how it can be achieved (without the file stuff): ... (by Codermik)
Read from text, Write to Binary
 
I created a text file with comma separated data and I want to read from the text file and then write to a binary file. The code compiles, but when I look at th...
[2 replies] Last: Also, you are actually writing text in a binary file. Just that you ha... (by writetonsharma)
Undergraduate Project Topic
 
I am new here and i am wondering if any one here could assist me design a project program.
[1 reply] : Could? Probably. Should? You have to convince us with more precise... (by keskiverto)
Error: expected ';' before '{' token.
 
Hello! I am trying to make a simple function that outputs a grade for a person based on the amount of points they received for a given test/assignment (this mea...
[8 replies] Last: Thank you all so much! I found all the bugs you pointed out and fixed ... (by cplusone)
going from numbers to barcode
 
I need help going from numbers in a code and encoding this into a barcode in a function. Honestly I'm just really lost and dont even know what to do and I could...
[8 replies] Last: @ppate215 as mentioned above Line 49 is just for Debugging purpose bec... (by Atyab)
plot a 2d line
 
Hi, I'm new to c++, and now I need to plot a line according to several points(x,y). Is there any easy library i can use? It doesn't need to be fancy, just need ...
[2 replies] Last: SFML 2.1: sf::Vertex line = { sf::Vertex(sf::Vector2f(50,50)); ... (by memberfunction)
strtime issues
 
Im kinda stymied by the fact that _strtime is in the 24 hour format.. Can somebody point out how to convert this to 12 hour format? /* Turbo c++ is my des...
[2 replies] Last: http://www.cplusplus.com/reference/ctime/strftime/ You should give it ... (by giblit)
Code continues to repeat
 
My first output keeps repeating (i.e. number = 24 | output= 00000000000000.... Could someone please explain it to me. I have had the same problem when using lo...
[2 replies] Last: CORRECTION: I was able to resolve the problem, thanks so much. The po... (by pasports10)
stuck at beginning of task
 
I've been having problems displaying 36 numbers in a .txt file in 5 rows as a part of a 2d array. my "scores.txt" file contains 67 64 93 81 92 98 13 7...
[14 replies] Last: endl is used for printing new line. It's obviously. Just changed it ... (by lsk)
by pudgz
Creating multiple output files using ofstream.
 
I've been working on this sales problem that has me write a program that takes in a list of salespersons ID number(1-10), item number(7-14), and quantity, examp...
[2 replies] Last: wooo! awesome! thank you so much! your comment on my line 58 saved me ... (by pudgz)
by CDavis
Dynamic Allocation
 
So I'm having a hard time getting the concept of this and not really sure where to go with this code. I know it is not right and I don't want to get too far wi...
[1 reply] : This is a C++ forum. You are posting C code. The terminology in the ... (by cire)
problems with my function
 
Hello I have been writing a function in c that reads data from a file of this format: the_dragon! *I_will_eat_you! *66*34* the first line is the name of...
[2 replies] Last: that fixed the infinite loop but its still not reading the data into h... (by tomplusplus)
by talya7
Format of Output and put_money
 
I am trying to format my function so that the output has a space between the headers and using put_money a dollar sign in front of the values but when I try thi...
[2 replies] Last: Dollar signs before the amounts do not appear when I do this. Also the... (by talya7)
code help
 
Why doesn't this work? #include <iostream> using namespace std; int main() { int x; cout << "what percent did you get? \n"; cin >> x; if (x <= 100 && x >...
[6 replies] Last: Thank you! (by Mytricks)
getline(cin, VAR) not working in do/while loop if repeated
 
Hello, I would appreciate some help on this. below is my program so far. The "isinputgood" function is a placeholder for now. I'm using getline(cin, sInputDa...
[1 reply] : nevermind. I needed a cin.ignore() and cin.clear() after line 45 for t... (by Entropy)
July 2014 Pages: 1... 1011121314... 43
  Archived months: [jun2014] [aug2014]

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