Beginners - September 2011 (Page 47)

bubble_sort
 
#include<iostream> #include<conio.h> using namespace std; int main() { int arr_1 ={1, 4, 7, 15, 2, 44, 3, 22, 21, 6}; int i, temp; int swp; ...
[3 replies] Last: right thanks. forgot that = is the assignment operator and not for... (by helterskelter)
Can Someone please help with my code.
 
Recently I have been learning to use arrays and on visual c++ express 2010 I made a program that was vaguely meant to represent a city with streets. I have used...
[2 replies] Last: thanks very much (by closed account 2NywAqkS)
loop with numbers and chars
 
Hi i wanna know if can i do something like this: 00a 00b ''new line" 00c "new line" 00d "new line" ... 00z "new line" 0aa 0ab ... etc. and...
[4 replies] Last: Thanks for your replies.rssair your code will help me definitely.Thank... (by rafailos)
Segmentation Fault on beginners image processing problem
 
Hello, I'm fairly new to C++ and image processing. This seems to be something easy to fix, but I can't figure it out. Here's my code: #include <cstdlib> ...
[no replies]
Private Classes included in Class Constructor decleration
 
I do not understand the meaning of the following. This code is (say) a constructor of a class(B) that inherits class(A) and has some other private objects (obj1...
[2 replies] Last: During the construction of your class, the constructor uses the initia... (by closed account zb0S216C)
by DevilX
#define in a struct?
 
Heya! I'm using Dev-C 4.9.9.2 and I got into a damn problem, it's probely very easy to solve but I'm too retarded to find a solution :) This is a small bi...
[2 replies] Last: Thanks alot for the answer and for explaining how it works. I guess th... (by DevilX)
First program not working, need some help.
 
I am starting a c++ class soon and have been reading over my textbook and decided to try a simple program. I attempted to write a simple gas calculator and from...
[7 replies] Last: however it shuts down at the end still. Did you read the link th... (by Disch)
Convert integers to strings and use them for find replace in file
 
Dear Sir, I am tring to convert integer to string and using string for further find and replace operations. While doing so I am using for loop to for integer...
[4 replies] Last: Dear Sir, Anyone can give me the solution of my above defined problem... (by somshridhar)
Phone development help!
 
Hello. I don't know where to post this, so I guess here will do! Where can I get started on phone development? I want to do iOS, but I have a PC, so I don't thi...
[4 replies] Last: I don't have any iOS programming experience, but from what I've gather... (by shacktar)
Writing to a string array
 
Hello! Could anyone help me with writing characters to a string array I'm trying to read text file which contains several commands. I want to store each comm...
[3 replies] Last: Well, if you are still not entering your while loop, you might look at... (by kooth)
Program builds in debug mode, but not in release mode
 
Right, I wrote a simple program which works with DTAPI library (used for reading a video stream from a Dektec device). To use the library, I copied the DTAPI...
[4 replies] Last: andywestken Thank you!!! My file indeed had a (d) on the end, so I fou... (by mondaytofriday)
by basel
storing binary in a file
 
Hi i have a problem here with storing numbers in a file. i made an array ,put in it numbers and stored them in a file using the command fwrite, but when i ope...
[3 replies] Last: OK, my bad. To do what you want, you'll need to use a character (8 bi... (by kooth)
bool functions and comparing their return values in main()
 
Hi This is my first post here, and ill give some little info about me. Recently after long term thinking i decided to follow the programmers step since i love...
[9 replies] Last: Thanks sir that was helpful. (by masky007)
word count func not counting words.
 
I searched on the forum and really didnt find anything for my specific needs so here goes. This program compiles with no errors but it doesnt count the words in...
[4 replies] Last: Thanks alot guys/gals. Ill give it a try right now. (by KingDreGo)
by topeh
Searching and sorting array
 
can you give me some example program ? please :P
[2 replies] Last: There are a lot of searching and sorting algorithms insertion sort bei... (by Undeclared)
by boston
Switch/Default statement help
 
Hi I have a switch statement that chooses between three employees' information for the rest of the program. The switch works, but I was wondering how to make ...
[5 replies] Last: Hey meerkat, Awesome, thanks for the help! I'll give it a whirl. This... (by boston)
by jalfor
Position Calculation
 
I'm using SFML with C++ to make my little game that I'm working on, and it's all going reasonably well though I have one thing that I need help with. I need a f...
[5 replies] Last: Fixed, thanks a bunch :D float dRotation = 270 - SpaceShip.GetRotati... (by jalfor)
inherent and composition
 
hello, i'd like to know is this code consider inherent or not? i read about inherent but i'm not sure about my code this is the class header for Vehicle and D...
[7 replies] Last: //vehicle.h (header guarded) class Vehicle{ private: //note that they... (by ne555)
Comparison operator overloading
 
Hi there, I have a question on one of my C++ homework assignments that has me vexed. "Why might it be hazardous to overload comparison operators?" My th...
[3 replies] Last: double backslash http://xkcd.com/727/ (by firedraco)
Can you create pointers without initializing them?
 
Okay I'm reading a book that is talking about copying data from a previous class object into another class object. In this tutorial they're trying to teach me ...
[1 reply] : Indeed you can: int* x; //points to random memory, probably not your... (by firedraco)
September 2011 Pages: 1... 45464748
  Archived months: [aug2011] [oct2011]

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