Beginners - April 2013 (Page 60)

by azabla
Creating dynamic file names?
 
Basically, I want to create a file name that contains a variable which I can assign. For example, say I wanted to create a file named "fileX.txt" where I can ch...
[no replies]
Transferring File Contents
 
How can you go about putting the contents of a .txt file into an array?
[2 replies] Last: I am doing a program which requires me to take the .txt file, "phone.t... (by menwithrobots)
Problem with my simple Options Program
 
Hello, I'm new to the forums and c++ so sorry if I seem "special". I'm trying to write a simple program that asks a question and then prints out what your an...
[1 reply] : There are a couple of issues here: Instead of using a string to store... (by pogrady)
Game of Nim project. It won't display matches.
 
Hello everyone, I am having one issue with my project. We are making a game of Nim code.I'm 99% done with it, i worked hard on it and i feel like i did a goo...
[no replies]
While loop issue...
 
I'm doing a bit of homework for my c++ class and this problem came up: use a while loop to sum the integers starting at 1 until the sum is no greater than 10,00...
[5 replies] Last: Thanks for the help guys! (by ShadowBlades1)
by arashf
Segmentation fault while calling previously assigned values
 
I wrote this code to add and keep new data into a class. class sample { public: int N; double** p; void concat(sample&,double a ); sample(); ~sample(...
[10 replies] Last: Fixed version: int main () { int ** a; a = new int* ; ... (by Chervil)
Copying a File's Content into an Array
 
Hello, I am doing a program which requires me to take the .txt file, "phone.txt", take all of its content (putting it in arrays), move that content into a new t...
[no replies]
can someone assist me
 
can someone help me with the following: for all of the following use pointers (if necessary) and arrays: (a) print 30 prime numbers greater than 1001 (b) p...
[17 replies] Last: There's a misunderstanding. I meant what I wrote in the context of gi... (by cire)
quick question
 
what is unique about a template class?
[3 replies] Last: first of all it is code... second of all the whole c++ source file is ... (by closed account Dy7SLyTq)
by Ch1156
Input wont load name and sets money to 0
 
When i go to load my stats it loads money as 0 and doesn load the name, i checked the file and everything was there, the name and money it just wont load. ...
[8 replies] Last: parameters (by closed account Dy7SLyTq)
Reading from text file
 
I want to write a Program that opens a txt file called "text.txt" In the File there will be a word or a word, a space, and a number and then an enter. For Examp...
[1 reply] : It would help, if you would show your code. (by keskiverto)
any help would be greatly appreciated
 
I need to write a program that merges the numbers in two files and writes the results to a third file. The program reads input from two different files and wri...
[11 replies] Last: Here is a test program of the function #include "stdafx.h" #include ... (by vlad from moscow)
by zukias
How to save VC++ settings?
 
I've just finished configuring SDL in VC++ and it took a while, I'm wondering if there's a way to 'save' these changes so I don't have to bother doing all that ...
[2 replies] Last: If you have Visual Studio 2012, file>export template. For 2010 you can... (by naraku9333)
How to use graphics on c++
 
Hi everybody! I'm looking for a book to learn how to use graphics on c++ or could someone tell me what should I use to make a simple tic tac toe game just for ...
[1 reply] : idk if there are any books but you could look up a tutorial on opengl ... (by closed account Dy7SLyTq)
by gpfs7
hash table or a heap?
 
i have this assignment but am not sure how to start, would you use a hash table or a heap? Problem: Given the courses needed for graduation and their prer...
[no replies]
Saving binary file into an array, data is being corrupted
 
I am working on this assignment, where for this part I am simply reading the file and saving it into a struct array. I am posting the main arguments of the arra...
[4 replies] Last: L B, oddly enough, that is a required code given by the teacher for th... (by Veszafein)
help with function,,{just started using them}
 
this is my code #include<iostream> using namespace std; int main() { int a; a=larger(7,1200); cout<<a<<endl; return 0; } int larg...
[8 replies] Last: *glances to L B* Huh? I guess we could label it as a style preferen... (by closed account 3qX21hU5)
Help! Nested Loop
 
I need help creating a nested loop (it can be a while loop or a for loop) that results in this paturn: ** **** ****** ******** ********** ************ ...
[18 replies] Last: True... @Zaita :p (by Sam99)
Moving arrays's value
 
Is here any way to move the value of arrays? Like this, a = 1 a = 2 a = 3 a = 4 and I want it become a = 1 a = 3 a = 4
[3 replies] Last: Actually that for statement is incorrect. First you will be accessing ... (by jlb)
Simple Loop Issue
 
Ok, this is my first post, be easy. I'm quite new to c++ programming. I am trying to make a simple feet to inches converter. It works perfectly except for when ...
[2 replies] Last: Welcome! // inside while should be accessor func obj.getFeet( ) whi... (by HoneyBoy)
April 2013 Pages: 1... 5859606162... 83
  Archived months: [mar2013] [may2013]

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