49,757 Topics

Member Avatar for
Member Avatar for lochnessmonster

i know vectors exists but i'm wanting to learn how to manually do this... i want to be able to allocate memory to the end of my array when needed or even deallocate memory when deleting a specific character. Im curious how one would achieve this manually. If anyone has …

Member Avatar for gerard4143
0
102
Member Avatar for pritpal.singh88

[B]I want to play mp3 song file in ubuntu using c++ [/B] suggest me is their any function to do this plz suggest me as simple as u can suggest any method.... plz give ur valueable suggestions.....

Member Avatar for mike_2000_17
-2
2K
Member Avatar for Craftknight

Hello, I just wrote my first code with a while loop and I am getting strange results. The program is supposed to give a Fahrenheit (TF) to Celsius (TC) conversion for every 5 degrees Fahrenheit increases between 0 and 100. It increases the value of TF just fine but in …

Member Avatar for Craftknight
0
92
Member Avatar for Arbus

Hello friends, I am trying to play music through turbo c++.I used Irrklang sound library 1.3.0. But while compiling i get an error saying "unable to include IK_IRRKLANGTYPES.h" and other header files. Should i change anything in header files? Is there any other way to play music in turbo c++? …

Member Avatar for Kanoisa
0
409
Member Avatar for Lokril

I submitted an assignment but I was told it was wrong. I have till the end of the day to get it right but I'm working and my deadline is creeping up. So I'm hoping you guy can help me out. Assignment Write a program with two funtions: main and …

Member Avatar for jonsca
0
138
Member Avatar for progprince

can anyone kelp me to change font color using C++ 4.5?? if i use conio.h it has an error of undefined function....

Member Avatar for papanyquiL
-1
79
Member Avatar for spoonlicker

[B]Okay, I finally understand that they point to memory, because I knew that all along. I just wasn't aware of why they needed to point to memory for. So I need to use pointers in this position but I don't know where to use them or on which things and …

Member Avatar for papanyquiL
-5
232
Member Avatar for dolly_olaide

Hello, I would like to confirm if I have the correct way of calculating the mean and standard deviation of an image. I am not sure I have the right answers. Please can someone please confirm this. Also, I would like to ask if anyone knows how I can obtain …

Member Avatar for dolly_olaide
0
5K
Member Avatar for ishaangt

i am working on an encoder nad i have developed a way to encode my message in terms of (x,y) coordinates..but i have to put these locations on a world map to strengthen my encoder.... im using dev c++ 4.9.9.2 and need a gui base coding for my c++ program …

Member Avatar for ishaangt
0
167
Member Avatar for Sahilroy

Write a program which generates randomly some numbers (integer) say 20 numbers between 1 and 100 and send it to an output file called randOutput.txt. Next your program should open this file (randOutput.txt) and check whether the numbers are ordered either ascending (or descending) or not. So you should have …

Member Avatar for Narue
0
106
Member Avatar for Prosammer

How do i get the threadid of a window. I know it explains a bit "(HANDLE Thread)" but still how? Regards, Prosammer

Member Avatar for Prosammer
0
895
Member Avatar for nazerb

Hi Ok i am makeing a program and want it to check if there is an update availible by checking if a txt file with the version has a difrent number. I have been looking around and found absolutly no help for this problem. The text file would be at …

Member Avatar for pseudorandom21
0
126
Member Avatar for raidernation

#include <fstream> #include <cctype> #include <iostream> #include <string> const int num=1024; using namespace std; int main(){ ifstream file; string s; int i=0; file.open("words1.txt"); while(getline(file,s)){ for(int i=0; i< s.length(); i++){ cout << s[i];//prints out the text file just fine. "a dog." cout << s[0]; /*prints out random stuff. <---my problem. All …

Member Avatar for raidernation
0
1K
Member Avatar for efecto

Hi there. I want to create a program on windows 7(32bit) that can rename photos based on date and time taken in meta data. I would like it to have a user interface window where users can simply drag photo files onto the scrollList.. then a button that executes a …

Member Avatar for Ancient Dragon
0
177
Member Avatar for jshoot

[B]Hi every one, I'm working in a code from 1 mounth, and now I finaly finished, it work, but there is the old problem in C++ language, the interface, once that I wan't to do a program that will be used for anothers users, I wanna to make the program …

Member Avatar for Stefano Mtangoo
0
440
Member Avatar for poloblue

Good Afternoon, I need help on this assignment from school, I'm getting this error C2660: 'clockType::setTime' : function does not take 4 arguments. I need to make the class functional by the client program testClockClass.cpp. Below are the code that I have so far: testClockClass.ccp [code] #include <iostream> #include "extClockType.h" …

Member Avatar for Narue
0
304
Member Avatar for tomtetlaw

I've seen macros like this: [icode]#define $Line #__LINE__[/icode] and I was wondering what the effect of the $ symbol has in a macro?

Member Avatar for tomtetlaw
0
126
Member Avatar for triple sick

Ok, so in this program, the user enters a number and it assigns that number to "answer". Now I have a bunch of strings already named by numbers, it starts out with "one", "two", "three" and so on being valued as a dash sign "-". So say they enter "five", …

Member Avatar for VernonDozier
0
151
Member Avatar for manongjulius

so. . . i guess you could say i'm kinda new here but. . . this site really helps me alot this past few days and i decided to join... i was surfing all over the internet and i can't find what's the problem with my program. this always says …

Member Avatar for manongjulius
0
281
Member Avatar for Jaily

I've made a simple webserver in C++ based on this one [URL="http://http://msdn.microsoft.com/en-us/library/ms737593%28v=VS.85%29.aspx"]here[/URL]. And this works fine. Now, my assignment is to pass some info from this server to an html-file that later can be opened in IE or Firefox and then display info like screen resolution. Now.... This is supposed …

Member Avatar for tundra010
0
104
Member Avatar for quickdeath

In dev c++ does anyone know how i can take a circle, rectangle, and triangle to create a penguin. I am really new at this by the way.

Member Avatar for tundra010
0
53
Member Avatar for lochnessmonster

i was always taught put the variables u plan on using in a function at the top of it! im curious if it's considered bad programming practice to only define variables when they are going to be used/need to be used....for example possibly midway or further into a function?

Member Avatar for spoonlicker
0
122
Member Avatar for spoonlicker

Say I want to begin writing a program some how or some way in machine code and nothing more. This program I am making is expected to be a 3D video game. I would like to write it in some way the processor can implement it and write back the …

Member Avatar for spoonlicker
-3
108
Member Avatar for Jutch

I have a project I am working on but I honestly can't get a hold of a good jump off point. I'll post the pseudo code. I really need the help please. It is for a GUI C++ program. Please help me if anyone can. All I need is a …

Member Avatar for Jutch
0
144
Member Avatar for scarlettmoon

Hi All ~ So the program actually compiles without using arrays or global variables, outputs the correct user input, however average score and lowest score values that compute are wrong. I have no idea where the heck I'm messing up but I am hoping you can help me. The findLowest …

Member Avatar for scarlettmoon
0
250
Member Avatar for fflittle

Surfed, a freeform editor for sculptured surfaces was published in 1978 in CAD. It premiered screen plane dragging of control points in a dynamic 3d view via a tablet with a pen tip switch. The surfaces edited were square arrays of squares. Although a variety of shapes were obtained, no …

Member Avatar for Ezzaral
0
71
Member Avatar for criselda
Member Avatar for pseudorandom21

I found this excellent video on one of Microsoft's websites: [url]http://msdn.microsoft.com/en-us/ff728575[/url] I'm really just wondering how to organize the window procedures for my Dialogs/Buttons/etc. Would one normally after creating a dialog throw the window procedure into a new file? I don't like tiny bits of code in different files, so …

Member Avatar for BitBlt
0
156
Member Avatar for caltech

Total newbie, I need more help... If you could just give me a basic structure for what I'm trying to do and an explanation, that would help a whole lot. Here's my assignment: [INDENT] 1) Write a function [I]divides[/I]. The function accepts two parameters: a number and a possible divisor. …

Member Avatar for reemhatim
0
133
Member Avatar for Celtrix

Im having trouble with gtk open file dialog it will open the first time but after i closed it i cant reopen it Ive tried casting it as different objects but i cant seem to fix it. After attempting to reopen the dialog box it spits out gtk_dialog_run: assertion 'GTK_IS_DIALOG …

Member Avatar for Celtrix
0
182

The End.