General C++ Programming - March 2014 (Page 16)

by Ibzz
Visual C++ Windows form display error.
 
I'm fairly new to visual C++ programming in a windows form and the code displayed below works fine. However my issue is as soon as the program is running it wil...
[4 replies] Last: Thanks for your help it worked ^_^ (by Ibzz)
greatest integer
 
hi everyone i would like to ask about a proper algo that i can use to solve this problem,i will try to write the code myself this is my own practice for an exa...
[3 replies] Last: #include <vector> #include <algorithm> #include <iostream> bool less... (by ne555)
differentiating 1 from x as a string
 
Hello, I'm given an assignment where I need to implement a compiler for a language called Simple. for instance given an expression "y = x * 1" I need to output ...
[2 replies] Last: big thanks for your answer, I wasn't quite familiar with exception han... (by atakanarikan)
Need help
 
Can anybody explain this to me how this change happens, i have written exam #include<iostream> void ChangetheContent(int Arr , int Count) { for(int C=0; C<...
[no replies]
double precision problem
 
i am using a variable double t = 0.3; but when i did the debugging, i found that it is taking its value as 0.29999999999999999 also another variable ...
[5 replies] Last: No, you cannot directly use 0.3. You can use the computer's approximat... (by booradley60)
Failed to run msword automation in windows xp
 
I have developed the msword automation using the following link http://support.microsoft.com/kb/308338 and using VC++ in Visual studio 2010,and msoffice 2...
[6 replies] Last: solved the problem by changing the solution properties and stafx.h fol... (by gopal2773)
How does delimiter work>
 
Hey so I am little confused on how delimiter work. I need write a function that splits the string by delimiter. Function header is: vector<string> split(stirng...
[9 replies] Last: #include <string> #include <vector> #include <iostream> using names... (by kannanmj)
Arrays. Please, help.
 
How can I do this: Making a program that capture a name and place of last in an array of string which must be kept on a rolling cycle and capturing the above...
[3 replies] Last: #include <iostream> #include <string> #include <queue> using namesp... (by kannanmj)
Help with files
 
So I am awful when having to use data or .txt files. I believe my code is right, I just don't know how to upload the files. Please, any help will do. Here is th...
[3 replies] Last: yes i can see that, but thats not uploading a file. also, are you sure... (by Little Bobby Tables)
by Dkob1
Numerals Problem
 
So this is what I have, it works but the problem is that it when The output comes out it like this: Please enter an integer 123 CXXIIIWould you like to con...
[2 replies] Last: This is what my output looks like: Please enter an integer 123 CXXII... (by Dkob1)
by CRooky
Sales Program HELLLP PLEASE..!!! How do I even get started..? I'm very new to C++
 
Input Data File Layout (SALES-RECORD) ----------------------------------------------------- Field Data Name Type -----------...
[4 replies] Last: Hi, What you need to do is use file input/output to read data from a ... (by Little Captain)
Adding Fractions! How to align correctly??
 
i need an output like this... This program adds fractions. ‘Y’ continues, any other key exits program ===============================================...
[9 replies] Last: Here is what i have. void Output (int A, int B, int C, int D, int ... (by Noob Programmer)
by kdeng
Number of Array parameters in function?
 
So in this function it is already passing the array into the function but the thing is one parameter being passed into the function and if so how do I go about ...
[12 replies] Last: no I have the programming class at 8:00 pm so I can't work on it but I... (by kdeng)
How does vector split work?/ delimiter
 
So let say if i have something like this hiAAAmyAAAnameAAAis how do i use vector split to get rid of AAA and just get hi my name is
[5 replies] Last: okay i got this far but its not giving me the answer.. help #include ... (by whoovian11)
by birbal
Cosntant pointer
 
I am reading c++ primer 6th edition. here i encountered a example int * const pr = &rats; As far i understand it should be like int const *pr = &rats; ...
[3 replies] Last: "You have to read pointer declarations right-to-left. " http://www.par... (by booradley60)
Random walk program (1,2)
 
Hey guys I'm supposed to create this program for my c++ class but i am at a loss. i have been doing fine in the class up until now. I am supposed to create a ...
[20 replies] Last: Again num 4 is alawys 0 so that would mean num3 is always either -1 or... (by giblit)
If statements not working
 
I am making a multiple file program. I need to get commands from a input file and make the program do different things depending on the commands. Whenever I co...
[no replies]
Windows RAM Limit
 
The current program I am writing crashes because the memory exceeds the RAM limit in Windows. Would parallel programming fix this issue? Other than that I am no...
[5 replies] Last: Also are you allocating on the heap or stack? (by giblit)
How to make this Expreesion Tree?
 
#include<iostream> #include<string> #include "StackType.h" using namespace std; struct node; int priority(char); node* makeNode(char); void attach...
[1 reply] : Line 98: printTree is declared as requiring one argument of type node... (by AbstractionAnon)
Inventory problem?
 
Hi I am developing an inventory class and items, and weapons. Can anyone see the issue with my code the program crashes I think its a segmentation error. Cou...
[7 replies] Last: I would stronly suggest you use a standard container for your Inventor... (by AbstractionAnon)
March 2014 Pages: 1... 1415161718... 36
  Archived months: [feb2014] [apr2014]

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