Beginners - February 2010 (Page 31)

by Regine
STRING MANIPULATION AND CHARCTER MANIPULATION
 
I'm back in world of programming!:) Please guide me with this problems: FIRST PROBLEM 1) Write a C++ program that accepts a string from the user and then...
[2 replies] Last: Incubbus+1 (by tummychow)
C++, Logic Structure (1,2)
 
I am having a little bit of an issue here. I worked with C++ for 6 months..stepped away for awhile and came back. Now I am back to where I left off...but recent...
[21 replies] Last: Yeah, that's what I've noticed. It's weird, but I'll check it out toni... (by chrisname)
how would i make a box that follow's in opengl/sdl
 
hi im working with opengl/sdl and im still new to it what im trying to do is to make a 2nd box or sprite that will follow the frist box ive made can anyone help...
[no replies]
A type..with a number in brackets... (1,2)
 
I thought a [#] meant it was an array with that many keys.... So why is it that when I do char whatever and char whatever the char whatever doesn't work ...
[34 replies] Last: You have extra ';' at the end of your lines that you don't want (excep... (by firedraco)
do-while loops with multiple conditions
 
im having an issue with do-while loops, i got input just fine from this site, but im having an issue getting it to accept more than one value as acceptable to p...
[6 replies] Last: I personally find constructs like the following to be more useful to t... (by Duthomhas)
Swapping pointers
 
I am having trouble with swapping pointers, can anyone teach me ? # include "header.h" int main (void) { int max,count = 0 ; char **name ; char...
[6 replies] Last: Okay thanks. This solve my problem. (by DoomCarnage)
question about using "this"
 
I have a class called Period and inside of it two functions, one called Sub() and another called IsGreater(): They are called in the form z = a.Sub(b) //su...
[2 replies] Last: THANKS A MILLION! (by cartpauj)
unix pico editor
 
does anyone know how to copy code out of pico and paste into it. it will be much appreciated!
[3 replies] Last: Zhuge - yes i am using Putty to access a UNIX server. PanGalactic -... (by Aaron09)
MS Visual C++ V6.0 (1,2)
 
Hi all, I'm at college and have to write a program using this version of c++. My problem is the differences in programming in this version to the ones use...
[31 replies] Last: Okay! (by Mazd)
print derived class objects
 
This short code compiles nicely - i am looking for print methods to make the output print the format shown below - i am looking for a function or method of call...
[1 reply] : Uh, nobody's going to give you that data. You've already overloaded t... (by tummychow)
Segmentation fault in Copy creator
 
Hello all. I have a weird problem with a copy creator. I'm sure that is something stupid but I can't understand why is working in that way. Lets say that I h...
[1 reply] : Does the copy constructor by any chance call operator=()? (by helios)
problem with insert and push_back command for vector
 
Hi, I am running a subgraph counting code on some moderately large graphs as inputs (approximately 160000 nodes). The code I am running involves repeated cal...
[3 replies] Last: I'm guessing that nbr[j+lidx ] is accessing out of bounds somewhere, ... (by firedraco)
by sparky
Man-hours Using COCOMO2
 
Hi, How do I calculate development time (hours) using COCOMO2? I am trying to calculate the time (hours) a programmer will spend on a programming project usi...
[1 reply] : How does this relate to writing C++? (by helios)
Classes and Arrays
 
I have a class assignment that involves creating a class and I have no clue how to do it! Here is my assignment, Create a program that creates and stores...
[16 replies] Last: what? nvm.... (by brokenbot)
Loading sprites into vectors
 
Hello everyone! Right now im programming on a little spaceshooter. Every time the player shoots a sprite should be generated from the same image. But my comp...
[5 replies] Last: ooooops found my mistake. i loaded the wrong image into the sprite. ... (by nullGrind)
error: Morse-code
 
What is wrong with this program. It has probably something to do with this function. string kodtillmorse(string textin) { if (textin == 'A') kodtillmors...
[3 replies] Last: Line 21: string Inmatning, kodtillmorse, textout; kodtillmorse is... (by closed account jLNv0pDG)
OOP bubble sort
 
#include <iostream.h> #include <string.h> #include <stdlib.h> void bubblesort(char *name , int size); void display (char*name ,int size); int main(...
[9 replies] Last: OH great. It works. thank a lot! i made a really silly mistake. h... (by windgrey)
array of struct, searching for a certain char value
 
Hi there, following code is about adding vehicle details(ID,number,category, brand,price etc.) to a menu and displaying entered details,searching for a parti...
[1 reply] : for(int i = 0; i < NUMBER_OF_VEHICLES; i++){ if(strcmp(data .veh... (by hamsterman)
"Guess the number" game...
 
I'm trying to make the "Guess the number" game. I started learning C++ today. Here's the code i wrote so far: #include <iostream> #include <string> using ...
[6 replies] Last: Plus, rand() % 10 wil give you a number from 0 to 9. rand() % 11 ... (by twiss)
by garob
std::string not working in anonymous union
 
This code here: enum variableType {real, str}; struct variable { enum variableType type; union{ double realValue; std::string stringValue;...
[2 replies] Last: Unlike C, C++ doesn't allow non-basic types in unions. C doesn't ha... (by Bazzy)
February 2010 Pages: 1... 29303132
  Archived months: [jan2010] [mar2010]

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