General C++ Programming - April 2012 (Page 21)

just need a quick infile code for data into an array
 
im not familiar with ifstream and haven't found any examples of the method i need so im asking for assistance ive been building a code and my client doesn't ...
[1 reply] : [quote=iKraKen]all i need is a short infile code that will read the mo... (by LB)
Read numbers from file to Array quick question
 
Basically write a removeall function, use it to remove items from an array you load from textfile. Ive tested this code and its working except for the getline ...
[3 replies] Last: If size is 25 and i == 24 then... for (i=loc;i<size;i++) list =li... (by clanmjc)
Full Screen from console (Windows)
 
Hi there, I was wondering if there is a function to make the console full screen from the code, instead of setting it manually (alt+enter or going into the d...
[2 replies] Last: Here's how I do it, beenjaminnn.. // Moving window.cpp : main project... (by whitenite1)
by gws923
Code not recognizing my custom class (it seems)
 
Hello all. I'm relatively sure the problem I'm having can be fixed with a minor change in syntax somewhere (not sure what or where) but I just thought I would ...
[9 replies] Last: Ah! I see. Well that is good to know. I'm still pretty new at this, ... (by gws923)
c++ vs c#
 
Hello, This might be verboten, however, for someone that is wanting to start in with a programming language, I would rather choose a language that has an expec...
[6 replies] Last: thanks for all the responses, c++ it is (by nattybumpo)
ignore- reposted with new program
 
I hAve asked this question for several days. I am struggling with this program. There is a input file which is of .txt. It contains list of about fifty books in...
[6 replies] Last: define the array Book books ; in your main and store the data in... (by therockon7throw)
getbytes for C++ native
 
There is a function/method in .net for getting the byte values for numbers. However, I am using native/vanilla c++. I want to be able to convert from a user ent...
[7 replies] Last: I've updated my code using some of everyone's suggestions. It should b... (by vdiddlodka)
Modifying the contents of the buffer
 
I've been working on a simple game for my thesis, and I would like to improve it, and this simple change could mean a whole lot. Basically, I'm using a pictu...
[1 reply] : Managed to work around it by turning on and off double buffering. (by Zsolt Kovacs)
How to get path to source file?
 
I'm looking for a function that gives me the absolute file path of the file calling that function. For example if main.cpp calls this method, then the absolute...
[2 replies] Last: Awesome, thanks, this is what I was looking for. (by AlwaysLearning)
Can anyone help me solve this assignment
 
Decision-Making and Iterations Assignment Question 1 Howell University is an accredited European university, which offers a range of courses to its...
[9 replies] Last: dont understand ur codes cos i am a beginner& i only know how to use c... (by mojemoron)
cin issue
 
I am working on a lengthy program (2000+ lines so far). When the code enters a certain loop, it encounters the following segment: do { cout<< "What wou...
[17 replies] Last: From the first link: The problem with this code is that it lacks any... (by cire)
by ksj
Appreciate if you can help:Problem in "merge list" for linked list.
 
I have done a program but i couldn't run it smoothly at the part of merge list. Can anyone please help me ? below is the program i did. #include <iostr...
[no replies]
Help generating one random number.
 
We are trying to generate a random number, for a password in our game, that will be created on the game's launch and will freeze itself so it is restrained to t...
[4 replies] Last: > We are trying to generate a random number, for a password in our gam... (by JLBorges)
Printing an Array in a Queue
 
I'm having a problem printing out the contents of an array used in a queue. A portion of my template queue: #include <iostream> #include <cstdli...
[3 replies] Last: Your Queue class doesn't have a MakeEmpty member function so the code ... (by Peter87)
Inner Class members
 
Hi, I have some of Qstring type members in my inner class like the following; class GmailProfile : public QObject { public: GmailProfile(); ...
[11 replies] Last: Can you give us a copy paste of where the error is being stated? You ... (by clanmjc)
codeblocks and bloodshed dev c++ issue..
 
Hi there, I am using a different compiler now, Codeblocks, because I want to try a new environment.. anyways, here's the problem. whenever I try to run my cod...
[4 replies] Last: ` oh.. thanks mate, I got your point.. Thank you so much for the help!... (by codemunkee)
Sorting
 
for ( int h = 0 ; h<j ; h++ ) { for(int i=0; i<j; l++) { if(book1 >book2[l+1]) ...
[2 replies] Last: Potentially, but i think it should really go more like this: for (in... (by Ben Brown)
CPNmouse Project need help ><
 
Hello, I am working on my current project and I would like to use 2 mice at the same time. I need to receive the (x, y) coordinates of them and then place t...
[1 reply] : Check out this link: http://cpnmouse.sourceforge.net/install.html Hop... (by Ben Brown)
WHAT IS A GOOD GRAPHICAL IDE CAN I USE?
 
Hi all, i've been doing a course in C++ for almost a year now but there is one thing they don't teach us at school and that is how to create a graphical applica...
[1 reply] : you can do it using code with gtk (or gtkmm), or you could use a IDE l... (by Jikax)
'must' return 'int'
 
#include <stdio.h> #include <math.h> #define CMAX 10 //max. number of variables in economic function #define VMAX 10 //max. number of constraints ...
[1 reply] : Please use code tags if you expect us to read your code. Secondly, yo... (by Gaminic)
April 2012 Pages: 1... 1920212223... 49
  Archived months: [mar2012] [may2012]

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