49,761 Topics

Member Avatar for
Member Avatar for juljan30

whats wrong with this one? i am trying to display the values in an odd index can any one help? int main() { int numArrays[] = {"2 ,67 ,23 ,5 ,7 ,34 ,14 ,4 ,8 , 62"}; int i; printf("A. Values of NumArray with Odd Index: \n"); for(i=0;i<=10; i++) { …

Member Avatar for juljan30
0
223
Member Avatar for adityasingh95

i wrote this program as an answer to a question given in my book but the output always displays incorrectly #include <iostream.h> #include <conio.h> #include <string.h> #include <stdio.h> class Clothing { //private data members char Code[5]; char Type[20]; int Size; char Material[20]; float Price; public: //constructor Clothing() { strcpy(Code,"NOT ASSIGNED"); …

Member Avatar for rubberman
0
138
Member Avatar for Div Intellect

Any pointers on how accented characters are implemented in Windows would be helpful. Goal - Ability to add accented characters(áéíóú) using keystrokes like ctrl + ' followed by a vowel and all other combinations that work on standard applications like MS Word, Text pad etc. My Findings till date - …

0
97
Member Avatar for rajatC

Well i use Dev-c++ 4.9.9.2 for programming..i m using it from last two years...recently i learned java and saw that all java programs are run through command prompt. I tried tha same in c++. i saved my program in dev-cpp/bin .but i am not able to do this..what is the …

Member Avatar for joaquince
0
3K
Member Avatar for Monster99d

Is there anyway I can make my static text appear with a delay? For example: Hello (Wait 1/5 of a second) How are you? etc... Any help would be greatly appreciated.

Member Avatar for Ancient Dragon
0
89
Member Avatar for triumphost

How can I get camera view and Triangle count of models in OpenGL? I know it's a vague question but I'm just starting opengl and none of the tutorials explain how to get the current camera view. I hooked all OpenGL calls for a game and figured out how to …

Member Avatar for mike_2000_17
0
139
Member Avatar for gizmo7008

I have it all written, and it works. However, I have to enter a value and it brings the prompt up again. When I enter the value in the second time, it plays the game. I always have to enter the value twice to get it to work. I'm not …

Member Avatar for gizmo7008
0
899
Member Avatar for silvercats

Is that possible to decompile a C++(or Java) "exe" file enough to read a TEXT password,stored in the source? .......just a regular string or char. no encryption or stuff

Member Avatar for Ancient Dragon
0
339
Member Avatar for JamesArhy

Hey Guys, I'm building an asteroids-like game and I'm needing to be able to apply the same operation too all of the different "aliens" on the screen. When I had two aliens on the screen I performed all of the functions manually but that is bad program design. I created …

Member Avatar for sfuo
0
798
Member Avatar for Torf

Ok, what I am trying to do: A simple RPC package consisting of user-stub and server-stub. The rpc function should: -create a socket -request connetction from server -pack funtion name and input argument into a message body -send message -set and unpack reply -return result and error code The server-stub …

0
63
Member Avatar for decade88

I need help with getline in the for loop,the loop can take the inputs from file in 1st loop,but it skipped the first getline after the 2nd loop...Any help will be appreciated... #include <iostream> #include <string> #include <iomanip> #include <fstream> using namespace std; int main() { string name; int num_semester; …

Member Avatar for deceptikon
0
141
Member Avatar for Dewey1040

I've recently created a .dll project in Visual Studio using C++. I'm curious how Visual Studio is creating the ability to link the files. I got everything working properly but it seems I can get the project to work flawlessly regardless of where the .dll file is located. Once the …

Member Avatar for mike_2000_17
0
176
Member Avatar for anuran
0
158
Member Avatar for robertstan79

Hi, I am writing a program that uses post-order breadth first tree-traversal to give me a path navigating from one point in my house to another. Here is a map of my house: http://postimage.org/image/3vq80wdkx/. Here is the tree that I need to traverse and list all the possibilites of: http://postimage.org/image/nlbv9dp03/. …

Member Avatar for deceptikon
0
103
Member Avatar for sharath_137

hi all, wat is session in c++. when do we want to create a session. regards, Sharath.

Member Avatar for sharath_137
0
90
Member Avatar for anuran

im using this code to send strings to serial port but this is very slow,the other end of communciation arduino board is not able to get those strings at realtime,how can i fasten this communication? there is no problem in arduino board or arduino code,it works fine for its sample …

Member Avatar for Ancient Dragon
0
327
Member Avatar for Sendy Hipo

hi guys, i want to do this task given by ebook : **Modify the SimpleVector class template presented in this chapter to include the member functions push_back and pop_back. These functions should emulate the STL vector class member functions of the same name. (See Table 16-5.) The push_back function should …

Member Avatar for Sendy Hipo
0
954
Member Avatar for Lucaci Andrew

Here's some simulation of the basic push_back and pop_back functions from stl vectors, "inspired" by this thread: http://www.daniweb.com/software-development/cpp/threads/427912/question-about-a-simple-vector-class-template

Member Avatar for Rashakil Fol
0
495
Member Avatar for Lord_Migit

Hi folks, just a queary about checking chars. I have a char[] variable. I ask the user a question and the user types a response and presses enter. I need to check the variable to see if it said particular things and more importantly if it said nothing. #include <iostream> …

Member Avatar for Lord_Migit
0
194
Member Avatar for fatimah batool

PLease help me in adding files to this code is it very simple for #include<iostream> #include<windows.h> #include<conio.h> using namespace std; struct flight_date { int day; int month; int year; }; struct flight_time { int hours; int minutes; }; struct BookingInfo { flight_date date; flight_time time; char location[20]; char destination[20]; char …

Member Avatar for Schol-R-LEA
1
199
Member Avatar for fl415

here is the problem: Write a C/C++ program (call it string invert) that takes a string argument from the command line and outputs the string in reversed order. Here comes the twist: Each process can output at most one character. If you want to output more than a single character, …

Member Avatar for DeanMSands3
0
847
Member Avatar for speakon

Hello, I have just recently begun the move from Java (beginner) to C++ and have found an interestng project I would like to develop which should teach me some great c++ code. **Encrypted Console Journal** * Text File Encryption * File IO * Date && Time System Retrieval * Text …

Member Avatar for Lucaci Andrew
0
170
Member Avatar for omkar_more
Member Avatar for anuran

im using this code to detect face features,it works properly but after sometime of its run,video frame pauses and stops responding. im running it on microsoft visual cpp 2008 #include "stdafx.h" #include <stdlib.h> #include <stdio.h> #include <math.h> #include <cv.h> #include <highgui.h> #include <conio.h> // A Simple Camera Capture Framework const …

Member Avatar for Banfa
0
259
Member Avatar for ldpasaje

Hey guys, I have a rough code here that displays a Square asterisk, Oval shaped asterisk, Arrow asterisk and a Diamond asterisk, and it displays vertically, but I cant figure out how to display my output horizontally. here's my code so far, #include<iostream> #include<conio.h> using namespace std; int main() { …

Member Avatar for Labdabeta
0
2K
Member Avatar for muditvijay

hi guye please help how to sort a file like: with phone no. name;class; phone no mudit;5th;987654321 rohit;4th;98745321 sumit;7th;987654321 ankit;9th;984321 aaa;5th;987654321 bbb;5th;9874321 ccc;4th;98765421 ddd;8th;9876543

Member Avatar for Cross213
0
127
Member Avatar for rdx05

#include<iostream> #include<string> #include<conio.h> using namespace std; int main(){ string array[5][5]; int i=0,j=0; string z[5]={"abdg","ygur","guqh","asdf","sent"}; for(i=0;i<5;i++) for(j=0;j<4;j++) { array[i][j]=z[i][j]; cout<<"\narr[][]="<<array[i][j];} for(i=0;i<5;i++) cout<<"\narr="<<array[i]<<endl; //this z not workin.WHY??...PLZ HELP! getch(); return 0; }

Member Avatar for rdx05
0
205
Member Avatar for out1rider

Using Nero 8 Ultra Edition ... Everytime I DVD burn, with 5 seconds left during a dvd I get the below error message .... the program worked fine for about 6 burns ... I downloaded and installed "vcredist_x86 runtime" from ms ... also asked for / received / downloaded a …

Member Avatar for Asmith23
0
262
Member Avatar for SyncMr

0 down vote favorite I have a huge vector of boost dynamic_bitset. I want to write the dynamic_bitset vector to a file and later read the file back into a dynamic_bitset vector. Is the memory for dynamic_bitset allocated as a contiguous block of memory (so that I can write the …

Member Avatar for NathanOliver
0
2K
Member Avatar for TheBusDriver

B works, A does not. Is there any way to make A work without using new (that includes placement new)? The code is more or less identical and I'm sure my overloaded new/delete are being called. The only difference is that A doesn't call the constructor but that shouldn't matter …

Member Avatar for sepp2k
0
652

The End.