Beginners - October 2012 (Page 20)

Infinite loop when allocating memory
 
I am creating a program to calculate and display call statistics. When the default constructor is called and it goes to allocate memory for an array for the cal...
[no replies]
trying to separate a 3 digit number
 
Hey guys, new to the forum and already have a question haha. I'm trying to create a program that will do as follows. Write a function called breakThree that ...
[1 reply] : this is what i have so far. #include <iostream> using namespace std;... (by JoeyBootz)
Help with FindFirstFile()
 
Hey guys, I'm trying to build a program that reads file names from a directory, and I think in order for me to do this I will need to learn how to use the FindF...
[no replies]
Trouble creating a class to manipulate strings
 
So the goal of the code is to create a class to manipulate words/strings. They're stored as an array of characters I'm lost as to how to call the strings whe...
[1 reply] : Go MSU! this project has me bent over lol (by spartylicious)
by cadlac
Ignoring capital/lowercase letters using STL?
 
Hello - I wanted to build a program that will check a user entry against a preset list of words and phrases to see if it exists (and if not, add it). I want...
[1 reply] : #include <iostream> #include <vector> #include <algorithm> #include <... (by cire)
by gghf
Quick question about a switch statement
 
After reading the lesson about switch statements I am confused so I set up 2 examples here. In example one if i start it with switch (x) and then have case 1, d...
[4 replies] Last: help pls (by gghf)
Business Simulation or Super Hero RPG
 
In terms of coding, I've been dabbling with C++, Python, and HTML for years. Would need to take refresher courses online to learn. I've created a couple of game...
[2 replies] Last: Some considerations would be the speed of data retrieval when simming ... (by gororules)
Help: include statement for win32 and linux
 
Hi, I have to write a small C++ code that runs on window and linux. Actually I am writing a sequence code for MRI and the scanner uses both window and linux ...
[1 reply] : Yeah, too bad you don't show the actual error that you get. That's al... (by webJose)
by dancks
float comparison isn't working?
 
code in question: void checkcollision() { float x1 = tanks .x; float y1 = tanks .y; float x2 = tanks .x; float y2 = tanks .y; float dist = sqrt((x1...
[2 replies] Last: Good spotting dancks - those pesky semicolons !! (by TheIdeasMan)
.h & .cpp files
 
I have been learning C++ for the past few days, and it seems a very interesting language to learn. But as a rookie in the area, I am finding a lot of informatio...
[8 replies] Last: Thank you everyone for your replies, what a good healthy community! :)... (by jacqmizz)
by nahla
couple quick questions....
 
Which of the following options checks that city is neither Chicago nor Dallas? Choose one answer. a. if !(city == "Chicago" || city == "Dallas") b. if (ci...
[2 replies] Last: Homework questions eh? lol Well think about it. "||" means or and "!=... (by Fovv)
wrong Output for searching specfic item using linear search
 
Hi...im trying to implement a function called viewItem based on the description below. We are supposed to use structures and use files as well. View the item ...
[1 reply] : You shall not use open mode flag app with fiies opened for read. So re... (by vlad from moscow)
Time Table Management System
 
I want to make a Time Table Management System of a University using Object Oriented Programming,the features I have to provide in it are that if I enter the a n...
[1 reply] : And time table should be weakly, which means that we have to create a ... (by Ahmad Shoaib)
sequence
 
I am having trouble structuring my programs, with cascading if statements and nested if statements. This program adds subtracts multiplys and divides. But you h...
[6 replies] Last: ty (by colin striefsky)
Can I get my computer to sing?
 
Hi there. So I just started my course on programming with C++, and I wanted to do my own small project on the side. I want to get my computer to sing, specifica...
[1 reply] : You need to use the beep command. Check out this post: http://www.cplu... (by Momojams)
inline
 
what is the difference between the following codes? both are giving same output though... #include<iostream.h> #include<conio.h> class A { pub...
[3 replies] Last: okay ..i got it.thnx (by vgoel38)
by G3PO
Debugging code.
 
I have a short code that I'm trying to debug, but am a little stuck write now. Basically all the code does is have the user input a number, and it will tell whe...
[2 replies] Last: Perfect, thank you very much! (by G3PO)
Two dimensional array
 
Hello readers, I want to make an two-dimensional array, but it's not working. If I compile my program it puts out an one dimensional array.... how? Here is...
[2 replies] Last: I thought the array would do that automatically... But thanks I have i... (by dutchman)
Pointer segmentation fault error
 
I have something like: "object_*_amount" pencil * 23 and I want to get the name and amount in different variables. So I read all the string in s, than whe...
[6 replies] Last: Hi bratulenu21, char *p, s , sep =" * "; this is the same as : ... (by TheIdeasMan)
Whats wrong with my while loop? (1,2)
 
I am doing a simple menu and also checking for errors. Meaning my menu has only 4 options. If user enters 5, or 6, or A b C d. It will return "An invalid opt...
[22 replies] Last: Thanks for your great help. Yes this solved it all. (by b1b2b3b4)
October 2012 Pages: 1... 1819202122... 84
  Archived months: [sep2012] [nov2012]

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