Beginners - January 2014 (Page 24)

by enemy
Input/output file???
 
Program reads arguments from the command line.The user shall give the names of input and output files, and the selected operation.The program then depending on ...
[3 replies] Last: Hello! let's suppose I have a file containt next text: "Hello! ... (by enemy)
Test if Array is Empty
 
I'm trying to test an element of an array to see if it has information stored in it. If it does I'm going to skip that element and move on to the next one, whic...
[5 replies] Last: Thanks for the reply's! (by JRimmer)
by enemy
ASSERT
 
Please, what is this program doing and how to get some of it be seen? #include<assert.h> using namespace std; int main(){ int * a=new int ; ass...
[6 replies] Last: Hello! Haha , I did not mean we SHOULD, I just ment we COULD;) (by enemy)
by DmC10
What am i doing wrong
 
So i'm trying to write a program that reads all the files of a directory and renames their filenames but i get a long error: "This application has requested the...
[11 replies] Last: thank you guys for the info, i just finished my code, if u have a bett... (by DmC10)
by zavoli
Tiny C compile dll for VB.net and VBA
 
Hi, does anyone know how to use Tiny C compiler to compile functions written in C into dll, and can call by VB.net or VBA? Many thanks.
[no replies]
by qmzh85
A simple question on Conditional Operator
 
Hi guys: I have a fairly simple question regarding the conditional operator. For a conditional operator, the definition is given as: condition ? expression ...
[2 replies] Last: Thanks, Cubbl. I originally thought that 2 * (*iter) will automatic... (by qmzh85)
Size_type
 
Hi guys :) Can someone please explain the use of companion types in C++? I've gathered that they're meant to improve genericity, but can someone please explain...
[4 replies] Last: ah, that clears everything up ~ thanks!! (by ValerieChiang)
calculating compound interest
 
I'm just learning C++ and need some help with formatting a proper calculation to get a compounded interest using an exponent. I'm basing my formula on P*(1+ra...
[3 replies] Last: Thanks. I changed my header to the <cmath> works good. (by buffalo906)
by Fiton
sorting random numbers
 
So i want to sort generated random numbers with a function but it doesnt work properly it just shows the same range as the generated numbers and how to check ho...
[3 replies] Last: [quote=Fiton]any clue how to find when a number is repeated in the ran... (by Smac89)
vector manipulation
 
Hi, I wrote a simple code in matlab to create an histogram for the integral of the data separated in "events" //Ndata Nevent dat1 dat2 dat3 dat...
[no replies]
by mfb
Did I do this properly?
 
I've recently been reading a book on Beginning C++ and came across an exercise in the book that it asks you to do. For this task, I had to create a program that...
[4 replies] Last: I only suggest it for what could be bigger projects. If you're doing i... (by S G H)
string to double
 
I would like to convert the string without losing the decimal part and obtainig the same accuracy... this is my code: #include "stdafx.h" #include <...
[3 replies] Last: The problem isn't with the conversion from string to double. If you pu... (by Chervil)
HELP! Mining Program
 
Hello, I am trying to write a program which analyses mine ore production. The pogram recieves the number of mines to enter, the number of each mine, the year op...
[11 replies] Last: Sorry, I forgot to mention that I want the program with the array with... (by programmile592)
by Alby94
unhandled exception
 
I don't understand because it doesn't manage this exception .. #include <iostream> using namespace std; int main() { try { throw ...
[2 replies] Last: aaaah...lol i forgot always it xD (by Alby94)
Loop not working correctly
 
I've got a do while loop but it's not working correctly for me. #include <stdlib.h> #include <iostream> #include <string> #include <sstream> #includ...
[4 replies] Last: Here's some spacing and bracket corrections that may help. One of the ... (by CplusplusAcolyte)
Reading text files into 2D arrays
 
This an adaptation of a program used earlier within another thread. The original code was designed to read individual words into an array of strings, and works ...
[17 replies] Last: Thanks, cire. This should simplify some posts in the future. Testing ... (by CplusplusAcolyte)
Using getchar() to store characters into an array.
 
I am trying to store characters into a character array using getchar() function. But when i run the program the Output is: w 0 1 e 2 Enter EOF 3 I a...
[4 replies] Last: Thank you. That explains why the program works when i enter all the ch... (by chotumotu11)
Min/max value
 
I want to find the min and max value of an array that the user inputs... Can't get it to work. for 2 and 3 index array, it prints out really high numbers, and...
[2 replies] Last: Thanks!! Just learning for fun, still a beginner, but i do appreciate... (by pilotnate)
Strange Output Error, probably something simple
 
I am having the strangest issue simply outputting a '-' in front of my object. My code below is a class created which adds arbitrary numbers. As you can see i...
[2 replies] Last: Wow, just changing line 31 to a pass by reference did the trick! I fi... (by dtanderson)
Cmd window scroll
 
Hello i'm making a game and I got some problems but there is one I need help with http://i.imgur.com/jOuwOVs.png I want to remove the scroll bar but I don't ...
[1 reply] : http://msdn.microsoft.com/en-us/library/31a5xsz8.aspx oops i read "cm... (by mutexe)
January 2014 Pages: 1... 2223242526... 44
  Archived months: [dec2013] [feb2014]

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