General C++ Programming - November 2012 (Page 14)

If statement problem
 
Grettings I am currently trying to create a method that creates an IntSet that contains all the odd number froms another IntSet. My general idea is the followi...
[1 reply] : Hello 1. If you look at the right, you can find icon with "<>"symbol.... (by kg1992)
by r11692
random number generator
 
I need to write a program that asks the user how many random numbers to generate. Print the users random numbers, ten per line, separated by a space. the random...
[5 replies] Last: This is because I have made a closed source program. It's closed sourc... (by softwaretime)
by georgp
Method as a pointer ?
 
Hello everyone, after searching Google for two hours I'm still totally confused about the following example of an handout. What I don't understand is the pa...
[4 replies] Last: Great!!! Thanks a lot, you really helped me to understand the script. ... (by georgp)
Structured array (Pointers?)
 
If I have a structure for an array, like this, struct ARRAY_STRUCT { int num1; int num2; char char1; char char2; } and I want to use variables in the...
[7 replies] Last: Thank you for the advice Terminux, I wasn't aware that it was such bad... (by jim hurley)
Sorting name in alpha order
 
Hi I am having troubles sorting names in alpha order for these names: John DOE, jane Doe, WODAN YMIR. after the sorting it would output as: jane Doe, WODAN ...
[3 replies] Last: What you are sorting are the lower case names, so that's the lower cas... (by toum)
by Carnez
armadillo and mex
 
I am having difficulty compiling an example mex and armadillo program and was wondering if anyone could assist me. I am using Mac OS and have had successes with...
[no replies]
C++ Programming: Adding two objects, using pass-by-reference?
 
I have been working on a lab project for my C++ class, and am struggling. I'm new to programming, and we just got into Object-Oriented Programming. My quest...
[1 reply] : To add the two, you simply add the two imaginary parts and the real pa... (by rocketman)
If statement logical operators: Is there a way to save lines here?
 
Hi everyone. I've been doing some work for a project that involves attributes for an RPG game. There's a part that uses if statements for attribute checking. ...
[1 reply] : The problem here is that if it passes the checks in more than one att... (by TheIdeasMan)
prinf isn't outputting anything (no errors)
 
heres my code #include <allegro.h> #include <stdlib.h> #include <stdafx.h> #include <stdio.h> int main (void) { allegro_init(); printf("Allegr...
[9 replies] Last: No worries, pleased to help out. The only thing though - I don't know... (by TheIdeasMan)
Reading from file, strings and integers.
 
I have a file containing a city, then degrees and minutes for north, followed by degrees and minutes for west. Here is an example: Birmingham AP 33 34 86 ...
[2 replies] Last: I've updated what I've got at this point. I think I need it to read in... (by pholtos)
Unhandled exception
 
HI all, when i run this code i get error message said "Unhandled exception at 0x012D9116 in prog.exe: 0xC0000005: Access violation reading location 0x0126E710...
[5 replies] Last: okay, thanks. it's in real genetic algorithm implementation(multi-obj... (by DaliaMadkour)
random number generating
 
HI, how i can generate real random number enclosed in specific range such 10-100 real random not pseudo . and how can i exactly use srand(); thanks,
[3 replies] Last: thanks, Peter and Cubbi. (by DaliaMadkour)
hashtable errors
 
Where is the mistake, I do not understand the errors. It says; 'HashTable<HashedObj>::ITEM_NOT_FOUND' uses undefined class 'HashedObj' 1> with 1>...
[2 replies] Last: Thank you very much. I do not know how I misses that. (by genclik27)
Perlin Noise Terrain Gen
 
Alright, I am trying to make a terrain generator similar to minecraft's in c++ and opengl. I am trying to use perlin noise to generate a coherent heightmap, bu...
[5 replies] Last: Wait, nevermind. It returns some values. I was using different objec... (by Jayhawker07)
Problem with Compiling
 
Ok. So I've tried almost everything suggested on the net about this problem. I've tried using Netbeans, Eclipse, and a few other programs, but nothing works. I ...
[7 replies] Last: @Moschops Thank you very much!! That has been my problem all along. My... (by Will West)
C++ Programming Looping
 
do { cout<<"When did the call start?\n"; cout<<"Please enter the time in 24-hour notation.\n"; cin>>start_time; cout<<"How long did the call last?\n"; cin...
[1 reply] : It's good to write it down. What you really want is this: input: cin ... (by hamsterman)
i need help for my task please :(
 
#include<conio.h> #include<iostream.h> #include<iomanip.h> main() { int banyak,i,tobs=0,topemb=0,tanggal,kode ,lama , total ,pajak ,harga ; float diskon;...
[1 reply] : I don't really see the reason why discount shouldn't show up. Even if ... (by kg1992)
I cannot find my error
 
http://www.cplusplus.com/forum/beginner/85634/
[1 reply] : Bump (by CallMeCrazy)
Network Programming
 
Hi I would like to be able to write a program to put on my PIC. I am a beginner so please don't make it sound too complex. Basically what i would like to ...
[3 replies] Last: By PIC are you talking about a Microchip Technology Inc. PIC? If so t... (by closed account z05DSL3A)
It runs but closes
 
This program should solve for a matrix but I havent started with the main body since it closes when I run it #include <stdlib.h> #include <conio.h> #inclu...
[12 replies] Last: ... also the main() function should always return an integer back to t... (by ajh32)
November 2012 Pages: 1... 1213141516... 51
  Archived months: [oct2012] [dec2012]

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