General C++ Programming - January 2011 (Page 12)

Can someone give a rundown on how to use unicode in arrays and such?
 
I need to know so I could include some unicode characters into a 2D array. So information would be greatly appreciated, headers, types, anything. If you need so...
[9 replies] Last: Disch, that thread answered against every reason I chose to make a gam... (by Hilo890)
by Janlan
Switch
 
I input one number. For ex. 6578. What i want to do is to print the entered number with letters. for ex. six five seven eight. I tried something like this: i...
[12 replies] Last: Instead of manually reversing the number you could use recursive post-... (by ne555)
by angshu
Union
 
My questions regarding union are * Why union can not be used in inheritance? * Why Union can not be a base class? * Why a union ca...
[3 replies] Last: I should add one more thing: C++0x is relaxing some of these restri... (by jsmith)
Text Twist Refix
 
Hello Guys, this is my code of text twist written in C. I can't figure out this error: a.) when you input a word that is not in the dictionary it will...
[4 replies] Last: Weee..thanks for the info coders... You've helped me a lot.. :P (by joeneldeasis)
How create dynamic wxButton?
 
Hi, i'm getting a problem with my school project and i can't find a way to make dynamic button using wxWidget. I explain my problem: i'm making an app "like"...
[1 reply] : Anyone can help me? please (by Fabiooo12)
HOW TO DISPLAY OUTPUT IN VERTICAL IN C++ PROGRAMMING
 
Hi guys! Good day! I'm a Begginer of C Programming.. Well i know a little but one time that they give a laboratory exercise.. i can get it.. can you help me di...
[15 replies] Last: thank you guys for the codes! Really works! (by mixmagz)
Character array comparison
 
I have a 2D char array called Choice . My code is, char Choice cin.getline( Choice, 10 ); if(Choice, "Attack") { Attack(); Grunt.Health = ...
[9 replies] Last: Using strcmp () is correct. Another option is to cast to a std :: s... (by Duthomhas)
c++ returning filename of first file in directory
 
i need to return the filename of the first file in a directory String ^location=""; //root directory array<String^> ^files = Directory::GetFiles(loca...
[6 replies] Last: using namespace System; using namespace System::IO; using namespace... (by closed account z05DSL3A)
For Loop with array
 
Hey I posted in a dead forum so I figured I would make my own thread. I am working on this homework and I have to replace every other letter after A with a lowe...
[1 reply] : The only part I should have to alter is the very last for loop which i... (by Battousai)
My friend is gettng a MSVCP100.dll missing error when he tries my programs?
 
I sent him a copy of the executable from my program, and he get that error. He has the Visual C++ 2010 redistributable package x86 installed. I made the program...
[5 replies] Last: For debug mode, usually there are a few debug-related DLL that is need... (by sohguanh)
How would I stop a sound playing with PlaySound()?
 
If I already had a looping sound playing: PlaySound(TEXT("sounds/Theme.wav"), NULL, SND_LOOP | SND_ASYNC); How would I stop it later in the program?...
[2 replies] Last: It also helps to read the documentation for the function you are using... (by Duthomhas)
by Icenel
How to make function
 
This is my code, and I want to make a function to replace the Underline text on my program... #include <stdio.h> #include <string.h> int main() { i...
[7 replies] Last: If you're trying to learn c++ then you really should wean yourself off... (by quirkyusername)
by Reca
Replacing vowels with symbols
 
Hey! I am a total noob in c++ programing. And i wanna learn it very bad:D. So for anew task i have to write a program that reads data from text and than rep...
[16 replies] Last: indeed. I didn't thing about that. you could either write output_fil... (by hamsterman)
how do i check a char for length whether its alpha bate and numeric?
 
Hi all. this is what i have done but have some errors, it goes in infinite while loop if i enter all numbers..any ideas appreciated!!. TIA for help!! ...
[7 replies] Last: too long. Try to make just one thing per function and comment your cod... (by ne555)
program to read 3 values,and find largest btwn the 3
 
#include<iostream.h> #include<stdio.h> #include<conio.h> void main() { int a,b,c; cout<<"enter 1st number"; cin>>a; cout<<"enter 2nd number"; cin>>b; ...
[4 replies] Last: I've tried this before, so you do not have to worry about is not runni... (by Icenel)
asm
 
can any one tell me about the keyword asm.....what is its function????and where it is used????
[1 reply] : The asm keyword is used to put assembly code inline with C or C++ code... (by rapidcoder)
by Janlan
Sum of diagonal in matrix
 
How to find the sum of the main diagonal in matrix. For ex. I need to find the sum of 1 2 and 3 in this matrix: 1 5 6 5 2 8 4 9 3 i found the s...
[2 replies] Last: Note what Kyon said. You just need to add which pairs have the same i ... (by wolfgang)
numbers those are divisible by 7 between 1 and 100
 
#include<iostream.h> #include<stdio.h> #include<conio.h> void main() { int i; clrscr(); cout<<"the numbers are:- "; for(i=1;i<=100;i++) if(i%7==0) { ...
[3 replies] Last: I am enlightened! I never would have guessed that I could calculate nu... (by wolfgang)
Translation of source code
 
hi guys i like this forum ,this is my new thread>> when we write the program in c++"any program" and we want execute it"run it" or to make EXE file,, th...
[3 replies] Last: Addition:: i think that a compiler can not know the machine language ... (by Ramses12)
code error
 
can any one plz help me to know about the error in this code... #include<iostream> #include<cmath> using namespace std; float imag,real,disc; main() { ...
[13 replies] Last: http://www.cplusplus.com/articles/how_to_ask/ (by Bazzy)
January 2011 Pages: 1... 1011121314... 24
  Archived months: [dec2010] [feb2011]

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