49,757 Topics

Member Avatar for
Member Avatar for grumbly_frown

Hi I wish to write code which models scales based on different intervals and need to be able to get my sound card to play different frequencies - imagine tuning a guitar to say C# plus a little bit more. Is it possible to do this with MIDI and if …

0
41
Member Avatar for gretty

Hello I have a function that writes some text to a text file. [B]My Problem is:[/B] At one point I try to erase an element from a vector ,but I get an error & I dont know why, it looks sytaxically (is that a word? :)) correct & I am …

Member Avatar for jencas
0
142
Member Avatar for Phasespace

Hey. I've written a bit of c++ code to move columns of data from similarly named files (file20.txt, file40.txt, file60.txt etc) into a single file. Unfortunately there seems to be at least 1-2 errors (which I cannot seem to fix :S). I'm trying to take data from a list of …

Member Avatar for Phasespace
1
79
Member Avatar for pwnz32

hey everyone, ive been making some simple games recently with c++ and sdl, I use Dev-cpp as my compiler. I just was making a game where a missle follows after a planet, and it freezes after a few seconds of playing. When I debug it however it doesnt freeze. I'm …

Member Avatar for wildgoose
0
141
Member Avatar for kernel>panic

I have this encryption program that I spend a lot of time writing I am a beginner but I consider it a nice program except that is is way to slow, can you see anyway to speed this up? Thanks. I know you don't like doing stuff for us but …

Member Avatar for mrnutty
0
153
Member Avatar for ewanko

Good am can i ask for a example of primitive operation that has implicit argument and its explanation.. Thank You

Member Avatar for kvprajapati
0
72
Member Avatar for Okimdone

Well trying to conserve memory I'm trying to get my program to only make an array of what is needed nothing more. I've already figured out that the only variable i could use to set how many there is in a array is a [B][COLOR="blue"]const[/COLOR][/B] but according the the compiler …

Member Avatar for kvprajapati
0
87
Member Avatar for BlackPhoenix

Hi, [B][I am experienced][/B] I would like to create a virtual 3D world. I am familiar with SDL and 2d graphics programming. I am experienced with C++ and I know a little Java (I have enough programming experience to learn a language quickly). I am familiar with the traditional game …

Member Avatar for mrnutty
0
122
Member Avatar for ihatestarch

How do you add a character containing a number char to a number int? What does it mean when '0'+3 is '3'? (3 being an int) I remember being told once, but never got the hang of it.

Member Avatar for ihatestarch
0
132
Member Avatar for xfreebornx

[CODE]#include <iostream> using namespace std; struct student { int ID; char name; char nationality; char gender; }; void record(student array[]); int main() { cout <<"Welcome to student recording system"<<endl; cout <<"Please choose one of the following option"<<endl; cout <<"1.Insert new record"<<endl; cout <<"2.Delete record"<<endl; cout <<"3.Sort record"<<endl; cout <<"4.Display record"<<endl; …

Member Avatar for Ancient Dragon
0
317
Member Avatar for Nathan Campos

Hello, I'm learning C++, then i want to know how i can do a convertion of an decimal number to an hexamal number, i know the calculation form to do this, but the thing that i don't know is how i can represent the remain in the formula. Here is …

Member Avatar for Nathan Campos
0
100
Member Avatar for znewsham

Hello, I am attempting to create a minfilter, or possibly something else. I will explain the problem and hopefully someone will be able to point me in the right direction. I need something that will intercept requests to a certain harddrive from windows, weather this is through windows explorer, or …

0
54
Member Avatar for david777

int main(int argc, char *argv[]) { int mobile, pond; float a; cout<< "input mobile price:"; cin>>mobile; cout<< "input 1 pound how many BTH:"; cin>>pond; mobile+pond==a cout<<a;

Member Avatar for Nick Evan
0
75
Member Avatar for Niner710

Hi, I was just wondering how to convert a vector<string> to vector<int>. I am using the transform function from <algorithm> but I am not sure what the format is. [code] vector <string > string; vector <int> int; tranform(string.begin(), string.end(), int.begin(), atoi); [/code] Get a compile error. Could anyone tell me …

Member Avatar for Tom Gunn
0
4K
Member Avatar for yun

Hey Programmers, Is there any better way to write the below recusive functions, plz help me so i can improve my programming... 1- Write a recursive function that takes a nonnegitive integer and returns the sum of its digits, [code=cpp] int DigitSum(int n){ if(n == 0){ return 0; }else{ return …

Member Avatar for yun
0
205
Member Avatar for Symbolistic

Well I am making an AFK Bot for a FPS game called Combat arms. What it is supposed to do is Move Up, Down, Left, and Right by itself while I am AFK. I want it to press Spacebar to jump too. I also want it to Press the Left …

Member Avatar for William Hemsworth
0
120
Member Avatar for rhoit

cout<< worked out for every other pointer data type but... when char is fed it show the pointed address.....(which every one knows) but i want to see the address stored in the char pointer how to see it.. i was thinking using `printf()` but ruined out by not knowing what …

Member Avatar for Tom Gunn
0
182
Member Avatar for qwuirks

Hi Guys i'm new here so please be kind Thanks .... I need a serious help in my assignment which due this coming friday.... i need to create a Patterns by writing a function with prototype [B]char* matchPattern(const char *text, const char *pattern)[/B] i have to match a-z, A-Z or …

Member Avatar for siddhant3s
0
84
Member Avatar for acidnynex

I'm having a ton of trouble reading the text from a file into an integer array, the file contains 3 lines of 1,000 integers from 0 to 1. The array is myArray[3][1000]. So far I've tried to use a stringstream to no avail and I've attempted to use a few …

Member Avatar for acidnynex
0
101
Member Avatar for hmortensen

Hi All, I'm trying to make a routine that returns node number XX from a BST. The nodes are as follows: [code=syntax] struct Node { signed int type; Node* child1; Node* child2; }; [/code] I can easily count the number of nodes by [code=syntax] long Pheno::CountNodes(Node* n) { if(n==NULL) return …

Member Avatar for hmortensen
0
103
Member Avatar for rhoit

Why Can`t member function be called by pointer object of class/struct. i was trying to call the member fuction of struct though pointer object it showed me error like request for member 'Table::reveal' in `T1`, which is of non-class type 'Table*' where, Table is structure reveal is member function T1 …

Member Avatar for rhoit
0
267
Member Avatar for kkeyan

Hi, I am writing Screen Capture application in c++. I want to take control of mouse click from OS because, if start menu is open in windows OS, when i click for take region selection on desktop the start menu is automatically closed. But i want to take snap image …

Member Avatar for kvprajapati
0
101
Member Avatar for andrei4002

hello everyone i have a huge problem developing a windows service i'm trying to develop some app that reads information from WMI and sends it via amqp (using apache qpid client) everything [B]works fine[/B] on [B]windows xp[/B], but problems appear on [B]vista[/B]: when i start the program i get an …

Member Avatar for andrei4002
0
117
Member Avatar for vwyodapink

I am learning how to manipulate strings this week and I am stuck on a program that is suppose to let the user enter a particular item number. The program should then check to see if the entered number is 5 digits long. if its not it should say invalid …

Member Avatar for vwyodapink
0
81
Member Avatar for moksulu
Member Avatar for ithelp
0
37
Member Avatar for jeezcak3++

My goal is to "master" C++. I barely learned up to classes... destructors within a month from watching videos on youtube. My question is how much more do I have to learn to be like you? It seems like long way to go... I feel discouraged already after reading 7 …

Member Avatar for thelamb
0
139
Member Avatar for digitalhero

please help me... i don't know which line of code did i get wrong... the output is supposed to be: 1 12 123 but what i get is: 1 21 321 ...here is my code... i need to use while loop for this. thanks guys. [code=cplusplus]#include<iostream> using namespace std; int …

Member Avatar for mrnutty
0
102
Member Avatar for kernel>panic

I have this encryption program that I spend hours on. I thought I had it all worked out but no. What could be my problem can anyone help me. You can ignor the void doSet() I will ad that later. Thanks.

Member Avatar for VernonDozier
0
391
Member Avatar for xiikryssiix

hello everyone... i wrote a basic program for my C++ class that includes SUMs and while loops. its fairly self explanatory, but i am not getting the correct SUMs for my outputs. apparently, i am missing something extremely important somewhere here. can someone take a look and give me a …

Member Avatar for xiikryssiix
0
244
Member Avatar for jiten_raulo

I spend 6 to 7 hours each day practicing c++ and visual c++ but end of the day I think I don't have any Test or homework. Please anyone can provide with some site helping with the same. Thanks in advance JIten

Member Avatar for jiten_raulo
0
139

The End.