Beginners - April 2013 (Page 53)

Pointers don't use memory?
 
I am just learning pointers in class and the book really does a poor job of explaining them. It basically says that to make a pointer able to hold a value you n...
[10 replies] Last: Great explanation vlad. So really all we are doing is just initializin... (by IdivideBy0)
by lok05
##string sorting problem##I spent more than 7hour
 
i am a beginner. My assignment is due tonight:( please help me w/ this: read the input file(input.txt) the file is like this(number of data,then uid,name...
[17 replies] Last: mergehelper() is the main sort function. It requires a working array (... (by tntxtnt)
by Larry2
Splitting templates
 
Hi, I read that splitting templates into .h / . cpp wasn't a good idea. Is the only way to keep a clean code (read organized and clear) is to include the ...
[4 replies] Last: Many Thanks JL, Now I got it. To answer this, I will split my code in... (by Larry2)
Problems with cout dissapearing instantly
 
When I run a program with this code: #include <iostream> using namespace std; int main(){ cout << "Hello World!"; } the window with cout di...
[17 replies] Last: Or you can just read the sticky topic at the top of this forum which e... (by LB)
problem with RPC code
 
i got the source code from this website: http://www.aspfree.com/c/a/net/introduction-to-rpc-on-windows-part-i/ and when i tried running the server and client i...
[6 replies] Last: @coder777 i don't know to make my own RPC program so that's why i trie... (by beginner123)
calling methods and constructor class
 
I didn't understand how this code works. #include <iostream> using namespace std; class abcd { public: static int a; int b; abcd(int x) { b=x; a=b...
[2 replies] Last: Thanks maeriden. Also can you please explain me how b1.a and b1.b wor... (by Eliza0210)
by dipa57
division error
 
Hi, I am new in C++ Why the output = 6 and not 6.5? What I do wrong? Thank you for your answer // error division in C++ #include <iostream> using nam...
[4 replies] Last: You can obtain floating-point by float/int not int/int you have to cha... (by eyenrique)
by Larry2
Class template + function call = error
 
Hi, I am trying to become familiar with templates. My goal : cout char if the object is initialized with a char, number otherwise. Just a training. Unfortun...
[5 replies] Last: Exact ! My code above was intended to be a starting point for differe... (by Larry2)
Trouble understanding exercise.
 
"Write a function that takes and returns an istream&. The function should read the stream until it hits end-of-file. The function should print what it reads to ...
[5 replies] Last: Thanks JLBorges for the explanation and links. I'll take this time to ... (by Olysold)
by SmOgER
Ignoring particular arrays in loop after conditions are met once / sorting arrays
 
Hi, I can't really find a tutorial which would give this info. I have a text file: 14 4 1 25 4 1 13 4 2 15 4 2 25 3 2 42 3 2 25 4 1 25 3 1 25 4 1 25 3 1...
[6 replies] Last: I'am surprised no one came up with an answer, as all I had to do is wr... (by SmOgER)
by Ch1156
Made a timer but need tons of them
 
Ok so im makeing a time management game and you buy trucks and planes and send them off to different parts of the world and it takes real time so i made a timer...
[15 replies] Last: errors C:\Users\Chay\Desktop\Shipping Manager\main.cpp|27|error: prot... (by Ch1156)
by Fyah
need help with my code please
 
i have to create a program where you enter a number and the programs adds up to that number for example enter number: 4 (user input) your total is: 10 b...
[18 replies] Last: I think this is a simple way #include <iostream> using std::cout... (by eyenrique)
square root
 
how do I do square root in C++?
[7 replies] Last: You can use the C++ Standard Library <cmath> and the function sqrt ... (by eyenrique)
TDD framework for Microsoft Visual C++ 2005 Proffe
 
Hi I want to begin development in Microsoft Visual C++ 2005 with TDD (Test Driven Development) Framework. Please, recommend me TDD Framework for Microsoft...
[1 reply] : How to use this: http://msdn.microsoft.com/en-us/library/microsoft.vis... (by Observer)
Returning char array from function
 
I made a program to build a game board of a set size, but now I want to add asking the player how large they want the game board to be. So to make an array that...
[3 replies] Last: I would use a two-dimensional array because you deal with height and w... (by vlad from moscow)
enum structure
 
#include <iostream> #include <time.h> using namespace std; enum calendar{ jan = 1 , feb , mar , apr , may , jun , july , aug , sep , oct , nov , dec }; ...
[5 replies] Last: char date ; //get date char m = {date , date , '\0'}; ... (by MiiNiPaa)
For loop ending with semi colon
 
This following loop is correct: for (; ;); I thought the rule was that you can't put a semi colon after a for loop? Can someone explain why this is correct,...
[3 replies] Last: Using the g++ compiler with a for loop like what is shown above produc... (by TheIdeasMan)
by clarkd
Please Help with Sorting!!!!!!!!!!!
 
The Program runs fine with just minor problem. I have written the program but it doesn't seem to sort the names instead it just publish them as entered. Please ...
[5 replies] Last: I just noticed that Total_Names[i + 1] is also outside the bounds of... (by fg109)
Array question
 
If I have a program of Battleship and there are 2 ships but each ship has two locations in the board, and I place them according to a random generator(0-3) with...
[4 replies] Last: @GaCokoya yes I do would you like me to post it ? (by closed account LN3RX9L8)
Reading a text file that contains words and numbers
 
I have a xlsx file that I saved in tab delimited format. The first 9 lines looks like this. Line 1 Line 2 Line 3 Line 4 Line 5 2 assess xxxxxxx RCRR...
[8 replies] Last: Thanks for the help buddies!! :)))))))) (by Philip Legaspi)
April 2013 Pages: 1... 5152535455... 83
  Archived months: [mar2013] [may2013]

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