Beginners - November 2012 (Page 51)

naive gass elimination
 
my lecturer ask to do C++ program to solve naive gauss elimination, and he give me some hintof the header, declaration part and subroutine. however, i still d...
[no replies]
by skarla
Graphics in C++
 
http://www.youtube.com/watch?v=EhsVeZt27Q4&feature=youtu.be Here is one of my some SDL games.I have been worked with SDL 2 weeks now. I want move in opengl-...
[no replies]
Putting strings in an object
 
Hi everyone. See the comments in the code. How do I take three strings and put it inside an object, and return that object to main? This is only a part of the w...
[1 reply] : I'd do it like this: class threeStrings { private: string string1... (by Stewbond)
by chipp
eof problem?
 
i have this code: #include <iostream> #include <fstream> #include <string> using namespace std; int main () { fstream file_io; int i = 1; string file_name...
[4 replies] Last: can you give an example? (by chipp)
by nahla
How would I go about these command line arguments?
 
Here is the problem: Extend your file comparison program in two ways. First, make it possible to specify the file names on the command line (5 points). Only ask...
[7 replies] Last: differ -a file1.txt file2.txt Ok, if this is one of the valid argum... (by TheIdeasMan)
I haven't found the mistake
 
I just write a new program. It can run, but it doesn't output the true number. Here are some of the codes: input codes:(ck means subject NO. and cj means grade...
[2 replies] Last: I just want to tell you that the output number is not true. You know, ... (by amchinese)
by G3PO
Fibonacci Sequence Program
 
I'm working on a fibonacci sequence program, and so far I have it working, but have a few extras I need to add before I'm finished. Here is what I currently hav...
[1 reply] : You can use the isdigit function from <cctype> http://www.cplusplus.c... (by Branflakes91093)
Outputs all zero's
 
Hello, I am learning about array's. I have a program that should take in a user specified number of variables, in this case numerical grade points, assign it t...
[1 reply] : Hi tanmn38, Firstly, edit your post so it uses code tags - the <> b... (by TheIdeasMan)
Random Integers
 
I'm making a text-game, and I need real random numbers. I'm using rand() but it seems too give me same thing every time I run the program, so could someone tell...
[1 reply] : http://www.cplusplus.com/articles/EywTURfi/ Scroll to the middle of t... (by fg109)
Homework question on pointers (1,2)
 
The question reads: "3. Write a program that includes a function int* fun( int* a, int* b, int* c) that returns a pointer to the memory containing the median v...
[31 replies] Last: If I can throw a curve ball ....... Wouldn't a more general solution ... (by TheIdeasMan)
by zwooke
program stops running after inputs
 
Im trying to write a program that reads two files of no more than 20 integers then prints out the largest of the the two files, however after specifying the fil...
[7 replies] Last: I am using CodeBlocks on Windows XP. (by fg109)
by h4344
Where can i learn about DLL's?
 
Does anyone know a good DLL tutorial that explains everything? So far i have watched a youtube video but it didn't explain much in detail and i still look at ev...
[no replies]
Multi dimensional arrays of int and char type
 
i'm making a reversi game board with and and int array of NxN, i initialized the array as 0 but i'm wondering is there a way to replace the 0 with a character s...
[3 replies] Last: i think you wrote it before you read my second post :) (by dritail)
by abbey
Code Floiw
 
Hi, I am new to c++ and I need to understand the flow of code for a Project. It links to couple of libraries. I need some tool in MAC OSX to understand the exec...
[3 replies] Last: no,sorry (by Victor714)
by beeb
Pass by reference not working
 
I don't understand why the function call (convertFtoC or convertCtoF) is not working. It seems like everything else is working but the function call is not acce...
[2 replies] Last: thank you, something so simple (by beeb)
Converting Letters to numbers (Phone Key Pad)
 
Im doing this homework assignment in which i need to convert letters to a number.(like on the telephone key pads, ABC = 2, DEF = 3, etc. This is my code for ...
[4 replies] Last: toupper is a standard C function that converts a letter to upper case.... (by vlad from moscow)
selecting an object to use a command on from console
 
im trying to make a game and i was wondering if you can use shared functions on multiple objects from console. like i have four classes :warrior,thief,mage,a...
[3 replies] Last: You would pass a character pointer to the function which takes a chara... (by pogrady)
Scrabble©--2D Array
 
I have to write a C++ program that will read the info of the game Scrabble (ie, the column letter, row number, word, and direction) and print out the score of t...
[9 replies] Last: a 2d array is in reality a 1d array with an offset. The declaration up... (by pogrady)
progress but not quite
 
Hey So I have made progress but I'm not quite there. I give a function a word. This word is converted to upper case. The word is then indexed through. Each posi...
[10 replies] Last: I initialized it to 0 worked dude thanks so much :) (by jlillie89)
double *d = new double[N]
 
#include <iostream> using namespace std; int main() { cout << "program started..." << endl; const int N = 1e6; for (int i = 0; i < N; ++...
[3 replies] Last: Please do delete all new memory. Allocating memory without deallocat... (by Nexius)
November 2012 Pages: 1... 4950515253... 75
  Archived months: [oct2012] [dec2012]

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