Beginners - November 2010 (Page 21)

String Qns
 
For string, the first character is starting from 0 or 1? Qns 1: string s1("LovePeaceJoy"); s1.replace(2, 3, "Love"); cout << "s1: " << s1 << endl; ...
[3 replies] Last: No. See here: http://www.cplusplus.com/reference/string/string/append... (by Athar)
caeser cipher problem
 
Hello everyone! Well I"m supposed to make a version of the ceaser cipher and I thought I got it to work, but when I run the program it goes all the way to the ...
[9 replies] Last: Sorry, I was busy! I have made simplest program from yours. It does... (by screw)
Need A Sample Script For Replace A String
 
Hi , Am new to C++, i just need a sample script for replaceing a string, that scripts accepts two arguments serach string(STR1) and Replace string(ST2) then...
[2 replies] Last: Hi thanks for respond, am going to use this script in my DWH tool ,... (by drmurthy)
where to start?
 
Hey, I'm going to start a project that uses OpenCV to access cam pictures create some data and eventually draw a 2d style grid based map, my question is...
[3 replies] Last: Yes. Qt is awesome. (by hamsterman)
Where can I find information about images in C++?
 
Hello, I wish programming and use images. Does anyone know where can I find tutorial about displaying and loading images and other about images in c++?
[5 replies] Last: Google SDL (C) or SMFL (C++). Quick and easy image loading. (by Return 0)
Linked Lists
 
I'm trying to insert an item into a linked list. I used code that I wrote last year for a similar program, but the code doesn't want to work now. I keep getting...
[4 replies] Last: while( curptr->next!=NULL ) //or just while( curptr->next ) curp... (by ne555)
C++ array bubblesort
 
I am struggling with creating a bubblesort function , this is my array I need to sort from smallest to largest : int array = {1,2,3,4,5,6,7,8,9,10}; i...
[6 replies] Last: thanks Darokthar (by firix)
Having problem 'reusing' int variable
 
I have a problem with the following code, my debugger/compiler keeps crashing me: (For those wondering the NSlog stuff, I am trying to code in Obj-C) int in...
[no replies]
Optimizing a function with Pointers
 
Hey everyone, I'm trying to optimize a 2-D cross-corellation code I am writing. It inputs a 64 x 64 vector of ints and a 96 x 96 vector of ints and performs ...
[8 replies] Last: You should also turn on inlining in the options of the compiler, if yo... (by rapidcoder)
how do I use this method - with this array
 
I am trying to understand code for a for class assignment. It is the turtle with a pen exercise. The .cpp file has: int cmds = {5,5,4,5,9,2}; ...
[1 reply] : void processTurtleMoves(const int commands ) { return; } I... (by sohguanh)
by lare26
Trying to create dynamic actors
 
I am making a simulation with dozens and eventually thousands of persistent simple actors. They need to be made dynamically, because I have no idea how many the...
[11 replies] Last: Your invited to join if you want. (by lare26)
passing vector<int> to a class method
 
hello, I am having trouble figuring out the proper syntax to pass a vector of integers (or strings, chars, etc) to a method of a class without getting compile e...
[4 replies] Last: +1 (by Duthomhas)
best container class to store a deck of cards
 
what is the best container class to store a lists of cards for black jack; is it a vector type class(I think this is the one that contains dynamic data thats...
[3 replies] Last: For me, I believe the choice of container depend on the operation I in... (by sohguanh)
Array program doesn't run correctly.
 
#include <iostream> #include <iomanip> using namespace std; int main() { const int NUM_EMPLOYEES = 7; // Constant int for employee amount. const in...
[1 reply] : I don't understand your meaning clearly. I edited your code. #includ... (by guevara)
by naras
Using method in friend operator
 
Hello, I have problem with code like this: class X; class Y{ ... char type; //type of 'node', may contains data or may be a 'node' void asd(...
[4 replies] Last: This is bad for many reasons: X() { wsk = &X(); } ... (by Disch)
by heidiK
using linux command inside C++ code
 
Hello everyone I need some help regarding using linux command inside C++ code instead of writing those commands on the screen each time I run the program.Som...
[2 replies] Last: diff /home/test1.txt /home/test2.txt Reason being above Linux com... (by sohguanh)
MySql with C++
 
Hey, ive search the net and cant find any good tut on connecting a database in C++. So does anyone knw where i can download a good tut explaining how to use sql...
[5 replies] Last: OCCI is the best library for connecting to oracle database from C++. ... (by sohguanh)
Filling an array?
 
Hello, I'm having some trouble with filling an array in my code I'm suppose to write a function that fills an array that looks like this void fillArray(int ar...
[4 replies] Last: Oh ok i see now thank you very much, that totally makes sense now than... (by enigmaterror)
error C2248: function-style initializer appears to be a function definition
 
hello there, i am new in c plus plus and i got this problem with my assignment. i hope someone would help me solve this problem. thanks a lot. #include <ios...
[3 replies] Last: Your declaration of search_birth on line 17 does not match that on lin... (by jsmith)
No user input program
 
I have to write a program for class. The problem is posted below: Buddy, lives in the backyard. He barks at night when he sees a cat or a squirrel that has c...
[2 replies] Last: Thank you. You are using some stuff we haven't learned yet, but this d... (by linsll68)
November 2010 Pages: 1... 1920212223... 42
  Archived months: [oct2010] [dec2010]

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