Beginners - June 2013 (Page 13)

I have question about ifstream!!!
 
Hi, I have question about the ifstream!!! I am taking algorithm class right now and have one project that sort words from large size text file. So in my progra...
[2 replies] Last: Thank you very much!! It seems work correctly now!!! thanks a lot!! (by munjo5746)
use vector as reference
 
hello, I'm writing a programme and I want to pass vector as reference. main.cpp #include <iostream> #include <vector> #include "Customers.hpp" using namesp...
[7 replies] Last: Unless you are planning on using polymorphism in the customers, don't ... (by ne555)
I come from China, I can learn it here?
 
I am a 17-year-old boys, but I was a c programming novice, I want to learn, you can give me some suggestions for me? And my English is not very good, I think th...
[3 replies] Last: Thanks, your are very enthusiastic, and I think I should learn from yo... (by h4cksoldier)
Error in applying strftime() method
 
I am facing a problem in mysql query execution. My code is following. conn = mysql_init(NULL); mysql_real_connect(conn,"","root","root","trafficdetai...
[2 replies] Last: Or you can use if (strcmp(buffer1, "Monday" == 0)) or even if (0... (by andywestken)
by coder1
graphing calculator
 
Hello, When i was reading a topic in c++ forum, one person wrote a list of project ideas in c++, one of those was to make a graphing calculator, but I was wond...
[no replies]
program instantly closing
 
ive been trying to get the program to calculate package A with 30 hours but it instantly closes without calculating. not sure what i did wrong //An Intern...
[4 replies] Last: No problem. If you need help just check back on site and there will al... (by closed account EwCjE3v7)
by Imme
Word guessing game
 
Ok so I did this program, but I don't know what the problems are,the computer is supposed to generate a random 4 letter word ( not necessarily meaningful), and ...
[5 replies] Last: No problem. Glad you figured it out. (by Mathhead200)
Doubt about transforming a recursive function to an iterative
 
hello, I have a doubt about transforming a recursive algorithm into an iterative, according to something i remember that it could be done with a stack or with a...
[1 reply] : Try not to double post. When you post a new topic, try to be as concis... (by Smac89)
Constant Loop/Interest question
 
I have a homework question that asks the following: Write a C++ program that calculates a portfolio rise and fall over a number of market sessions. At each st...
[1 reply] : Your while loop should have ans == 1, not ans = 1. When declaring ans... (by crimsonzero2)
by lmsmi1
Coordinate Issues
 
I'm writing an application (obviously, duh) and coordinates are getting very, very confusing now that I've added SFML to my application. This program of mine is...
[1 reply] : if (newLine == true) { myTxt.setPosition(0, myTxt... (by Disch)
Split current date
 
Hi, I have to categorize the time into hour basic and day basic. I am using NOW() to store the current time. Here the time stores as "2013-06-22 13:40:04", I n...
[1 reply] : I've got it.. This is the way.. time_t rawtime; struct tm * timein... (by Krishnananthan)
Loop issue concerning doubles
 
When I run my program I enter the amount of sales I need, then enter those sales. Then the main function should print the info that was returned. But it prints ...
[2 replies] Last: Well I want to do that, but I'm not returning numSales. So when I do t... (by drake1313)
by Vigii
How to create a gui from pre written and working c++ code
 
Hi All, I have posted one of my codes below. Here I'm trying to create a GUI for this code which takes the input values from user using GUI and displays r...
[6 replies] Last: can you give me an example. That is quite a big ask. The problem is... (by andywestken)
Parameters and Variables
 
Hello. In simple English Can we just say that parameters are the mathematical rule or equation ? And variable is the changing values that produce a differen...
[11 replies] Last: I think I got confused because I got statistics class, because I am no... (by a967Bytes)
"Cin" Issue solved, but new one arose.
 
THIS ISSUE IS SOLVED, the next one isn't If I take out the cin (along with the digits variable) it will build and run fine, but if I put the cin in the co...
[13 replies] Last: You are using doubles try int (by closed account EwCjE3v7)
by ReKing
I have a problem with running the program
 
I've tryed to make a program which one calculate the maximum subsequence from a vector. example: ss1.in : 7 5 -6 3 4 -2 3 -3 ss1.out : 8 3 6 Subsequence maxim...
[4 replies] Last: Thx I think that the topic could be close by an admin ^_^ Thank you gu... (by ReKing)
Proper Use of cin.ignore()?
 
I have seen a few code samples of cin.ignore() being used, but I am still not totally clear about all the situations in which it should be used. Should it ...
[3 replies] Last: I had the same idea and I brought it up in a Lounge thread once, but I... (by Daleth)
by cshu
name arranger c++
 
here is my code: #include <iostream> #include <string> using namespace std; int main() { string fullName; cout << "Enter your full name (firs...
[4 replies] Last: OK. Than correct me if I'm wrong but I've been reading a little bit an... (by lockandstrike)
Help building a very basic 3d car game engine
 
Hello at all I'm planning to build a basic 3d game engine. It would const of a car and a track (both already made in 3ds max). The game engine should have col...
[9 replies] Last: You need a team, and to separate jobs, every person for his job For me... (by a967Bytes)
Pointer Scope
 
I'm having trouble understanding the scope/"life-expectancy" of local data pointed to by a pointer that is then returned. int** GetTable(){ int table1 =...
[10 replies] Last: @Disch I knew you would have a sensible answer - so thanks ! (by TheIdeasMan)
June 2013 Pages: 1... 1112131415... 49
  Archived months: [may2013] [jul2013]

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