Beginners - April 2011 (Page 49)

by Nuc
Repeat do while loop if there is an character
 
#include <iostream> #include <conio.h> int nx ;void main() { std::cout << "hi\n"; std::cout << "somerandomrpogramk"; do { std::cout << "Type 5: "...
[6 replies] Last: void main is non-standard, C++ requires int main. As The DooD said, ... (by Bazzy)
by asdf
Files
 
Hi people, My problem is the following: I would like to create N (let's say N=50) files with the same name but a number, that is to say: file1.txt, file2.txt...
[8 replies] Last: Thanks very very much! now it works correctly. thanks again! (by asdf)
ifstream error: "invalid use of member (did you forget the `&' ?)"
 
I'm trying to write a program which uses classes to complete a range of operations on data from a file. As if the classes aren't causing enough trouble, I can't...
[2 replies] Last: Thanks, that's genuinely embarrassing. I put the '=' in when it wasn't... (by rassilon256)
Problem with string function
 
Hi I am trying to create a function that append one function to the other like if i have this: String1 ="12345" String2 ="67890" the function will return thi...
[11 replies] Last: Athar: thanks man for the information. Than the code at that part s... (by hitmanben2)
graph
 
please i am using DEV-C++ and i have a project that require a graph to be draw. i tried with WINBGIM, but it didn't work. if know a good library that works w...
[3 replies] Last: i also tried, GNUplot and SDL ,but i need a guide of installation for ... (by tukadala)
by barrex
Loading array with ints from file
 
This function is causing my program to crash. No compile errors though. I'm trying to load integers from a file into an array, then count the times those int...
[3 replies] Last: Nice thanks, didn't think to use switch. It's still crashing though. H... (by barrex)
by michy
long long long double
 
hi there, question about long long long double... >< if i has an equation: x = y / z which will result x = 0.121212123434645712323543464523423534645.... ...
[1 reply] : What is a long long long double ans where can I get one? (by naraku9333)
Vectors of Objects and Possible Memory Allocation Error
 
I've been working on a large project and have been running into a runtime error. I'm using Codeblocks portable 8.02 on Windows 7 with the GNU GCC compiler. I'm ...
[9 replies] Last: Just as an aside, trailken, if you don't understand pointers, you shou... (by ciphermagi)
Set Color Explanation
 
Can you explain this code: void setcolor(unsigned short color) { HANDLE hcon = GetStdH...
[2 replies] Last: Right, it belongs to Windows programming. Sorry for the wrong category... (by mainframe639)
multimap<>::equal_range problem
 
I'm trying to use the method shown here: http://www.cplusplus.com/reference/stl/multimap/equal_range/ to find and remove a particular key,value pair. how...
[4 replies] Last: Thanks hamsterman my next guess would have been that. In my example w... (by Gladdok)
by ty98
choice command
 
I need to know how to use the choice command. Do you have eny ideas???
[4 replies] Last: char choice; got it!!! (by ty98)
by ty98
dll files!!!!!!!!!!
 
Ineed to know how to make a dll file have icons. and othor things. like a include command. do you have eny ideas?
[2 replies] Last: I've got it down now. (by ty98)
Extract data from a file
 
Hi, I need help creating a function that extract data from a file for a collection. Here is the decleration of the function: /** * Extracts data from a fil...
[no replies]
Extracting data from a file
 
Hi, I am doing a project for school and I am stuck at coming up with a function definition for the program. Here is the decleration of the function that have be...
[1 reply] : int /*should be a member of the class*/putDataInCourses(/* the variab... (by matsom)
fstream will not work properly?
 
Hi! Please help me. I am trying to write a program for school. I have been working on it for a while now. I am trying to use the fstream library to create a fil...
[14 replies] Last: Thanks! Before I saw your last post Matsom, however, I tried to re-o... (by Programmer3)
Efficiency?
 
So, I created a "conversation" program in which the user inputs something like, "hi" and the program responds. The way I analyzed the in put was: string ...
[2 replies] Last: Ok, thanks! (by gobblewobble123)
Search & Extract from File
 
Hello, First time poster; Ive come here often for help, but couldn't find anything on this topic: For work I have to do some painstaking copy pasting to con...
[17 replies] Last: Well I have wrapped this project up, thanks to you all! On an unrelat... (by edenflux)
Console closing to soon.
 
After I press enter after it says enter second number and I do it automatically closes even though I have system("pause"); and im running windows vista 32-bit. ...
[6 replies] Last: @ty98: The point of the (almost illegible without brackets) pr... (by ciphermagi)
Question ??
 
Has there been any new feature with C++? Like new syntax, and stuff like that? I am Basic with this; So any help will be much appreciated
[2 replies] Last: Thanks (by Richard101)
Formatting output to table
 
Thanks in advance. How would I present the output of 2 variables (double) as a fixed width, 2-column table? As well, the right most column has decimal point...
[no replies]
April 2011 Pages: 1... 4748495051... 55
  Archived months: [mar2011] [may2011]

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