General C++ Programming - February 2012 (Page 4)

Trying to display integers and spaces.
 
I'm trying to write a program for class that displays the integers 1-9 so that it looks like this: 1 1 2 1 2 3 ...
[13 replies] Last: I've got it now. Thanks for all the help! (by EricaFH)
by Spiker
GDAL
 
Hi everybody. For my program, I use the library, similar to GDAL. When the quick search is generatinga in the program (specific area), there are memory...
[no replies]
Reverse the output from a txt file
 
Write a C program to read the list from the file and store them in the arrays. Your program should write the list of client’s account number, client’s na...
[3 replies] Last: Sorry did not see C Oh still C , hehehehe -:) if it is a C than he ... (by therockon7throw)
Need help on logic in OOP please :)
 
Problem Fixed
[1 reply] : Hi Only if we know about the mathematical logic behind the terms ( ... (by therockon7throw)
Need help on reference parameter
 
Hi guys, I'm working on my second homework. It basically read in a text file of books list and determine which book is valid and which in invalid. Once I deter...
[8 replies] Last: :) ok...that answered my question. nice explaination and very helpful.... (by ken2012)
by wwybj
How to put array data into vector
 
Hello all~ I'm now facing a question as the title: how to push array data into a vector container? To be clearer, I simply describe the question here: I ...
[4 replies] Last: Hi bluecoder and JLBorges, thank you very much for the suggestion~ I l... (by wwybj)
waiting for input
 
Hello out there! I'd really like to know how to say a program that it should output something if the user hasn't typed something for a certain time. Thank...
[6 replies] Last: Anyway, Thanks for your help =) (by FlashDrive)
Why C++ fread is so different from Windows ReadFile
 
Greetings, I write a piece of code to simulate system I/O perf. However the result is so different between fread (IOPS is 5000+) and Windows ReadFile (IOPS 200...
[2 replies] Last: C file streams opened with std::fopen() perform buffered reads and w... (by JLBorges)
defining neighbouring points
 
Hello, I am trying to analyse my data and therefore need to write a program to do the following steps: 1) I produce a file with xyz (3D) coordinates for...
[4 replies] Last: > I am a beginner, and it is quite difficult to read and be able to ap... (by JLBorges)
by Parker
Probability of 2 balls
 
I got two boxes each contains 1 white ball n 1 red ball...what is the probability of I'm getting 2 white balls ? Can you help me to program this in C++ ? res...
[3 replies] Last: Sorry I don't get the connection of the obove with C++ here. This is... (by eypros)
by Eyad
Error: Expected declaration!!!
 
The Compiler keeps telling me an expected declaration for return 0; can someone help me please?! #include <iostream> #include <string> using namespace std; c...
[1 reply] : return 0; is outside your main function. Look at your braces.... (by Moschops)
by dalawh
Array + cin
 
Is there a way to store the string entered through cin and store it into an array of char that is exactly the same size? Basically creating an array like: "char...
[5 replies] Last: You can use a vector of strings. So your idea shown in your code s... (by vlad from moscow)
Help reading string from process memory
 
Hello everybody, I must say I am a bit new programming on c++. I usually develop my applications in vb6 or c#. Now I'm in the middle of a trouble trying to ma...
[3 replies] Last: Thanks you so much Galik. I didn't initialize my pointer, so now I' ve... (by Shalvaid)
by Aikon
Matrix class (1,2)
 
Hello everybody, I'm developing a Matrix class I need some criticisms. Only to the methods I have already developed. I like to improved some things like this: ...
[36 replies] Last: @therockon7throw By the way, I loved you example of meta-programming,... (by Aikon)
How to call a function to go to another/new screen?
 
For each function when chosen in the menu i need them to go to another screen, i tried system("cls") but i got errors. #include <stdio.h> #include <stdl...
[3 replies] Last: 1) windows.h is not a lib, it is a header file. 2) You do not need to ... (by Cheraphy)
by rucafe
data base search
 
I have a database with hundreds of lines that looks something like this: 0.335634 0.014159 249.598008 0.499504 -0.853303 -0.149564 0.147345 0.188289 13.9389...
[1 reply] : Should work. For the first example you should close the file before r... (by mik2718)
issues in designing a class of array objects
 
Here is what my program is supposed to do: Create an array and allow the user to enter values in sequential fashion as well as allow random read/write. I wou...
[5 replies] Last: when you create a new object of any class and provide no parameter ... (by therockon7throw)
by dalawh
Header files
 
When I was reading the tutorials, I notice I did not see one on header files. Is there a decent tutorial anywhere on header files?
[8 replies] Last: .h only, and compile the .cpp along with the main.cpp file. (by ciphermagi)
throw/catch recovery
 
I'm a C programmer getting up to speed on C++, so this is probably a very simplistic question. Assume a piece of code that detects something not quite right,...
[2 replies] Last: Assume a piece of code that detects something not quite right, so it ... (by kbw)
Replace single word with buffer
 
Hi, I was writing this Courier Service program for a friend #include <stdio.h> #include <stdlib.h> #include <iostream> #include <fstream> #include...
[no replies]
February 2012 Pages: 123456... 43
  Archived months: [jan2012] [mar2012]

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