43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for muusa

this is the code #include<stdio.h> void main() { int i; printf("%d, %d",++i,i++); } and following is the output 8429558, 8429556

Software Development c
Member Avatar for muusa
0
119
Member Avatar for hello1231231

there is a tools or util that convert mips asm to c code? thx.

Software Development assembly
Member Avatar for wildgoose
0
168
Member Avatar for nkarvi

Hi everyone! I have a program in C#, which doesn't resize and adjust the contents of the app-window when I maximize it. I know that in Java, one can use JFrame and this problem is eliminated. Is there an equivalent in C#?

Software Development c# gui
Member Avatar for sknake
0
78
Member Avatar for group256

Hello everyone, I'm writing a code and in there and I need to convert a char which contains any of "+", "-", "*", "/" into a real operator. As an example let's say I have: [code] char myOp = '+'; int op1 = 10, op2 = 20; cout << op1 …

Software Development c++
Member Avatar for group256
0
5K
Member Avatar for Jostra

Hi guys please help with this i am trying to write my data from a table in a lis box but a always get the number of items inside the table. can some one come thru please. lstData.items.Add(dataAdapter.fill(dataset,"MyTable") all kinds of help will be appreciated

Software Development dataset vb.net
Member Avatar for Jostra
0
717
Member Avatar for user98

I'm a .net programmer so forgive me if this is a stupid question, but here goes. I'm working with a vendor to interface our system with theirs. We are sending text data via modem. The protocol specifications they have given us require a checksum value to be appended to the …

Software Development c
Member Avatar for Salem
0
294
Member Avatar for drabsch

hi, How do you make a exe open and run in a different directory in vb6? so my exe is in the directory D:\test.exe and want it to run in the directory C:\ without copying the file there

Software Development visual-basic
Member Avatar for drabsch
0
100
Member Avatar for number87

what's wrong with this line when I try to compile in C++?? The src code was originally in C. It gets an expected identifier error with my c++ compiler [CODE]typedef enum {false, true} bool;[/CODE]

Software Development c++
Member Avatar for wildgoose
0
377
Member Avatar for Alibeg

Hi guys....i have a problem and I hope you can explain me where am I wrong... I am doing some kind of Breadth First Search (BFS) ("some kind of" because this is my first program to use this algorithm) I have an array of size 4^9 (262144 for those of …

Software Development algorithm c
Member Avatar for Alibeg
0
182
Member Avatar for agent154

This is a continuation of a previous problem I had with a "dir" like program. The previous solution actually *doesn't* work as I'd hoped. the Path class works, as far as I can tell, when the paramater is passed in a very specific way. It doesn't work if I don't …

Software Development
Member Avatar for agent154
0
152
Member Avatar for gretty

Hello I am reading a text file & I want to make a for loop, loop repeatedly until the end of the file. Is my code below correct, in terms of syntax? Is this possible to do. [CODE=cplusplus] #include <cstdlib> #include <iostream> #include <fstream> #include <string> using namespace std; // …

Software Development c++
Member Avatar for gretty
0
2K
Member Avatar for seebharath

Hello, I have a treeview control and want to add a node to it at a desired location or as the child of a Certain Node X.The problem is I will know nodename[or the Text displayed ] of X only at runtime. How do I Iterate the tree to find …

Software Development
Member Avatar for seebharath
0
153
Member Avatar for thanatos1

Hey guys, here's my question. In this text rpg i'm making i'm trying to add a "critical strike" chance, so that the player hits more, i got the hitting more part down right, but my problem is that for example, say the player can hit from 1 to 5 HP, …

Software Development
Member Avatar for DdoubleD
0
192
Member Avatar for staticvoyager

I did see some other posts on this project, but nothing seemed to help. I just keep getting more confused. =P I coded all my issues into the comments, as this project is already late, and I'm going to have to hand it in - whether it works or not …

Software Development data-structure vb.net
Member Avatar for staticvoyager
0
109
Member Avatar for sara9111

Hi There.... # include <iostream> using namespace std; int one (int x, int y); double two (int x, double a); int main () { int num, x, y; double dec, a, first; cout<<"please enter two integers numbers: "; cin>>x>>y; cout<<"please enter a double number: "; cin>>a; num = one (x, …

Software Development c c# c++
Member Avatar for sara9111
0
187
Member Avatar for Morika

Hi, I'm a newbie to python and I'm reading a file and trying to split a string every 3 spaces, that is included any whitespace. string.split() will split the string up every whitespace, but is there another way to specify every 3 spaces, whether there is whitespace or not? I'm …

Software Development python
Member Avatar for Morika
0
171
Member Avatar for DdoubleD

Hi, I have a class object that I have created a DataSource on. e.g.: [code] public class TestDataSource { string fld1; public string Field1 { get { return fld1; } set { fld1 = value; } } } [/code] When the DataSource object is created via the wizard, it will …

Software Development
Member Avatar for DdoubleD
0
136
Member Avatar for Lingson

hi, i just start to learn and doing programming with python (was an old timer programmer in other languages). when i saw a project idea about creating your own squareroot function, i tried it. the problem start was when i try to compare the result of x**2 where x is …

Software Development python
Member Avatar for Lingson
0
143
Member Avatar for Stefano Mtangoo

I cannot get the code work. I want to use placeholder than a fixed value. When use fixed value it works but not placeholder. Please correct me! [CODE=python] import sqlite3 as sql class Tables(object): def __init__(self): print "Class created!" def CreateDb(self, dbname): self.conn = sql.connect("?", (dbname, )) self.cur = self.conn.cursor() …

Software Development python sqlite
Member Avatar for Stefano Mtangoo
0
3K
Member Avatar for lotrsimp12345

Random numbers appear and i have no idea where they are appearing from. Problem is in << operator. Not sure how to fix it. Main #include <iostream> #include "Format.h" using namespace std; int main() { Format format; format.setJustification('l'); format.add_word("one"); format.add_word("two"); format.add_word("is"); cout<<format; return 0; } Implementation #include "Format.h" #include <vector> …

Software Development c++
Member Avatar for lotrsimp12345
0
114
Member Avatar for functionalCode

I am working on an application and I have SQL server 2008 running on my local machine when I start the application everything works fine, but when I moved my application to my laptop the program connects to sql server, but it cannot find any of my stored procedures when …

Software Development
Member Avatar for functionalCode
0
102
Member Avatar for tehbrozor

Hello, I am trying to make a GUI interface for a plotting routine written with matplotlib. The GUI is in PyGtk. One of the things I would like to have is a cross hair through the mouse cursor (a vertical and horizontal line intersecting at the mouse) which moves along …

Software Development gui python
Member Avatar for tehbrozor
0
429
Member Avatar for Rhuntsman21

I am not sure what I am doing wrong, but I am starting to feel very stupid. I am fairly new to C# so be gentle :) . I have an If Statement that is not working and I am not sure why. Here is my code [code=c#] if ("Admin" …

Software Development
Member Avatar for hemaljoes
0
165
Member Avatar for agent154

I'd like to be able to download the .net 3.5 API documentation offline so I don't have to worry about having an internet connection, but I can't seem to find anything online that indicates that it can be downloaded. Does anybody know if it can or cannot? I'm referring to …

Software Development api
Member Avatar for agent154
0
127
Member Avatar for Dmennite

I am using Visual Studio 2008. What i am trying to accomplish is a textbox default data: ABCDEFGHIJKLMOP textbox.maxlength = 16 textbox.charactercasing = upper Now the trick is only the letters A-P can be allowed the string has to be 16 chars long. I would love to figure out a …

Software Development visual-studio
Member Avatar for Dmennite
0
201
Member Avatar for Nogat21

Hey All, i'm doing this project in c++ consisting in reading an mp3 file and extracting the informations within it. Thing is i'm starting to be pissed by this persistent error that stops me from test the code. This error is, as far as my (limited) knowledge goes, caused by …

Member Avatar for Nogat21
0
183
Member Avatar for jko2326

This program is from the collopy book. I just had to type it in and create a text file so it would compile correctly for a class assignment which I did. But the very last record will not be shown when i compile. This is what is in the txt …

Software Development c++ file-system ios
Member Avatar for jko2326
0
137
Member Avatar for mevanga

Can someone help me to write a code in C Programming that will ask the user to enter a PIN and if the PIN is entered 3 times wrongly the program should exit. Thanx in advance.......

Software Development c
Member Avatar for mevanga
0
125
Member Avatar for q8_dreamy

hiii how can i create login and password in my website?????

Software Development vb.net
Member Avatar for taylorqwerty
0
118
Member Avatar for AirGear

can i access cmd command from cpp? for example, C://Program Files/asdf.exe

Software Development c++
Member Avatar for necrolin
0
114
Member Avatar for Dimansu

Hi I have a column name date in my listview.Currently its been sorted by date,month,year but I want this column to be sorted by year ,month,date.How can I do it?

Software Development listview
Member Avatar for sknake
0
3K
Member Avatar for Piya27

Hi all, I just need an idea (not code) how to export data from my databse to excel sheet..that too row wise.. I only need a starting idea... m using Visual studio 2008.

Software Development vb.net visual-studio
Member Avatar for Piya27
0
170
Member Avatar for hayatihamid

i've been trying to store a coordinate in a vector array, and reading the coordinates from a .txt file. there was no error, but the size of the vector is still 0 (i'm sure there was no value in the vector array) here's my code: [ICODE]#include <stdafx> #include<iostream> #include<fstream> #include …

Software Development c++
Member Avatar for hayatihamid
0
3K
Member Avatar for steven.culshaw

Hi all, What is the best method to move data from an access database into sql server database with different table and field names? If possible could you give me an example? Thank you so much!

Software Development sql
Member Avatar for sknake
0
128
Member Avatar for Bigead

Hi! I am a total novice on programming! Can someone tell me a solution for this problem? 1. I made a simple program. 2. I debugged it and tested it. It worked fine. 3. I compiled it and tested it again on my computer. It worked fine. 4. I copied …

Software Development vb.net
Member Avatar for manybox
0
185
Member Avatar for no1zson

I am new to C programming and have been using the GOTO all over the place until today when I was informed it is not preferred practice, and due to its adverse affects on debugging and maintenance should only be used in the rarest of cases. I can understand that …

Software Development c
Member Avatar for hket89
0
150
Member Avatar for faranshabbir

Hello, I compiled my trayicon utility c++ code in visual studio 2005 express edition and tray icon balloons showed up successfully but later I deleted my firewall, switched on to windows firewall and now I am on another firewall software. Now i ran my same project and balloons showed up …

Software Development c++ visual-studio
Member Avatar for faranshabbir
0
174
Member Avatar for hket89

/* File: Kilowatt-hours.c Calculate and print bills for the city company.*/ #include <stdio.h> int main() { int account_number; char code; double bills, kilowatt_hours, peak_hours, off_peak_hours; printf("Please enter Your account number: \n"); scanf("%d", &account_number); printf("Enter Your user code [R/C/I]: \n"); printf("R = Residential\n"); printf("C = Commercial\n"); printf("I = Industrial\n"); printf("\nCode = …

Software Development c
Member Avatar for DangerDev
0
302
Member Avatar for agent154

I'm writing a program to convert one image type (for example, png or gif, or tif) to a jpg. What I want to do is to feed the file name into the program via the console, and it will spit out the converted image. How can I make sure that …

Software Development file-stream
Member Avatar for DdoubleD
0
509
Member Avatar for Missy_poo

I need help with writing a program that asks the user to enter distance in kilometers and then converts distance to miles

Software Development python
Member Avatar for Stefano Mtangoo
0
104
Member Avatar for dantheman3141

I appologize for the length of this post, but I have no clue what is wrong with my program. As an experiment, I wrote a XOR encryption program. It isnt very fast, but it works. Apparently, only for strings. I implemented a file encryption function, and it seems that some …

Software Development encryption python
Member Avatar for dantheman3141
0
99
Member Avatar for iamsmooth

Hey guys: I'm working on a chess program for comsci, and surprisingly, the pawn is the hardest piece to program. If you're not familiar with chess, this is the basic move of the pawn: If the pawn is in its initial position, it can move 2 spaces forward, however, subsequent …

Software Development c++
Member Avatar for wildgoose
0
286
Member Avatar for madhavb

How do I access the base class protected/public methods in a derived object ? For example A and B are as defined below... [code=cplusplus] class A { int a; protected: int set(int v){ a = v; }; public: A(){}; int foo(){ return 0;}; }; class B : A { int …

Software Development c++
Member Avatar for tazboy
0
87
Member Avatar for daviddoria

I know you can't usually define things in the class like this: [code] class MyClass { double DefaultForward[3] = {0.0, 1.0, 0.0}; }; [/code] but I have some values that don't really make sense to set in the constructor - they are more "deeply connected" as THIS SHOULD ALWAYS BE …

Software Development c++
Member Avatar for daviddoria
0
152
Member Avatar for lotrsimp12345

word is a private variable. MAin [code] #include <iostream> #include "FrameThePhrase.h" using namespace std; int main() { Frame_The_Phrase frame; char in; ifstream input; bool a=true; bool b=true; bool c=true; string length; while(b==true) { cout<<"to quit type 'q'\n" <<"enter 'c' to get from console\n" <<"enter 'f' to get from file\n"; cin>>in; …

Software Development c++ file-system
Member Avatar for lotrsimp12345
0
158
Member Avatar for sravan953

Hey guys... I have some code here: [CODE] import os import threading import urllib import time a=0 class launch(threading.Thread): def start_now(): try: urllib.urlopen("http://www.google.com") except: a+=1 start_now() def end(): print("\nOut of 10000 requests, "+str(a)+" requests failed.") for x in range(10001): launch().start() print("http://www.google.com") end() raw_input("<Done>") [/CODE] This works, in the sense that …

Software Development os-x python
Member Avatar for woooee
0
94
Member Avatar for sab786

Hi all,:'( his for over a week now i cant get my head round it so i hope some one can help me... i have a dictionary which reads my file line by line and counts the occurance of tuples ...ok great. then for every key in my dictionary (which …

Software Development python
Member Avatar for woooee
0
310
Member Avatar for bernadlosini

the question given like this The TetraPek manager assumed that you are already familiar with the game rules. Now, the manager wants your program to be able to auto-generate some numbers before the player gets to key in their numbers into the empty boxes. It is up to you how …

Software Development c++
Member Avatar for mrnutty
0
236
Member Avatar for nileshgr

I have two class modules namely DbConnection and Database. Database has all methods which are required to manipulate the tables (Insert, update, delete, move). And DbConnection has connection related methods (Connect, Close, StartTrans, CommitTrans, RollbackTrans) I have a global instance of DbConnection in a standard module and I don't initiate …

Software Development data-structure visual-basic
Member Avatar for nileshgr
0
82
Member Avatar for dzhugashvili

Here is my code: [CODE]#include <iostream> #include <string> #include <vector> #include <algorithm> #include <fstream> #include <stdlib.h>//(for atoi to work) using namespace std; void usage() { cout << "Usage: <input1> <input2> <output>\n"; cout << "\n see README for more details.\n"; exit(1); } int main(int argc, char *argv[]) { cout << "\nshmoosh …

Software Development algorithm c++ hard-drive
Member Avatar for Ancient Dragon
0
144

The End.