General C++ Programming - April 2012 (Page 34)

by Gldnbr
Getting operator sign
 
I'm trying to create a program that will solve a math problem, I have to do it the long way. How do I determine the operator sign? So, if my input is: AA...
[4 replies] Last: When you have the location of +, split the string at that point, evalu... (by hamsterman)
Simple ASCII problem I can't figure out.
 
Predeclared variable works, so if one comments out the cin statement, it goes through until the end. when using CIN to capture the input, it terminates at the ...
[2 replies] Last: The exercise specifically asked me to use a character string. I am not... (by DryRubberChicken)
reading data from a file and storing it in variables
 
#ifndef SEARCH_H #define SEARCH_H class Search { private: int ID; int Health; double Eccent; public: void GetID(int id) {ID = id;} void GetHe...
[2 replies] Last: thepedestrian thanks for the reply. I have those values stored in a t... (by begin81)
arrays of char
 
hi,this is my first appearance in forums in English, why I need your help to explain me and fine the solution of this exercice. Writing a function that has a...
[1 reply] : We can't solve your homework. That's simply against the rules of the f... (by TheDestroyer)
by Yousra
The Problem : Simulation of Waiting Queue
 
I have this Problem as an assignment : An airport has one runway. When a plane arrives near the airport at a random time Tarrival, it might have to wait (remai...
[no replies]
Binary Tree
 
Hello! I need to make a binary tree that contains names and numbers. I'm pretty sure I got most of the code right. The only trouble I am having is how to order...
[3 replies] Last: Ok so I have looked over my code a little more and this is what I came... (by klrocks92)
Help with openGL texture - please help
 
Hey, so I've just hit the wall with textures in openGL (C++.) I've tried hundreds of different example source codes, tried to load hundreds of different third p...
[5 replies] Last: Wow, what a rookie mistake! OH MY GOD, IT WORKS. Don't take this in t... (by desoxena)
Help with understanding how to create this pointer
 
Ok so let's say I have a pointer of type TreeNode called root . This pointer points to the beginning of my binary search tree(http://imgur.com/MqVhJ) and to re...
[3 replies] Last: Oh, okay. In that case you just have to delete what's at the end of yo... (by BlackSheep)
Segmentation fault error
 
I am getting a segmentation fault error in this code taking an infix expression to a postfix expression, I have a lot of debugging code in and I'll leave it in ...
[3 replies] Last: Do you not have any idea where the error is? Try using breakpoints to ... (by BlackSheep)
Help With Classes
 
I'm trying to write a class to figure out the parameters for a rectangle or arch window. I need some help with the class. I'm having some difficulty calling var...
[1 reply] : You need to declare the data as a member of the function. For example:... (by BlackSheep)
Problem with either something pure C++ or something SDL_net
 
I'm on the edge of a mental breakdown right now, so I can't explain much, but basically commenting out where the following function was called stops my program ...
[2 replies] Last: char *test[sizeof(strtok((char *)p->data, " "))]; _ ¿why do you nee... (by ne555)
Function Pointer in a class pointing out of the class
 
Hello I'm working on a project where I need to use a function pointer in a static class member that points to a non-member function. When I try to do this it gi...
[14 replies] Last: Thanks so much! I got it working now. (by SH4773R)
by ggally
Copying Arrays using Pointers
 
I need to write a program that stores the following #'s in the array miles: 15,22,16,18,27,23,20. Need to copy that to array named dist. then display dist value...
[4 replies] Last: Sorry I am having trouble understand pointers and arrays! (by ggally)
Switch from parallel arrays to array of structs, identifier promlem.
 
I'm trying to switch a code that was set up with parallel arrays to use an array of structs instead but I can not figure out how to identify everything now. H...
[no replies]
Need help with pointer question!!
 
Write a function that reverses the values of an array of floating-point data: void reverse(double* a, int size) In the function, use two pointer variables, no...
[1 reply] : start with this... float *ptr1; float *ptr2; ptr1 = a ; ptr2 = a[si... (by oonej)
by oonej
BinaryTrees
 
Hey guys, I'm taking a data structures course and today we went over binary trees... I got the code from the book and tried using it, but came up with a TON ...
[2 replies] Last: this is how they provided the file... this isn't my code (by oonej)
Menu
 
Hey all i would appreciate any help here. I had to create a menu and did so, but the problem is every a letter is pressed instead of a number the code goes into...
[1 reply] : Try to use cin.clear(); after cin>>order; (by vlad from moscow)
C++ programming
 
Hi. I'm new to c++ and I want to know about how the object-oriented concept of reusability relates to structs, structs within arrays, arrays within structs, and...
[no replies]
by glazer
censoring a word
 
Hello. I need to write a program that reads from a text file that has a couple words(5-6) and creates another text file that has all thease words except a word...
[5 replies] Last: Thank you. (by glazer)
by rollie
Interview, need to brush up
 
I have been vacationing a while lately, and may have a couple interviews in the near future. I want to brush up on my C++, as it's been some time since I did an...
[3 replies] Last: In the past I've been contacted by a couple of big recruitment agencie... (by kev82)
April 2012 Pages: 1... 3233343536... 49
  Archived months: [mar2012] [may2012]

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