49,761 Topics

Member Avatar for
Member Avatar for Jennifer84

Hello I wonder if it is possible center align a linklabel in a Panel ? I cant find any property for this in the Panel. Thank you

Member Avatar for jonsca
0
95
Member Avatar for wyssen

Hi, I have a wired problem. I try to build a argv array which will be passed to ssh command. The following line works perfectly: [CODE]argv[n++] = "64.106.11.123";[/CODE] But when I try to get the IP address out of a string which contains it, it will add me a line …

Member Avatar for wyssen
0
280
Member Avatar for wander36

Hey, I'm trying to create a program that displays a map and allows the user to put coordinates on the map and enter what the coordinate is. I want the user part to be in a console window, but I want the map to be displayed using SDL. I can't …

0
31
Member Avatar for Twinzen

I'm having trouble with using a multiset of my own data structure. It seems to complain about my comparison (less than) function when I try to iterate, but it works at some level because I can insert() stuff and call functions from the first member of the multiset. If anyone …

Member Avatar for Twinzen
0
140
Member Avatar for ironmancpp

Hi I am learning c++ at school. I am supposed to submit a project this year end. I would like to create an offline mail server using c++; something in which you can create an account and read & send messages to other existing accounts in the same computer. Once …

Member Avatar for Ancient Dragon
0
204
Member Avatar for Anex

I am working on a program which would really become easier to write if I can use character variables as an index to an array.. for eg. if char_var is a character variable say initialized to 'a'(ascii decimal value = 97), then array1[char_var] should refer to array1[97] element. I wrote …

Member Avatar for Ancient Dragon
0
9K
Member Avatar for Nathaniel10

Hi!, I am doing the exercises in Stroustrup's book, Programming: Principles and Practice Using C++. The 6th chapter uses a simple calculator to demonstrate Tokens and grammars. I realize that there are other calculator questions in the forum, but I did not find one that dealt directly with mine. An …

0
38
Member Avatar for Kanoisa

Hi, I think im trying to break c++ again in making it do something it does not want to do. Basically i have a logging class im making which simply takes a string stream and pumps it into a file. But i want 2 different versions one that trys to …

Member Avatar for Kanoisa
0
191
Member Avatar for PixelExchange

Hi all. I need help "binding" to a specific IP address. My program is able to "bind" when using inaddr_any, but I can't seem to bind to a specific IP address using inet_addr("...."). I am basically trying to "bind" a socket to MY home pc's IP address, and a random …

Member Avatar for Ketsuekiame
0
143
Member Avatar for wyssen

Hey everyone I have this huge program which comes with different directories like lib, include, test, modules, services etc. Every directory has a -Makefile -Makefile.am -Makefile.in The root directory has the following files -missing -Makefile -Makefile.in -Makefile.am -configure -configure.ac I added two classes with 2 header files and one of …

Member Avatar for wyssen
0
248
Member Avatar for cj232

[CODE=c++]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { cout<<"x value x2 value x3value\n\n"; int x=0, y, z; back: x++; if(y=x*x) if(z=x*x*x) cout<<" "<<x<<" "<<y<<" "<<z<<"\n"; if(x<10) goto back; system("PAUSE"); return EXIT_SUCCESS; }[/CODE] how can i get the total of x value, x2 value, x3 value...??? …

Member Avatar for Stefano Mtangoo
0
127
Member Avatar for sana_moi

hi pleas i need help if it's possible ; i have a c++ code which can select from a DB but i can't do the code for insert a new data in my data base .

Member Avatar for sana_moi
0
136
Member Avatar for Saranya Ravi
Member Avatar for mike_2000_17
0
125
Member Avatar for fire_

Hello. I'm using this constuction to write to file: [CODE]#include <iostream> #include <fstream> using namespace std; int main () { char data [50]; cout << "Enter data\n"; cin >> data; ofstream file("data.txt"); if (!file) { cout << "File opening error"; cin.get(); return 1; } file << data; file.close(); cout << …

Member Avatar for abdelhakeem
0
128
Member Avatar for fire_

Hello. I'm writing DOS program with Visual C++ 6 and i want to log date and time to file. I'm new at programming so please tell me all #include <> and full syntax :) Also I tried time() but i recieved error: error C2064: term does not evaluate to a …

Member Avatar for fire_
0
6K
Member Avatar for Shikhin

Hi To All, I just wanted to ask you all brainies that I wanted to attempt Microsoft Certification For C++ Language. Now when I searched Microsoft certification it showed up results such as Microsoft Certified ...(Something Something). Now can anyone give me a link to the information about Microsoft C++ …

Member Avatar for AkashL
0
85
Member Avatar for autodale

I am wondering what the capabilities of C++ are for launching executables. I would like to create a simple launcher for one of my projects. It would need to launch a program in the same folder. The launched program needs to be run maximized and in Windows 98 compatibility mode. …

Member Avatar for Ketsuekiame
0
102
Member Avatar for Haxifix

Hey guys, I wrote a TicTacToe program at my friends house in like 10 minutes, so I am sure I can improve some things. Can someone please give me some idea's on either stuff to add or stuff I can improve on (make more efficient). [code]#include <iostream> using namespace std; …

Member Avatar for mrnutty
0
148
Member Avatar for mkcee

I am having difficulty reading the following input file Jon 40 Chris 50 Pete 60 what is wrong with this code that I wrote to read the above file. thank you for your help. [code]//***************** #include <iostream> #include <string> #include <stdlib.h> #include <fstream> #include <iomanip> #include<cassert> using namespace std; void …

Member Avatar for nutristars
0
224
Member Avatar for Lomko

Hello everybody, i'm a beginner in programming, so I hope someone can help me. I'm programming in Visual Studio 2008 in C++ and I'd like to use the error functionor the complementary one, erf(x) and erfc(x). I've looked for a solution in the internet and I've seen that including math.h …

Member Avatar for Lomko
0
683
Member Avatar for eysiy

I need to read .dat file which is in form: x y z d 4.860568047E+000 1.591771126E+001 4.034203053E+000 1.000000000E+000 -2.356933117E+000 2.466155815E+001 -3.108083963E+000 1.000000000E+000 -1.673650980E+000 1.986449051E+001 6.616530895E+000 1.000000000E+000 -5.323183060E+000 1.964732361E+001 -7.041398048E+000 1.000000000E+000 .... I need to read the first line and put these values into a equation, say: results = x+y+z+d, then …

Member Avatar for iamthwee
0
81
Member Avatar for figuer25

I just coded this implementation of a stack using a singly linked list. Its written in C++ using the STL. I believe I am complete with it but there may be functions I am forgetting or ways to improve/ optimize my code. I tried using exceptions to learn how to …

Member Avatar for figuer25
0
394
Member Avatar for new_programmer

I have basic idea about malloc and calloc i heard about falloc and dlmalloc, can any one explain about it?

Member Avatar for new_programmer
0
178
Member Avatar for sudoku43

hello, im newbie here and also newbie in c++. I have a problem with char data type. I try writing the code input character 'D', 'd', 'R' and 'r'. if input are correct, the output will be 'OK' but turn out, even I give input other character, still give the …

Member Avatar for RogueEffect
0
166
Member Avatar for Lukezzz

Hi, I have created a ToolStripMenuItem in the MenuStrip. Is is called: [B]OneToolStripMenuItem[/B] What I need to do now is these tasks programatically: 1. Add one Item named: "Item1" 2. Create a Click Event for this "Item1" 3. Place a very small .JPG Image or Icon Before this "Item1" I …

0
59
Member Avatar for crodriguez08

Hey there, I'm having trouble getting my program to display the students and class summary using classes. What I'm unsure of is where the problem lies, whether it is a displacement of set/get functions or the content in my StoreStudent function is incorrect, or perhaps something else I might have …

Member Avatar for mike_2000_17
0
382
Member Avatar for Cgm

Hi, I have visual c++ and have recently downloaded the Dark GDK add on. Does anybody know where i could find some tutorials because I am okay with c++ but dont know how to code the graphics. Any help is appreciated Thanks -Chris

Member Avatar for green_frog
0
200
Member Avatar for goody11

Hey, I am working on creating a UBCD for a company I work for, but I can't figure out how to do a certain part. I want to create a program on the disk where if it's ran, it will automatically run through spybot, malwarebytes, ect...I know how to open …

0
62
Member Avatar for goody11

Hey, I wanted to make a program that could open up and control another program...Specifically, I wanted to write a program that could open up google chrome, open 2 extra tabs, have each of the tabs go to hotmail, and then each auto-sign me in to my 3 different e-mail …

Member Avatar for goody11
0
176
Member Avatar for figuer25

Hi so I am just trying to figure out what is wrong with my program. I am trying to implement the node class in C++. All I want to do is learn how to implement it and get it working. I am not trying to use it to create a …

Member Avatar for figuer25
0
1K

The End.