General C++ Programming - June 2012 (Page 13)

Stop Do A Do Statement
 
How can I stop a do statement in the middle of its code and go straight to the code that comes after the while statement? Basically I have an if statement i...
[1 reply] : break; (by Disch)
Help With a Basic Calc
 
#include <iostream> #include <string> using namespace std; int addNumbers(); int subtractNumbers(); int multiplyNumbers(); int divideNumbers(); in...
[2 replies] Last: THANK YOU !!!!!!!! I FINALLY ACTUALLY GOT SOMETHING DONE THAT I WANTED... (by anikan1297)
Data Encryption
 
I'm looking into writing my own data encryption code/program. My professor has failed to even point me in the right direction. Can some one help me out in point...
[4 replies] Last: Thank you. I really do appreciate you sending me in the right directio... (by Jamaley)
While Problems
 
I am having trouble with a simple do while statement in which I want the code in the do statement to execute while a is true or while b is false. However the ||...
[7 replies] Last: Use the and (&&) operator: while(test1 == false && test2 == false); ... (by BlackSheep)
Use of pointers to pointers for binary tree insert
 
Just curious, is the reason why I don't have to use pass a pointer to pointer is that the r_insert (recursive insert) functio returns a bt_node (binary tree nod...
[2 replies] Last: I don't know what you mean. But what I mean is that we don't have to p... (by closed account 4ET0pfjN)
Having issues with g++ compiler from Code Blocks
 
Hi, I "installed" g++ compiler by using Code Blocks, which is an IDE but it was simple as all I had to do was including the bin directory containing the include...
[2 replies] Last: Thanks for that, I forgot about dynamic allocation... (by closed account 4ET0pfjN)
HELP
 
I am a beginner at programming and I am having some trouble with the results in the following program: ****I need C to keep 0 after it gets 0 and in my pro...
[2 replies] Last: Soranz, Thank you very much for your help. Your advice really helped ... (by nataliaf)
Having a problem with using arrays
 
Hello I am a beginner in c++, can anyone explain to me when I run my code, oldx =200??? here is my code below.. Thanks in advance! #include "stdafx.h" #includ...
[7 replies] Last: If I had to guess, oldy has the same address as oldx . You can test i... (by Moschops)
Setting File Size
 
I am writing a program using visual C++ 2010. I would like to ask how do i set text file size to 50000KB, currently the output of test.txt is only 700KB. ...
[2 replies] Last: If you directly use windows API, CreateFile() and SetFilePointer() is ... (by modoran)
If statement
 
Im making a test with if-statement. And if i want to make the (if) between two numbers? how do i do that? for example... if (age == 13-17){ cout <<"your ...
[5 replies] Last: This is driving me nuts..."you're". (by rollie)
how to take polynomial values from user?
 
How to solve polynomial values in c.I want to add polynomial values like(2X^3+X^2) if i need to add them how i can start and take value by user?
[2 replies] Last: if user give as a input ( 2X^3+2X^2+X^2.......+X^n ) of polynomial fu... (by atif1512)
Dynamic Memory Error
 
The following is a class I am writing for a lightweight project. Don't ask why. #include <cstdlib> #include <cassert> #include <cstring> #include <new> temp...
[4 replies] Last: Hey all, Thanks for the suggestions. When I stopped passing nothrow t... (by browndude)
Turning a council game into OOP game
 
Basically I want to turn my religion based game into a game that uses classes. This is for an assignment however I have no clue where to start switching things ...
[7 replies] Last: Please post modified code. (by clanmjc)
by macs
using of new IDE
 
I was advised in forum to get a new IDE instead of the Turbo c++.. So I got DEV............. All my programs run using turbo c++ , now did'nt work... M...
[4 replies] Last: using namespace std; is explained here: http://cplusplus.com/doc/tu... (by cnoeval)
Passing Function? (1,2)
 
We all know that we can pass variables and values and everything else through functions. But is there a way to pass a function to a function? Here's a scenar...
[21 replies] Last: I have reworked my menu class to support the addition of functions. Yo... (by Volatile Pulse)
Consolidate multiple input/output statements
 
Hi. The other day, I decided to write a small application for my favorite game just to see if I could. So the basic idea is that you input 5 player's names, a...
[3 replies] Last: > Would it not be possible to apply the names to their separate variab... (by JLBorges)
undefined inverse in _ntl_zinvmod
 
Hi all, I have been working on the program here. However, I am getting the error undefined inverse in _ntl_zinvmod when I run the program after I apply the Chin...
[no replies]
apple apps with C++
 
hey guys i want to make apps for apple but with C++ as i prefer it then objective c if there is any way that u can could u give me some help even an example
[1 reply] : You can use objective-c++ which will let you use C++, if you are using... (by closed account o1vk4iN6)
c++
 
Can any one give me an explanation for the below program #include <iostream.h> #include <conio.h> #include<string.h> class strings { char s ; publi...
[2 replies] Last: Here, string is a class. strings() { s ='\0'; } //A COSTRUCTOR (use ... (by macs)
by Nanne
error LNK2019: unresolved external symbol "public void _thiscall ...
 
Hi, I have my code as shown Example.cpp #include "Helpers.h" class Example { public: Helpers helper; string name= "abc"; void test() { string stringVals ...
[7 replies] Last: And also .. I have tried using std:vector but assigning values to 2D v... (by Nanne)
June 2012 Pages: 1... 1112131415... 33
  Archived months: [may2012] [jul2012]

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